getAllParameters
Return all associated
coder.descriptor.LookupTableDataInterface
and
coder.descriptor.BreakpointDataInterface
objects
Since R2020a
Syntax
dataInterface = getAllParameters(parameterObj)
Description
returns all associated dataInterface
= getAllParameters(parameterObj
)coder.descriptor.LookupTableDataInterface
(Embedded Coder) and coder.descriptor.BreakpointDataInterface
(Embedded Coder) objects.
Input Arguments
parameterObj
— coder.descriptor.LookupTableDataInterface
object
coder.descriptor.LookupTableDataInterface
object
The coder.descriptor.LookupTableDataInterface
object that
represents a Lookup Table block in the model.
Data Types: string
Output Arguments
dataInterface
— array of coder.descriptor.LookupTableDataInterface
and/or coder.descriptor.BreakpointDataInterface
objects
coder.descriptor.LookupTableDataInterface
object | array of coder.descriptor.LookupTableDataInterface
and/or
coder.descriptor.BreakpointDataInterface
objects
The coder.descriptor.LookupTableDataInterface
object represents a
Lookup Table block in the model. The
coder.descriptor.BreakpointDataInterface
object represents the
breakpoint set data associated with the Lookup Table block.
Examples
Get All Lookup Table Data Interface and Breakpoint Data Interface Objects
This example shows how to retrieve all the lookup table data interface and breakpoint data interface objects from a model.
Build a model
Open and build a model that contains lookup table blocks.
open_system('ASAP2Demo'); slbuild('ASAP2Demo');
### Searching for referenced models in model 'ASAP2Demo'. ### Found 1 model reference targets to update. ### Starting serial model reference code generation build. ### Successfully updated the model reference code generation target for: ASAP2DemoModelRef ### Starting build procedure for: ASAP2Demo ### Successful completion of build procedure for: ASAP2Demo Build Summary Model reference code generation targets: Model Build Reason Status Build Duration ============================================================================================================ ASAP2DemoModelRef Target (ASAP2DemoModelRef.c) did not exist. Code generated and compiled. 0h 0m 10.744s Top model targets: Model Build Reason Status Build Duration ============================================================================================================ ASAP2Demo Information cache folder or artifacts were missing. Code generated and compiled. 0h 0m 19.165s 2 of 2 models built (0 models already up to date) Build duration: 0h 0m 32.137s
Create a code descriptor object for the model.
codeDescObj = coder.getCodeDescriptor('ASAP2Demo');
Return properties of the Lookup Table parameter.
params = getDataInterfaces(codeDescObj,'Parameters');
The params
variable is an array of coder.descriptor.DataInterface
and coder.descriptor.LookupTableDataInterface
objects.
Obtain the details of the model Lookup Table block by accessing the sixth location in the array.
parameterObj = params(6)
parameterObj = LookupTableDataInterface with properties: Type: [1x1 coder.descriptor.types.Type] SID: 'ASAP2Demo:12' GraphicalName: 'tabledata' VariantInfo: [1x0 coder.descriptor.VariantInfo] Implementation: [1x1 coder.descriptor.DataImplementation] Timing: [1x0 coder.descriptor.TimingInterface] Unit: 'rpm' Range: [1x1 coder.descriptor.Range] SupportTunableSize: 0 BreakpointSpecification: 'Explicit values' Output: [1x1 coder.descriptor.DataInterface] Breakpoints: [1x2 coder.descriptor.BreakpointDataInterface Sequence]
Retrieve all the associated coder.descriptor.LookupTableDataInterface
and coder.descriptor.BreakpointDataInterface
objects.
dataInterface = getAllParameters(parameterObj)
dataInterface = 1x3 heterogeneous DataInterface (LookupTableDataInterface, BreakpointDataInterface) array with properties: Type SID GraphicalName VariantInfo Implementation Timing Unit Range
Version History
Introduced in R2020a
See Also
coder.descriptor.LookupTableDataInterface
(Embedded Coder) | coder.descriptor.BreakpointDataInterface
(Embedded Coder) | coder.descriptor.DataInterface
(Embedded Coder)
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)