how to change a simulink block diagram to GUI?

4 views (last 30 days)
i want to change this simulink model directly to GUI, where i can play with the PID, Step and Control signal input and to see the result of scope.
  2 Comments
Birdman
Birdman on 10 Nov 2017
What do you mean by change to GUI?
Muhammad Azfar Abdullah Pani
i mean to create GUI which have same function as the simulink so instead of click the block such as scope we can just press a button to see the graph... is there a note somewhere? direct change block function to a button?

Sign in to comment.

Accepted Answer

Birdman
Birdman on 10 Nov 2017
I gathered all the blocks within a subsystem and created a mask from it. If you double click the subsystem, you will see the parameters tunable when the simulation is running. When you make a change during simulation, click Apply button. To open the scope, click Open Scope button. Hope this is what you want.
  2 Comments
Birdman
Birdman on 10 Nov 2017
To code scope, write
open_system('your model name/Scope');
To code step
step(sys);

Sign in to comment.

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!