Engee documentation

To Workspace

Writes data to the workspace.

blockType: ToWorkspace

Path in the library:

/Basic/Sinks/To Workspace

Description

The To Workspace block records its input signal values in the workspace. The recorded data is written to the workspace when the simulation is completed. The To Workspace block supports scalars (single numbers), vectors (ordered sets of numbers), and matrices (arrays of numeric values).

When unloading data using the To Workspace block, variables of the WorkspaceArray type 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.

Ports

Input

# IN_1 — data to be written to the workspace
scalar | vector | matrix

Details

Input port that receives data to be registered in the workspace.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Complex numbers support

Yes

Parameters

Main

# Variable name — variable name for the data to be saved
String

Details

The name of the variable containing the written data. By default, the To Workspace block stores the recorded data in a variable named workspace_out. If the model contains several To Workspace blocks, the value of the Variable name parameters must be unique for each block.

The specified variable name is displayed on the block icon.

Default value

workspace_out

Program usage name

VariableName

Tunable

No

Evaluatable

No