Change constant block value using push button
1 view (last 30 days)
Show older comments
Nikolay Panasetsky on 3 Dec 2015
Commented: goerk on 17 Dec 2015
I want to change the value of constant block in Simulink from 0 to 1 and vice versa using push button in GUI.
function pushbutton2_Callback(hObject, eventdata, handles)
goerk on 17 Dec 2015
Your code snippets look correct. Maybe you have to open/load the model first.
load_system('opc'); % or open_system('opc','loadonly')
Find more on Programmatic Model Editing 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!