SignalOut

This block writes a signal to the OML workspace. At each activation step, time, input value and some information on the type of activation are recorded.

    SignalOut

Library

Activate/SignalExporters

Description

The SignalOut block is used to put simulation data in the OML workspace. Each sampling time, both time and value of input are recorded.

Data is then exposed in the workspace as a Twin Activate sigs object.

Data can also be read by a SignalIn block that can reconstruct the original signal fed to the SignalOut block.

Consider, for example, the signalOut block with 3 input ports and the signal name "A".

After the simulation, the time instants of data stored in "A" can be retrieved using "A.time" command and the data matrix corresponding to input port "i" is retrieved using "A.ch{i}.data" command in the OML window.

Parameters

SignalOut_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Number of inputs. Integer value.

Number

varname

Variable name

Name of the OML variable to be set in the OML workspace.

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

SignalOut_1

NameLabelDescriptionData TypeValid Values

subsample

Sub-sampling rate

Sub sampling rate should be greater than 1.

Scalar

increasingTime

Strictly-increasing time

If enabled, a strictly-increasing time sequence will be created.

Number

0
1

buffsize

Buffer size

Size of the buffer (gives the total number of samples recorded during the simulation). This is a circulate buffer.
Integer value. 0 for an unlimited buffer. Default size is 128.

Scalar

R_MP

Register mesh points

Register the continuous time step. Event code is 0.

Number

0
1

R_DE

Register discrete events

Register the discrete time event. Event code is 1

Number

0
1

R_MPLL

Register left limit of discrete events

Register the event just before a discrete event. Event code is -1.

Number

0
1

R_ZCLL

Register left limit of zero crossings

Register the event just before a zero crossing event. Event code is 4.

Number

0
1

R_TRY

Register try points

Register the events in try phase. Event code is 2 or 3.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

nin

Port 2

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

See Also