Simulink: Can you invert the constant block?
8 views (last 30 days)
Show older comments
Luca FS on 22 Sep 2021
Commented: Jonas on 24 Sep 2021
is there a way to "invert" the constant block?
As you know, it is possible to name a variable as a value in the constant block, which is then output as a signal. Is it possible to invert this? So enter a signal and write it into the named variable in the workspace?
Jonas on 23 Sep 2021
Jonas on 24 Sep 2021
If you want to avoid the To Workspace block logging a lengthy array, you can put the To Workspace block inside a Triggered Subsystem and connect a 'true' to it. Then it will only save one instance of the signal.
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!