isLookupTableDataInterface
Determine whether object is a
coder.descriptor.LookupTableDataInterface
object
Syntax
lookupTableDataInterface = isLookupTableDataInterface(parameterObj)
Description
returns a logical value indicating whether the object is a lookupTableDataInterface
= isLookupTableDataInterface(parameterObj
)coder.descriptor.LookupTableDataInterface
object.
Input Arguments
coder.descriptor.LookupTableDataInterface
object that represents
a Lookup Table block in the model.
Data Types: string
Output Arguments
Logical value indicating whether the object is a
coder.descriptor.LookupTableDataInterface
.
Data Types: logical
Examples
This example shows how to determine if an object is coder.descriptor.LookupTableDataInterface object.
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 8.3657s Top model targets: Model Build Reason Status Build Duration ============================================================================================================ ASAP2Demo Information cache folder or artifacts were missing. Code generated and compiled. 0h 0m 18.218s 2 of 2 models built (0 models already up to date) Build duration: 0h 0m 27.924s
Return properties of Lookup Table parameter
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. The model ASAP2Demo
contains three Lookup Table blocks. Only two of them have tunable breakpoint set data. The code generator creates only two corresponding coder.descriptor.LookupTableDataInterface
objects.
Obtain the details of the Standard_Axis block by accessing the sixth location in the array.
parameterObj = params(6);
Determine if the object stored in parameterObj
variable is a coder.descriptor.LookupTableDataInterface
object.
lookupTableDataInterface = isLookupTableDataInterface(parameterObj)
lookupTableDataInterface = logical
1
The code generator returns a logical value of 1
if parameterObj
is a coder.descriptor.LookupTableDataInterface
object. Otherwise, the code generator returns a logical value of 0
.
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)