How can I use App Designer to control, tune and visualize my real-time application running on a Speedgoat computer?

55 views (last 30 days)
I am interested in developing a custom GUI using App Designer to control, tune and visualize my Simulink Real-Time (SLRT) application running on my Speedgoat target computer. How can I do this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Jan 2024
Edited: MathWorks Support Team on 23 Jan 2024
Expanding App Designer support for Simulink Real-Time (SLRT) is an active area of development and we recommend using the most recent MATLAB release if possible. For details on new features and recent changes, refer to the SLRT Release Notes. Here is a summary of tools, resources, and tips:

SLRT App Generator (available from R2022a)

In R2022a, we introduced Simulink Real-Time App Generator. It enables you to automatically generate an App Designer app from a model. You can then open the generated MLAPP file in App Designer for additional changes. The App Generator can save you a lot of time compared to designing the App from scratch.
 

App Designer Basics for SLRT

To design your app from scratch, or further customize your SLRT App Generator generated app, the following tutorials are a great place to get started:
Use the following objects and functions in the app code and callbacks:
  • To control your real-time application, use the 'slrealtime' target object.
  • To tune parameters via UI components (e.g. Knob, Switch), use a ParameterTuner (21b+), or use 'setparam' in the component callback.
  • To configure signals for live streaming to your app, use instruments.
  • To plot signals, bind instruments to Axes components using connectLine.
  • To display signals in other UI components (e.g. Numeric Edit Field, Gauge, Lamp), bind instruments to components using connectScalar.
Since R2021b, the Component Library in App Designer includes a set of dedicated Simulink Real-Time components that support common operations that interface to a real-time application. For more information, see Create App Designer Instrument Panels by Using Simulink Real-Time Components .
 

Limitations & Other Considerations

(1) Deployment Considerations: If you have a MATLAB Compiler license, you can compile your App Designer GUI as a standalone executable to run it on a computer without a MATLAB installation/license. However, note that this feature was only introduced in release R2021b. For more information regarding this workflow, see Create Standalone Instrument Panel App by Using Application Compiler.
(2) Performance Considerations: App Designer underwent significant refactoring in MATLAB release R2022b. Upgrade to R2022b or beyond for improved overall performance and responsiveness of the app.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!