Some of us Simulink users may find ourselves needing a graphical user interface (GUI) to run and interact with our dynamic simulation. For instance, we may need to modify block parameters or visualise results during the simulation, and not afterwards. Fortunately, you can.
Although Simulink does provide a programmable interface that you can call from MATLAB, this capability is rarely put into use (in fact, it is hardly even known by most users.) This article describes some of the ways in which you can utilise Simulink’s interface in MATLAB GUI.
QUARC can be used along with MATLAB's GUI creation tools to create graphical user interfaces in which you can perform tasks defined and designed by yourself that best suit your needs. For example you may have a complex Simulink model that implements a PID controller and want to monitor the change in step response as you change various gains in your diagram. Although this can be done in Simulink, using techniques such as Parameter Tuning, you could alternatively design a GUI in which you vary your gains using sliders and monitor the change in outputs directly on a plot. You can even have buttons for building, starting and stopping the model from the GUI so that your Simulink model doesn't even need to be open. This section describes how GUI's can be created and used by means of a simple walkthrough example. This example illustrates the basic principles of creating GUI's and linking them to your Simulink models. These principles can later be applied to design GUI's depending on your specific needs. You can refer to the QUARC MATLAB GUI Demo page to access the model and the GUI used as the examples in this section.
Some of us Simulink users may find ourselves needing a graphical user interface (GUI) to run and interact with our dynamic simulation. For instance, we may need to modify block parameters or visualise results during the simulation, and not afterwards. Fortunately, you can.
Although Simulink does provide a programmable interface that you can call from MATLAB, this capability is rarely put into use (in fact, it is hardly even known by most users.) This article describes some of the ways in which you can utilise Simulink’s interface in MATLAB GUI.
QUARC can be used along with MATLAB's GUI creation tools to create graphical user interfaces in which you can perform tasks defined and designed by yourself that best suit your needs. For example you may have a complex Simulink model that implements a PID controller and want to monitor the change in step response as you change various gains in your diagram. Although this can be done in Simulink, using techniques such as Parameter Tuning, you could alternatively design a GUI in which you vary your gains using sliders and monitor the change in outputs directly on a plot. You can even have buttons for building, starting and stopping the model from the GUI so that your Simulink model doesn't even need to be open. This section describes how GUI's can be created and used by means of a simple walkthrough example. This example illustrates the basic principles of creating GUI's and linking them to your Simulink models. These principles can later be applied to design GUI's depending on your specific needs. You can refer to the QUARC MATLAB GUI Demo page to access the model and the GUI used as the examples in this section.