i want to see the information that the display of simulink. in static text (GUI)
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!