Using 'push botton' in GUIDE to open the simulink block's mask.

I would like to using 'push botton' in GUIDE to open the simulink block's mask in order to fill in the mask's parameter. But since I am NEW in MATLAB, I cant manage to do it. I try to put simple function in the pus button function open_system('model/subsystem','mask') but cannot be done. Please advice.... more detail.... thanks

2 件のコメント

TAB
TAB 2012 年 4 月 26 日
Are you want to open the "Parameter Dialog box" or open the subsystem to look under the mask.
What problem or error you are getting?
Loong
Loong 2012 年 4 月 26 日
sorry, is the 'parameter dialog box".

サインインしてコメントする。

回答 (1 件)

TAB
TAB 2012 年 4 月 26 日

0 投票

Suppos your block is MyBlock placed in MyModel.
To open the parameter dialog box write below code in callback function of your pushbutton
open_system('MyModel/MyBlock');
See open_system for details.

2 件のコメント

Loong
Loong 2012 年 4 月 26 日
Thanks for the quick respond.
I have try this, but still cannot.
* _% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Callback of the uicontrol handles.HelpButton.
open_system('H2System/Module Specification');_ *
Is that any code I have missed?? Or is that problem dealing with the handles??
Sorry for my silly question....
TAB
TAB 2012 年 4 月 26 日
It seems OK.
Your model should be open before opening any block from it. Have you taken care of this.
Please post the error message you are getting.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Modeling についてさらに検索

質問済み:

2012 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by