Dashboard switches are able to turn a referenced signal on/off, but do not update their own state if the referenced signal changes without user input.
A solution using a triggered subsystem and the Matlab "set_param" function is demonstrated here with simple on/off function. The example system turns itself off after being on for 3 seconds, and resets the dashboard switch to "off".
Concept was discussed at https://www.mathworks.com/matlabcentral/answers/516815-programatically-change-state-of-slider-switch
引用格式
Adam Chapman (2026). Dashboard Switch Reset (https://ww2.mathworks.cn/matlabcentral/fileexchange/74951-dashboard-switch-reset), MATLAB Central File Exchange. 检索时间: .
| 版本 | 已发布 | 发行说明 | Action |
|---|---|---|---|
| 1.0.0 |
