Skip to content

mathworks/Streaming-Instrumentation-Utilities-for-Simulink-Real-Time

Streaming Instrumentation Utilities for Simulink Real-Time

View <File Exchange Title> on File Exchange Open in MATLAB Online

This toolbox implements streaming instrumentation utilities suitable for some advanced use cases such as rolling and triggered buffer objects in the MATLAB workspace and animated lines for MATLAB figures compatible with Simulink® Real-Time™ (SLRT). Taken built-in real-time instrumentation as foundation, this toolbox ships additional instrumentation capabilities following Object-Oriented Programming best practices in MATLAB.

Use these instrumentation objects to enhance your AppDesigner apps or MATLAB scripts and figures for signal processing applications or enable/disable control of scopes. For full control of streaming signals and closer inspection of simulation results, Simulation Data Inspector is still the recommended option.

Setup

To Run:

  1. Download the toolbox installer to your computer from the Releases section.
  2. In your MATLAB session, execute the toolbox installer.

You can also install the toolbox from within the Add-On Manager in MATLAB searching the toolbox name directly.

MathWorks Products (https://www.mathworks.com)

Requires MATLAB release R2020b or newer

3rd Party Products

  • Speedgoat® real-time target machine. Must be connected to the host PC to run the examples.

Getting Started

Please install the toolbox and see the Getting Started documentation.

Examples

To learn how to use this in testing workflows, see Examples.

  • basic_animatedScope_customFigure.m : Plots an animated line object into an axes within a MATLAB uifigure.

Animated line figure

  • basic_asyncBuffer.m : Creates an asynchronous FIFO buffer object in the MATLAB base workspace filling with data in the background.

Asynchronous buffer object

  • basic_triggeredBuffer.m : Creates a buffer object in the MATLAB base workspace that fills when a certain condition is met.

Triggered buffer object

  • testApp.mlapp : Simple SLRT app that connects, deploys and runs with a sine wave model running on the target, and uses an animated line with live streamed data.

App with animated line

License

The license is available in the license.txt file in this GitHub repository.

Community Support

MATLAB Central

About

This toolbox implements streaming instrumentation utilities suitable for some advanced use cases such as rolling and triggered buffer objects in the MATLAB workspace and animated lines for MATLAB figures compatible with Simulink Real-Time (SLRT).

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Languages