How to set value of Simulink Rocker Switch from Matlab
Ältere Kommentare anzeigen
Dear all,
how would I set from Matlab a value of Rocker Switch in simulink.
Given:
Switch "MySwitch" with Labels Sommer=0 and Winter=1
Both variants produce the error below
- set_param('mymodel/MySwitch','Value','Sommer')
- set_param('mymodel/MySwitch','Value','0')
MWDashboardBlock block (mask) does not have a parameter
named 'Value'
What is the proper way to set value of this block from Matlab
MyGoal:
Set value of the switch
Start simulation
Start simulation is ok, by all my tries to set value of the switch fail.
Thank you
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Control Simulations with Interactive Dashboards finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!