Instrumentation Apps for Real-Time Applications
To visualize the behavior of a real-time application running on a target computer, you can create instrument panel apps. An instrument panel app is an user-interface application into which you can insert one or more instruments. To create an instrument panel app, use App Designer or an m-script.
When you create an instrument panel app in the App Designer Design View, you add instrument components from the App Designer Component Library to the app. You configure each instrument by using fields in the Component Browser. In the App Designer Code View, you add callback code to handle component events, such as new streaming data or interaction with the app. For more information, see App Building Components and Manage Code in App Designer Code View.
When you create an instrument panel app by using an m-script, you use a programmatic approach to add each instrument to the panel as UI component. For more information, see Create Callbacks for Apps Created Programmatically.
To stream signal and parameter data to the instrument panel app from the real-time
application, you use the Instrument
object. After you create an instrument object for a real-time application, you can use
instrument object functions to connect signals and parameters from the real-time application
to instrument panel app callbacks.
When identifying parameters and output signals to stream signal to the instrument panel app from the real-time application, it can be helpful to use the hierarchical display of signals and parameters. See Simulink Real-Time Explorer. For more information, see Display and Filter Hierarchical Signals and Parameters.
See Also
Simulink Real-Time
Explorer | Instrument
Related Examples
- Add App Designer App to Inverted Pendulum Model
- Create App Designer Instrument Panels by Using Simulink Real-Time Components
- Create Standalone Instrument Panel App by Using Application Compiler