FromBase
This block outputs the value of the corresponding variable defined from the Base scope. If the variable is not defined in the Base, the variable default value is used.
Library
SignalImporters
Description
The FromBase block is used to return a value defined in the Base scope of OML. The first parameter of the block is a variable name, passed as a string.
If the variable is defined in the OML base workspace, the value is returned.
Else, if the variable is not defined in the base scope of the interpreter, the block will return a default value (defined by the second parameter of the block).
The variable value can also be created by a ToBAse block in an Activate model.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
varname | Variable name | String | ||
C | Variable default value | Matrix | ||
typ | Output datatype | String | 'double' | |
externalActivation | External activation | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | Time Dependency = initially activated |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |