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 (MATLAB) and Managing Code in App Designer Code View (MATLAB).

  • 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 .

To stream signal and parameter data to the instrument panel app from the real-time application, you use the SimulinkRealTime.prototype.Instrumentation object. After you create an instrumentation object for a real-time application, you can use instrumentation 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 Target Computer Explorer (Tech Preview). For more information, see Display and Filter Hierarchical Signals and Parameters (tech preview).

See Also

| | |

Related Examples

More About