Triggered To Workspace
R2026bWrite input sample to MATLAB workspace when triggered
Libraries:
DSP System Toolbox /
Sinks
Description
The Triggered To Workspace block creates a matrix or array variable in the MATLAB® workspace, where it stores the acquired inputs at the end of a simulation. The block overwrites an existing variable with the same name.
To save a record of the sample time corresponding to each sample value, open the Configuration Parameters dialog box. To open the Configuration Parameters, in the Modeling tab of the Simulink® model toolstrip, click Model Settings. In the left pane of the window that opens, click Data Import/Export and select the Time check box.
The nontriggered version of this block is the To Workspace (Simulink) block.
Ports
Input
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"dspsnks4/Triggered To Workspace"
Example: add_block("dspsnks4/Triggered To Workspace","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a
See Also
Signal From Workspace | To Workspace (Simulink) | Triggered Signal From Workspace | Trigger (Simulink)