ToBase
This block writes data from Activate in the base OML workspace.
Library
SignalExporters
Description
The ToBase block is used to write data from 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 Activate model.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
varname | Variable name | String | ||
externalActivation | External activation | 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 |