LookupTable_file
This block approximates a non-linear function using interpolation on data provided as a "1D-table".
Library
LookupTables
Parameters
Name | Label | Description | Data Type | Valid 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)' |
typ | Output datatype | Defines the datatype of the output of the block. Available datatypes are: double, int32, int16, int8, unit32, uint16, uint8. | String | 'double' |
EventGen | Apply zero crossings | Enable this parameter to detect the zero crossings. Default is on. | Scalar | 0 |
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 |
Name | Label | Description | Data Type | Valid 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' |
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' |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | explicit | input | 1 | |
Port 3 | activation | input | externalActivation |