ToBase

This block writes data from Activate in the base OML workspace.

    ToBase

Library

Activate/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

ToBase_0

NameLabelDescriptionData TypeValid 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
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

standard mode is used.

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also