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