Real-Time Windows Target    

Plotting Logged Signal Data

You can use the MATLAB plotting functions for visualization of your nonreal-time simulated data or your real-time executed data.

After running your real-time application and logging data to a disk drive, you can plot the data. This procedure uses the Simulink model rtwin_model.mdl as an example, and assumes you saved your data to the variable ScopeData:

  1. In the MATLAB command window, type
  1. MATLAB lists the structure of the variable ScopeData. The variable ScopeData is a MATLAB structure containing the fields time vector, signal structure, and a string containing the block name.

  1. To list the MAT-files saved to your disk drive, type
  1. MATLAB displays the MAT-files in your current working directory.

  1. To clear the MATLAB workspace and load the scope data, type
  1. MATLAB displays

  1. To plot the first 1000 points, type
  1. MATLAB plots the first 1000 samples from 0.0000 to 0.9990 second.


  Entering Data Archiving Parameters Parameter Tuning