フィルターのクリア

Real time data input and output from gui to simulink

2 ビュー (過去 30 日間)
RUDRAKSH
RUDRAKSH 2014 年 1 月 15 日
回答済み: RUDRAKSH 2014 年 1 月 17 日
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

採用された回答

ES
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

その他の回答 (1 件)

RUDRAKSH
RUDRAKSH 2014 年 1 月 17 日
Thank you for your solution... It worked. but i am still facing a problem in getting output in realtime on my guide build gui can you please help me with this also!!

カテゴリ

Help Center および File ExchangeCommunications Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by