DSP Blockset
  Go to block:
    Search    Help Desk 
Time Frame Scope    See Also

Display frame-based data.

Library

DSP Sinks

Description

The Time Frame Scope block is a comprehensive tool, similar to a digital oscilloscope, for displaying frame-based signals and data. The scope window, axis-property settings, line-property settings, and frame-handling capability are shared with the Frequency Frame Scope and User-Defined Frame Scope blocks.

The block assumes that each length-M input frame represents a block of M consecutive samples from a time-series. That is, each data point in the input frame is assumed to correspond to a unique time value, u=u(t).

The scope updates the display for each new input frame. At any one time, the number of sequential frames displayed on the scope is specified by the Time display span parameter, S. Setting S equal to 1 plots the current input frame's data across the entire width of the scope. Setting S to a larger number allows you to see a broader section of the signal by fitting more frames of data into the display region. A single frame is the smallest unit that can be displayed, so S cannot be less than 1.

The range of the horizontal (time) axis is [0,S*Tfi], where Tfi is the input frame period, and the spacing between time points is Tfi/(M-1).

Axis Properties

All the frame scope blocks offer a similar collection of axis property settings. These can be exposed in the parameter dialog box by selecting the Axis properties check box. A complementary set of properties can be accessed under the Axes menus in the unzoomed scope view, or by right-clicking on the scope window. See the "Scope Window" section for more on these methods.

Minimum Y-limit and Maximum Y-limit set the range of the vertical axis. If Autoscale is selected from the right-click pop-up menu, the Minimum Y-limit and Maximum Y-limit values are automatically recalculated to best fit the range of the data on the scope.

The Figure position parameter specifies a 4-element vector of the form

specifying the position of the scope window on the screen, where (0,0) is the lower-left corner of the display. See the MATLAB figure command for more information.

The Axis grid and Axis legend check boxes add or remove a grid and legend from the scope window. Click and drag on the legend to reposition it in the scope window; double click on the line label to edit the text.

The Memory parameter, when checked, causes the window to maintain successive displays (infinite persistence). That is, the scope does not erase the display after each frame (or collection of frames) is plotted, but overlays successive input frames in the scope display.

Line Properties

All the frame scope variations also offer a similar collection of line property settings. These can be exposed in the parameter dialog box by selecting the Line properties check box. These properties can also be accessed under the Channels menus in the unzoomed scope view, or by right-clicking on the scope window. See the "Scope Window" section for more on these methods.

The Line properties setting are typically used to help distinguish between two or more independent channels of data on the scope. See "Frame-Based Operation" for a description of how the block handles multichannel frame-based inputs.

The Line visibilities parameter specifies which channels' data is displayed on the scope, and which is hidden. The syntax specifies the visibilities in list form, where the term on or off as a list entry specifies the visibility of the corresponding channel's data. The list entries are separated by the pipe symbol, |.

For example, a five-channel signal would ordinarily generate five distinct plots on the scope. To disable plotting of the third and fifth lines, enter the following visibility specification:

Note that the first (leftmost) list item corresponds to the first signal channel (leftmost column of the input matrix).

The Line colors parameter specifies the color in which each channel's data is displayed on the scope. The syntax specifies the channel colors in list form, with each list entry specifying a color (in one of MATLAB's ColorSpec formats) for the corresponding channel's data. The list entries are separated by the pipe symbol, |.

For example, a five-channel signal would ordinarily generate all five plots in the color black. To instead plot the lines with the color order below, enter

or

These settings plot the signal channels in the following colors (8-bit RGB equivalents shown in the center column):

Color
RGB Equivalent
Appearance
Black
(0,0,0)

Blue
(0,0,255)

Red
(255,0,0)

Green
(0,255,0)

Dark purple
(192,0,192)

Note that the first (leftmost) list item, 'k', corresponds to the first signal channel (leftmost column of the input matrix). See ColorSpec in the online MATLAB Function Reference for more information about the color syntax.

The Line styles parameter specifies the line style with which each channel's data is displayed on the scope. The syntax specifies the channel line styles in list form, with each list entry specifying a style for the corresponding channel's data. The list entries are separated by the pipe symbol, |.

