DSP Blockset
  Go to block:
    Search    Help Desk 
Triggered Signal To Workspace    See Also

Write the input sample to the workspace when triggered.

Library

DSP Sinks

Description

The Triggered Signal To Workspace block creates a matrix variable in the workspace, where it stores the acquired inputs at the end of a simulation. Each row of the workspace matrix represents an input sample, with the most recent sample occupying the last row. The maximum size of this variable is limited to the size specified by the Maximum number of rows (P) parameter. (If the simulation progresses long enough for the block to trigger more than P times, it stores only the last P samples.) The Decimation factor, D, allows you to store only every Dth sample.

The block acquires and buffers a single sample from input 1 whenever it is triggered by the control signal at input 2. At all other times, the block ignores input 1. The triggering event at input 2 is specified by the Trigger type pop-up menu, and can be one of the following:

To save a record of the sample time corresponding to each sample value, check the Time box in the Save to workspace parameters list of the Simulation Parameters dialog. You can access these parameters by selecting Parameters from the Simulation menu, and clicking on the Workspace I/O tab.

The nontriggered version of this block is Signal To Workspace.

Dialog Box

Trigger type 
The type of event that triggers the block's execution.
Variable name
The name of the workspace matrix in which to store the data.
Maximum number of rows
The maximum number of rows (one row per time step) to be saved, P. The default is 100 rows.
Decimation
The decimation factor, D. The default is 1.
Frame-based
Selects frame-based operation.
Number of channels
For frame based operation, the number of channels (columns) in the input matrix, N.

See Also

Signal From Workspace
Signal To Workspace
Triggered Matrix To Workspace


[ Previous | Help Desk | Next ]