SignalGenerator

This block creates signals. The signals are defined by specifying a time vector and a value matrix providing the values of the signals at specified times. Signal values at intermediate points are obtained by interpolation. Several interpolation methods are available. This block can also generate periodic signals.

    SignalGenerator

Library

SignalGenerators

Description

The Signal Generator block create signals. The signals are defined by specifying a time vector and a value matrix providing the values of the signals at specified times. Signal values at intermediate points are obtained by interpolation. Several interpolation methods are available. This block can also generate periodic signals.

Signal value at intermediate points are obtained by interpolating the points. Several interpolation methods are available. This block can also generate the peridic signals.

The Signal Generator block can generate events at its event output port at every instant of the time instant vector. If higher order interpolation is chosen, events are generated only at first and final time instants.

Parameters

SignalGenerator_0

NameLabelDescriptionData TypeValid Values

xx

Time instants

Abscissa (time) vector. A row vector of monotonic increasing values of size N.

Vector

yy

Output values

Ordinate (value) vector. A matrix of N columns.

Matrix

typ

Output datatype

Defines the datatype of the output.
Supported types are : double, complex, int32, int16, int8, uint32, uint16, uint8, boolean, inherit.

String

'double'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'boolean'
'inherit'

outevent

Generate events at time instants

Defines if an output event must be added. At each discontinuity in the signal an event is generated. If higher order interpolation is used, only the first and final time instat are considered as discontinuous and only two events are generated.

Scalar

0
1

firstder

First derivative output

If checked, an output port provides the first time derivative of the signal

Number

0
1

secondder

Second derivative output

If checked, an output port provides the second time derivative of the signal

Number

0
1

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

SignalGenerator_1

NameLabelDescriptionData TypeValid Values

Method

Method

Interpolation method, to be selected amongst: ZeroOrder, Linear, Not a Knot, Natural, Clamped To Zero.

String

'ZeroOrder'
'Linear'
'Not_a_knot'
'Natural'
'Clamped_To_Zero'
'Akima'
'Fritsch_Butland'
'Steffen'

Leftside

Behavior before the data time span

Set the signal values before the data start time using one of the following method: Zero, Hold (use first value), Extrapolation (use first values), Repeat (periodic).

String

'Zero'
'Hold'
'Extrapolation'
'Repeat'

Rightside

Behavior after the data time

Set the signal values after the data end time using one of the following method: Zero, Hold (use last value), Extrapolation (use last values), Repeat (periodic).

String

'Zero'
'Hold'
'Extrapolation'
'Repeat'

Ports

NameTypeDescriptionIO TypeNumber

s

explicit

output

1

Port 2

explicit

output

firstder+firstder*secondder

Port 3

activation

input

externalActivation

Port 4

activation

output

outevent

Advanced Properties

NameValueDescription

always active

no

Time Dependency = standard mode activated

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no