Simulink.Breakpoint
Store and share data for breakpoint set, and configure the data for ASAP2 and AUTOSAR code generation
Description
A Simulink.Breakpoint object stores breakpoint set data for a
lookup table. You can use that data in one or more Prelookup blocks. With the object, you can specify a data type and code
generation settings for the breakpoint set and share the set between multiple lookup
tables. Use Simulink.Breakpoint objects and Simulink.LookupTable objects to configure common axis (COM_AXIS) code
generation for calibration.
The code generated for a Simulink.Breakpoint object
specifies an array or a structure with two fields. If you configure the object to appear
as a structure, one field stores the specified breakpoint set data and one field stores
the number of elements in the breakpoint set data. You can configure the structure type
name, the field name, and other characteristics by using the properties of the
object.
To package lookup table and breakpoint set data into a single structure in the
generated code, such as for standard axis (STD_AXIS) code generation, use a Simulink.LookupTable object to store all of the data. See
Package Shared Breakpoint and Table Data for Lookup Tables.
Creation
Description
BreakpointSet = Simulink.Breakpoint returns a Simulink.Breakpoint object named
BpSet with default property values.
To create a Simulink.Breakpoint object by using the Model Explorer, click the
Add Simulink LookupTable button
and select Simulink
Breakpoint. The default name for the object is
Object.
Properties
Examples
Limitations
Generating code according to the FIX_AXIS style is not supported.
When blocks in a subsystem use
Simulink.LookupTableorSimulink.Breakpointobjects, setting data type override (see Control Fixed-Point Instrumentation and Data Type Override) only on the subsystem is not supported. Instead, set data type override on the entire model.