Info

この質問は閉じられています。 編集または回答するには再度開いてください。

stream data from m code to simulink block

1 回表示 (過去 30 日間)
EDDYKURNIAWAN ABDRAUF
EDDYKURNIAWAN ABDRAUF 2016 年 11 月 25 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
i have do stream the data from my m code into simulink block using 'set_param' such that suggest in the past http://www.mathworks.com/matlabcentral/newsreader/view_thread/324671.... my constants block was change the value while the m code is continuously run but the value at display block in value was show as in the constant block..below is my code
ax=int2str(ax);
ay=int2str(ay);
az=int2str(az);
gx=int2str(gx);
set_param('model1/Constant','Value',ax);
set_param('model1/Constant1','Value',ay);
set_param('model1/Constant2','Value',az);
set_param('model1/Constant3','Value',gx);
the value at display will show after i stop the m code...any one can help me..please

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by