ToBase
This block writes data in the base OML workspace.
Library
Activate/SignalExporters
Description
The ToBase block is used to write data from Twin Activate into the base OML workspace. The specified variable is updated when this block is activated.
This block supports signals of all data types but integer and boolean data types are implicitly converted to double in the base workspace.
Unlike the SignalOut block, this block does not keep the history of the variable during the simulation. Only the last value of the variable is kept and make it available in the OML shell.
The value of the variable can also be read by a FromBase block in the same or another Twin Activate model.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
varname | Variable name | Variable that should be written in the base OML workspace. The specified variable is updated when this block is activated. | String | |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | standard mode is used. |
direct-feedthrough | yes | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |