To Workspace
Write the data to the workspace.
Description
The To Workspace block writes its input values to the workspace. The recorded data is written to the workspace when the simulation ends. The To Workspace block supports scalars (single numbers), vectors (ordered sets of numbers), and matrices (arrays of numeric values).
When data is unloaded using the To Workspace block, variables of type WorkspaceArray are obtained. To read data from variables of this type, use the block From Workspace.
The name of the variable is displayed on the block icon.
Parameters
Main
Variable name - name of the variable for the data to be saved
workspace_out (by default)
| string
The name of the variable containing the written data. By default, the To Workspace block stores the written data in a variable named workspace_out. If the model contains several To Workspace blocks, the value of the Variable name parameter for each block must be unique.
The specified variable name is displayed on the block icon.
Block parameter |
|
Variable value |
|
By default |
|