LookupTable_file

This block approximates a non-linear function using interpolation on data provided as a "1D-table".

    LookupTable_file

Library

Activate/LookupTables

Parameters

LookupTable_file_0

NameLabelDescriptionData TypeValid Values

fname

File name

Defines the name (path and full name, in between quotes) of the input .mat file.

String

v1_name

Name of variable for the scale

Name of variable for the scale.

String

table_name

Name of varaible for the table data

Name of variable containing the table data.

String

Method

Interpolation method

Interpolation method. Options are: ZeroOrder(Floor), ZeroOrder(Ceil), ZeroOrder(Nearest), Linear, Not a Knot, Natural, and Clamped.

String

'ZeroOrder(floor)'
'ZeroOrder(ceil)'
'ZeroOrder(nearest)'
'Linear'
'Not_a_knot'
'Natural'
'Clamped'

typ

Output datatype

Defines the datatype of the output of the block. Available datatypes are: double, int32, int16, int8, unit32, uint16, uint8.

String

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

EventGen

Apply zero crossings

Enable this parameter to detect the zero crossings. Default is on.

Scalar

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

LookupTable_file_1

NameLabelDescriptionData TypeValid Values

Leftside

Behavior on the left-hand side of the X data span

Action that should be taken on the left-hand side of the X data.

String

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

Rightside

Behavior on the right-hand side of the X data span

Action that should be taken on the right-hand side of the X data.

String

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

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

explicit

input

1

Port 3

activation

input

externalActivation