Real time data input and output from gui to simulink
4 次查看(过去 30 天)
显示 更早的评论
I need to give 5 digital input from GUI for which i am using Radio button and want to plot two digital output from matlab/simulink on a gui in Real time. As i have no experience with GUI so understanding example code is very difficult. Can any body help me with my problem
0 个评论
采纳的回答
ES
2014-1-15
suppose if your model has a constant block whose value you want to set depending on the radio button, then in the callback of the radio button you can put a
for eg: Under call back of Radio Button 1
if hObject('value')==1
set_param('Constant Block Path','value',1);
end
similarly Under call back of Radio Button 2
if hObject('value')==1
set_param('Constant Block Path','value',2);
end
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Communications Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!