display data in "edit text"

조회 수: 3 (최근 30일)
Loong
Loong 2012년 5월 7일
I would like to use "edit text" in gui to display value from simulink. I have try some ways, but still cant make it. I need not to used real time update value (event listener). I have try to send the data to workspace and used "evalin" command to read but cannot. Any others simple ways to display it? Thanks for advice in advance.
  댓글 수: 2
TAB
TAB 2012년 5월 7일
The data logged in the workspace by simulink is always in array format having values for all the sample time.
Do you want to display all the values or value at any specfic time?
What error or problem you are facing?
Loong
Loong 2012년 5월 7일
I just need to display the last value.
Without any error pop up, just the edit text in my gui do not display the value.
volume=evalin('base','y');
set(handles.edit1, 'String', num2str(volume));

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by