PLECS 3.2 Online Help |
To use the scope, drag the scope block from the PLECS library onto your worksheet or schematic diagram. The scope block for Simulink can be found in the top level of the PLECS library. The scope block for a PLECS circuit is located in the PLECS Sources & Meters library.
Double clicking on the Scope block opens the Scope window. The main window of the scope can contain multiple plots. Plots can be quickly added or removed by right clicking the plot area and selecting Insert plot above, Insert plot below or Remove plot from the context menu.
The optional Zoom view, Saved view and Data view windows can be opened by right-clicking on the toolbar area. They can also be opened from the View menu. These optional windows can be docked and undocked from the main window. To dock them in main window, simply drag them to the desired location inside the main window.
Zooming is performed by clicking on the plot area and dragging the mouse until the desired area is selected. Two zoom modes exist: Constrained Zoom and Free Zoom. The zoom mode is selected using the toolbar button. To temporarily switch zoom modes, the Ctrl key (cmd key with Mac OS) can be pressed.
With Constrained Zoom, zooming is only performed in the x or y direction. The zoom direction is selected by moving the mouse horizontally or vertically.
With Free Zoom mode activated, the zoom area is defined by dragging the zoom cursor over a certain portion of the plot.
Zoom to fit will fit the entire waveform into the plot window.
A zoom range can also be manually specified. Double-clicking on the x or y axis opens a window in which the x or y range of the zoom area can be entered.
Every time a zoom action is performed, the view is stored in the view history. The previous and next view buttons allow you to navigate backwards and forwards through the view history.
A zoom area can be panned by dragging the x or y axes of the plot with the hand symbol that appears.
The zoom area window displays the entire waveform and highlights the zoom view that is displayed in the plot window. Constraint Zoom and Free Zoom can also be performed in the zoom area window. The zoom area window is activated by right clicking on the toolbar.
The cursors are used for measuring waveform values and analyzing the simulation results. Cursors can be positioned by dragging them to a specific time location, or by manually entering a value in the Time row in the Data Window.
When the cursors are moved, they will snap to the nearest simulation time step. To place the cursors arbitrarily, hold down the Shift key while moving the cursor. The values in the data window will be displayed in italics to indicate they are interpolated from the two nearest time steps.
When the cursors are activated, the data window appears if it was not already open. By default, the data window displays two columns in which the time and data value of each signal at the position of each cursor are given. The signal names are also displayed and can be modified by double-clicking on the name.
A right-click into the Data Window shows a context menu. Selecting "Copy to Clipboard" copies the current contents of the table to the system clipboard. Afterwards the data can be pasted into other applications, e.g. a spreadsheet tool or word processor.
A small icon that represents the signal type is shown next to the signal name in the data view window. Signals can be of the continuous, discrete or impulse type. The scope automatically determines the signal type from the port settings of the connected signal to ensure the signal is displayed correctly. The signal type can be overriden if necessary by clicking on the signal type icon.
Right-clicking on the data view header line in the data view window allows for additional data analysis columns to be displayed. For example, difference, RMS, min, max, and total harmonic distortion (THD) analysis can be performed. The analysis is performed on the data between the two cursors. For meaningful RMS and THD values the cursor range must be equal to the period of the fundamental frequency.
Locking the cursors can be useful for performing measurements over a fixed time period, such as the time period of an ac voltage. When dragging one of the locked cursors, the other cursor will be moved in parallel at a specified time difference. To lock the cursors, the Delta column in the Data Window must be made visible by right-clicking on the table header. The desired cursor distance can be entered in the Time row of the Delta column. The cursors can be unlocked by double-clicking on the lock icon in the Delta column.
A Fourier analysis of the data in the current cursor range is accessible from the View menu. The use of the Fourier analysis is detailed in section Using the Fourier Analysis.
A particular zoom view can be saved by pressing the camera button. The saved views window will appear if it was not already displayed and the new view will be added to the saved views list. To access a particular saved view, click on the view name in the saved views window. Saved views can be renamed by double clicking the name of the view. A view can be removed with the red delete button.
After a simulation has been completed the resulting curves can be saved as a trace. Traces allow to compare the results of different simulation runs.
A new trace is added by either pressing the Hold current trace button in the toolbar or by pressing the green plus button next to the Current Trace entry in the Traces window. To remove a trace press the red minus button next to the trace in the Traces window.
Traces can also be added and removed by simulation scripts. For details, see section Holding and Clearing Traces in Scopes.
The scope parameters dialog allows for the appearance of the scope to be changed and automatic or custom zoom settings to be applied to the x and y axes. More information can be found in the Scope Parameters Description. The plot background color can be changed in the PLECS preferences (see section Configuring PLECS).
A plot can be printed or exported from the File menu. When printing, the appearance of the plot and legend can be changed using the Page Setup option. When exporting, the plot style can also be changed and the output size of the image can be customized.