Simulink.LookupTable
Store and share lookup table and breakpoint data, and configure data for ASAP2 and AUTOSAR code generation
Description
A Simulink.LookupTable object stores lookup
table and breakpoint data. You can use that data in a lookup table block such as the
n-D Lookup Table block. With the object,
you can specify data types and code generation settings for the table and the breakpoint
sets.
When you store all of the table and breakpoint set data in a single Simulink.LookupTable object, all of the data is created in a
single structure in the generated code. To configure standard axis (STD_AXIS) code
generation for calibration, use this technique.
To share a breakpoint set between multiple lookup tables, such as for common axis
(COM_AXIS) code generation, use a Simulink.Breakpoint object in one or more Prelookup blocks. Use Simulink.LookupTable
objects in Interpolation Using Prelookup blocks.
Then, configure the lookup table objects to refer to the breakpoint object. For more
information, see Package Shared Breakpoint and Table Data for Lookup Tables.
Creation
Description
LUTObj = Simulink.LookupTable returns a
Simulink.LookupTable object LUTObj with
default property values.
To create a Simulink.LookupTable object by using the Model
Explorer, click the Add Simulink LookupTable button
and select Simulink
LookupTable. The default name for the object is
Object.
Properties
Examples
Limitations
When blocks in a subsystem use Simulink.LookupTable or
Simulink.Breakpoint objects, setting data type
override only on the subsystem is not supported. Instead, set data type override on the
entire model.
Version History
Introduced in R2016bSee Also
Simulink.lookuptable.Breakpoint | Simulink.lookuptable.Evenspacing | Simulink.lookuptable.StructTypeInfo | Simulink.lookuptable.Table | Simulink.Parameter | Simulink.Breakpoint
Topics
- Configure Lookup Tables for AUTOSAR Calibration and Measurement (AUTOSAR Blockset)
- About Lookup Table Blocks
- Edit Lookup Table Data with Lookup Table Spreadsheet
- Breakpoint and Table Size Features in Lookup Tables
- Package Shared Breakpoint and Table Data for Lookup Tables
- Create Tunable Calibration Parameter in the Generated Code (Simulink Coder)