필터 지우기
필터 지우기

i want to see the information that the display of simulink. in static text (GUI)

조회 수: 2 (최근 30일)
this is my program guide. I can not run, Ton = display in simulink simupic = program in simulink I hope your understand me.
1)
function programPic_OpeningFcn(hObject, eventdata, handles, varargin)
find_system('name','simupic')
open_system('simupic')
2)
function edit1_Callback(hObject, eventdata, handles)
sp=get(hObject,'string')
set_param('simupic/Sp','value',sp)
guidata(hObject,handles)
3)
function edit2_Callback(hObject, eventdata, handles)
kp=get(hObject,'string')
set_param('simupic/Kp','value',kp)
guidata(hObject,handles)
* 4)MOST IMPORTANT*
function pushbutton1_Callback(hObject, eventdata, handles)
set_param(gcs,'simulationcommand','start')
rto=get_param([gcs 'simupic/Ton'],'RuntimeObject')
set(handles.text8,'string',num2str(rto.InputPort(1).Data)
want to see the information that the display of simulink... tks

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by