getAllParameters
Return all associated
coder.descriptor.LookupTableDataInterface
and
coder.descriptor.BreakpointDataInterface
objects
Syntax
dataInterface = getAllParameters(parameterObj)
Description
returns all associated dataInterface
= getAllParameters(parameterObj
)coder.descriptor.LookupTableDataInterface
and coder.descriptor.BreakpointDataInterface
objects.
Input Arguments
The coder.descriptor.LookupTableDataInterface
object that
represents a Lookup Table block in the model.
Data Types: string
Output Arguments
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
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'. ### Total of 2 models to build. ### Starting serial code generation build. ### Successfully updated the model reference code generation target for: ASAP2DemoModelRef ### Starting build procedure for: ASAP2Demo codeInterfacePackaging: Nonreusable function codeInterfacePackaging: NonReusable ### 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 9.4269s Top model targets: Model Build Reason Status Build Duration ============================================================================================================ ASAP2Demo Information cache folder or artifacts were missing. Code generated and compiled. 0h 0m 20.179s 2 of 2 models built (0 models already up to date) Build duration: 0h 0m 31.212s
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: [1×1 coder.descriptor.types.Type] SID: 'ASAP2Demo:12' GraphicalName: 'tabledata' VariantInfo: [1×0 coder.descriptor.VariantInfo] Implementation: [1×1 coder.descriptor.DataImplementation] Timing: [1×0 coder.descriptor.TimingInterface] Unit: 'rpm' Range: [1×1 coder.descriptor.Range] SupportTunableSize: 0 BreakpointSpecification: 'Explicit values' Output: [1×1 coder.descriptor.DataInterface] Breakpoints: [1×2 coder.descriptor.BreakpointDataInterface Sequence]
Retrieve all the associated coder.descriptor.LookupTableDataInterface
and coder.descriptor.BreakpointDataInterface
objects.
dataInterface = getAllParameters(parameterObj)
dataInterface = 1×3 heterogeneous DataInterface (LookupTableDataInterface, BreakpointDataInterface) array with properties: Type SID GraphicalName VariantInfo Implementation Timing Unit Range
Version History
Introduced in R2020a
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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)