Simulink-GUI Synchronization Example 1.0
File ID: 90120
Simulink-GUI Synchronization Example 1.0 Description
Description: Developing Graphical User Interfaces that drive Simulink models is a relatively common practice that can be accomplished with calls to get_param, set_param, and other Simulink functions. However, it can be challenging to update settings in the GUI when the user opts to alter them in the model directly rather than working through the GUI. This can lead to mismatches in settings in the model and values in the GUI.
This example demonstrates certain techniques to accomplish synchronization between a model and GUI. Through the use of Model and Block callbacks, we will be able to
1) Automatically open/close a GUI when opening/closing a model.
2) Update a pushbutton string when the user pushes Play in Simulink.
3) Update a pushbutton string when the simulation stops or the user pushes the Stop simulation button in Simulink.
4) Update a checkbox value when a Manual Switch is updated in Simulink.
In this manner, we enable the user to make changes through the GUI or directly within Simulink without causing mismatches between the two. Commentary, annotation, and a readme are provided to further explain how this is accomplished.
Related: pushes, String, pushbutton, Simulation, stops, Checkbox, Button, Update, openingclosing, Model, Block, callbacks, openclose, Automatically, Manual, Annotation, commentary, causing
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 20.5 KB
|More Similar Code|
This example basically explains the real time update of simulink variables in GUI. The example displays the updated data in gauge and axes.
Copy the files in your workspace.
Type "my_gui" in command window.
The MathWorks receives many questions relating to Simulink state ordering, state initialization, and Simulink solver performance. Many times customers are not aware of existing capabilities that are available and will solve their current...
This script shows how to make over a static GUI using uipanels and normalized units so that it gracefully resizes with the size of the figure window. It walks through simple steps that can be used to transform any such GUI.
The MATLAB Function block can be used to stream live data into a Simulink model. This can be useful to validate models with real data under different test conditions for example.
This example uses the Data Acquisition Toolbox to process...
This file contains a guide_simulink_sfunction interface. It is a fairly easy and simple application. It was mainly created as a reply for a question from one of the students on d-deDUhow to display the simulink results in real time in a gui...
OpenWire offers yot a free open source library for writing advanced VCL/FireMonkey(FMX) components for Delphi, C++ Builder and RAD Studio.
The purpose of the OpenWire project is to introduce unified easy way to transfer data among different...
This software has been realized by Ben Chandler at the CNS Technology Lab at Boston University (http://techlab.bu.edu/). The main author of the software is Ben Chandler ( http://www.neurdon.com/about-2/editors/ben-chandler/ )
This is a...
The models in this zip file can be used as tutorial examples. They are the models used in the Physical Modeling Hands-on Workshop events offered by the MathWorks.
The examples here are models in Simscape, SimMechanics, SimDriveline,...
This is a GUI that allows you to go through the parameters of Simulink models, blocks, and signals once you have an open Simulink model (the GUI needs some minor updates to catch unexpected warnings but works fine).
This is small example I was trying for a long time for passing the value from the Gui's Pushbutton to the output function, so that I can access it from the workspace. Posting it here if somebody needs tips for some basic gui...
|User Review for Simulink-GUI Synchronization Example