Visualize Simulation Data in Simulink - MATLAB & Simulink
Video Player is loading.
Current Time 0:00
Duration 3:42
Loaded: 4.45%
Stream Type LIVE
Remaining Time 3:42
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected
    Video length is 3:42

    Visualize Simulation Data in Simulink

    Visualizing simulation data throughout the modeling process helps you understand, prototype, and tune your models. In Simulink®, you can select from different data visualization tools to suit your needs:

    • Scope block: View connected signals in a separate compact window.
    • Dashboard block library: Build an interactive interface to control and monitor the simulation by using graphical controls and displays.
    • Record block: View and log signals to the workspace or a file.
    • Simulation Data Inspector: Visualize, compare, and analyze data from multiple simulations in one place.
    • Custom MATLAB® visualizations: Log simulation data to MATLAB and use MATLAB figures and charts to create custom visualizations.
    • 3D Visualizations: Connect to Unreal Engine® to simulate and visualize the behavior of your Simulink models in prebuilt or custom 3D scenes.

    Published: 5 Jan 2023

    Visualizing simulation data throughout the modeling process helps you understand interior model behavior. In Simulink, you can select from different visualization options to suit your needs. The Scope block visualizes connected signals, just like benchtop oscilloscopes. They are great for viewing signals in a separate compact window and quickly verifying component behavior in the early stages of model development.

    As your design progresses, you will probably want to build an interactive interface at the top level of the model, so that you and your colleagues can control and monitor the simulation in one place. You can do this by using graphical controls and displays from the Dashboard Block library. You can use Dashboard Control Blocks to modify variables and parameters during simulation. Visualization Dashboard Blocks are updated continuously throughout simulation, so that you can view the instantaneous signal values.

    The Dashboard Scope Block provides a simple view of a signal over time that is available to be seen right on the canvas. You can zoom, pan, and add cursors to the Dashboard Scope Block, just like you can in the other visualization approaches. The Record Block allows you to view signals and adds additional logging capabilities that are easy to access, such as recording signal data to the workspace or to a file for post-processing and analysis.

    As you develop your model, it is often important to run multiple simulations to test different scenarios or to optimize design parameters. By this point, you could be monitoring dozens of separate signals. The Simulation Data Inspector can be used to visualize all this data, for multiple simulations, in one place. You can view many signals from different simulation runs. You can use comparisons to analyze and compare data from different simulation runs with tolerance values, and export the data or save results as plots.

    Many Simulink visualization tools focus primarily on the time and frequency domains. To view your data in other domains, or in a way that is not available in Simulink, consider logging your simulation data to MATLAB, and create custom visualizations by using MATLAB Figures and Charts. Add-on products-- such as Aerospace Blockset, Vehicle Dynamics Blockset, UAV Toolbox, and RoadRunner-- allow you to connect to the Unreal Engine to simulate and visualize the behavior of your Simulink models in pre-built or custom 3D scenes.

    To get a better understanding of how your system behaves within its environment, you can use Simulink 3D animation to link your Simulink models to 3D graphics objects in virtual reality scenes. You can edit, animate, and visualize dynamic system behavior in the virtual world. Scene data can be recorded into 2D videos or 3D animation files, for playback and further processing. Data visualization tools in Simulink help you prototype and debug your models throughout the modeling process. Choose the right tools to visualize your model data, based on your needs.

    View more related videos