set_param Command calls OpeningFcn
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi guys,
I'm programming on a GUI for my simulink model with guide. To set Parameters in a simulink Block and to start the model from gui the appropriate set_param commands are used. But every time a set_param command is executed by matlab the guide OpeningFcn function is called.
Is there a way to avoid this?
댓글 수: 3
Ryan G
2013년 4월 11일
I'm not seeing this issue with a simple model/GUI. What version are you using? What callback are these currently in? Have you tried doing this with a simple GUI/Model to verify this is the issue?
답변 (1개)
Babak
2013년 4월 10일
If the GUI is not open, as soon as you call to open it, the OpeningFcn runs. Now its up to you what to put in the Opening Fcn. You can write the OpeningFcn such that the GUI's initialization parameters would be set according to the Simulink model's parameters like for example using the Simulink workspace parameters or model parameters.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!