For example, a five-channel signal would ordinarily generate all five plots with a solid line style. To instead plot each line with a different style, enter

These settings plot the signal channels with the following styles:

Line Style
Appearance
Solid

Dashed

Dotted

Dash-dot

Solid

Note that the first (leftmost) list item, '-', corresponds to the first signal channel (leftmost column of the input matrix). See LineStyle property of the line function (in the MATLAB Function Reference) for more information about the style syntax. To specify a marker for the individual sample points, use the Line markers parameter, described below.

The Line markers parameter specifies the marker style with which each channel's samples are represented on the scope. The syntax specifies the channels' marker styles in list form, with each list entry specifying a marker for the corresponding channel's data. The list entries are separated by the pipe symbol, |.

For example, a five-channel signal would ordinarily generate all five plots with no marker symbol (i.e., the individual sample points are not marked on the scope). To instead plot each line with a different marker style, you could enter

These settings plot the signal channels with the following styles:

Marker Style
Appearance
Asterisk

Point

Cross

Square

Diamond

Note that the first (leftmost) list item, '*', corresponds to the first signal channel (leftmost column of the input matrix). See the Marker property of the line function (in the MATLAB Function Reference) for more information about the available markers.

Type the word stem instead of one of the basic Marker shapes to produce a stem plot for the data in a particular channel.

Scope Window

The scope title (in the window title bar) is the same as the block title. The axis scaling is set by parameters in the dialog box.

In addition to the standard MATLAB figure window menus (File, Edit, Window, Help), the Time Frame Scope window has an Axes and a Channels menu containing the following items:

Many of these options can also be accessed by right-clicking with the mouse anywhere on the scope display. The menu that pops up contains a combination of the options available in both the Axes and Channels menus. The right-click menu is very helpful when the scope is in zoomed mode, when the Axes and Channels menus are not visible.

Frame-Based Operation

Inputs to the frame scope blocks are loosely considered to be frames, even though they need not contain consecutive time samples. For example, valid inputs include vectors of power spectral density data and histogram data. Indeed, the input can even be a sequence of sample vectors to plot against a common axis. The blocks are referred to as frame-based because they process matrix inputs in the usual frame-based fashion.

The block assumes that an M-by-N matrix input contains a collection of N frames, where each frame contains M samples (time-domain, frequency-domain, etc.) from an independent signal. The Number of channels parameter specifies the number of independent channels (columns, N) in the matrix, and the block plots each channel separately. Different colors, markers, and styles can be specified for the different channels. See above.

The illustration below shows a 6-by-4 frame matrix input.

Dialog Box

Y-Axis title
The text to be displayed to the left of the y-axis.
Time display span
The number of consecutive frames to display (horizontally) on the scope at any one time.
Number of input channels
The number of channels (columns) in the input matrix.
Axis properties 
Select to expose the Axis Properties panel.
Minimum Y-limit
The minimum value of the y-axis.
Maximum Y-limit
The maximum value of the y-axis.
Figure position
A 4-element vector of the form [left bottom width height] specifying the position of the scope window. (0,0) is the lower-left corner of the display.
Axis grid 
Toggles the scope grid on and off.
Axis zoom 
Resizes the scope to fill the window.
Frame number 
Displays the number of the current frame in the input sequence, when selected with Axis zoom off. The frame number is not shown in the zoomed view.
Axis legend 
Toggles the legend on and off.
Memory 
Causes the window to maintain successive displays. That is, the scope does not erase the display after each frame (or collection of frames), but overlays successive input frames in the scope display.
Line properties 
Select to expose the Line Properties panel.
Line visibilities 
The visibility of the various channels' scope traces, on or off. Channels are separated by a pipe ( | ) symbol.
Line colors 
The colors of the various channels' scope traces, in one of the ColorSpec formats. Channels are separated by a pipe ( | ) symbol.
Line styles 
The line styles of the various channels' scope traces. Channels are separated by a pipe ( | ) symbol.
Line markers 
The line markers of the various channels' scope traces. Channels are separated by a pipe ( | ) symbol.

See Also

FFT Frame Scope
Frequency Frame Scope
Matrix Viewer
User-Defined Frame Scope


[ Previous | Help Desk | Next ]