Scope
Purpose
Display simulation results versus time
Library
System
Description
The PLECS scope displays the measured signals of a simulation. It can be used in PLECS circuits as well as in Simulink models.
A number of analysis tools and data display options allow detailed analysis of the measured signals. For more information on how to work with the scope see section Using the PLECS Scope.
Parameters
Scope Setup
- Number of plots
- This parameter specifies the number of plots shown in the scope window. Each plot corresponds to a terminal on the outside of the block. For each plot, a tab is displayed in the lower part of the dialog where the plot settings can be edited.
- Sample time
- The block sample time used to sample the input signals. The default is -1 (inherited). Other valid settings are 0 (continuous) or a valid fixed-step discrete sample time pair (see Sample Times).
- Limit samples
- If this option is selected, the PLECS scope will only save the last
sample values during a simulation. It can be used in long simulations to limit the amount of memory that is used by PLECS. If the option is unchecked, all sample values are stored in memory.
Time Axis Parameters
- Display time axis
- The time axis is either shown underneath each plot or underneath the last plot only.
- Time axis label
- The time axis label is shown below the time axis in the scope.
- Time range
- The time range value determines the initial time range that is displayed in the scope. If set to auto, the simulation time range is used.
- Scrolling mode
- The scrolling mode determines the way, in which the x-axis is
scrolled if during a simulation the current simulation time goes beyond the right
x-axis limit.
In the paged mode, the plots are cleared when the simulation time reaches the right limit and the x-axis is scrolled by one full x-axis span, i.e. the former right limit becomes the new left limit.
In the continuous mode, the plots are continuously scrolled so that new data is always drawn at the right plot border. Note that this mode may affect runtime performance as it causes frequent updates of relatively large screen areas.
Individual Plot Parameters
- Title
- The name which is displayed above the plot.
- Axis label
- The axis label is displayed on the left of the y-axis.
- Y-limits
- The initial lower and upper bound of the y-axis. If set to auto, the y-axis limits are automatically chosen based on the minimum and maximum curve value in the visible time range. If you check the Keep baseline option, the limits are chosen so that the specified baseline value is always included.