isLookupTableDataInterface
Determine whether object is a
coder.descriptor.LookupTableDataInterface
object
Since R2020a
Syntax
lookupTableDataInterface = isLookupTableDataInterface(parameterObj)
Description
returns a logical value indicating whether the object is a lookupTableDataInterface
= isLookupTableDataInterface(parameterObj
)coder.descriptor.LookupTableDataInterface
(Embedded Coder) object.
Input Arguments
parameterObj
— coder.descriptor.LookupTableDataInterface
object
coder.descriptor.LookupTableDataInterface
object
coder.descriptor.LookupTableDataInterface
object that represents
a Lookup Table block in the model.
Data Types: string
Output Arguments
lookupTableDataInterface
— logical value
1
| 0
Logical value indicating whether the object is a
coder.descriptor.LookupTableDataInterface
.
Data Types: logical
Examples
Determine Lookup Table Data Interface Object
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'); rtwbuild('ASAP2Demo');
### Searching for referenced models in model 'ASAP2Demo'. ### Found 1 model references 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 Code generation targets built: Model Action Rebuild Reason ====================================================================================== ASAP2DemoModelRef Code generated and compiled. ASAP2DemoModelRef.c does not exist. Top model targets built: Model Action Rebuild Reason =========================================================================================== ASAP2Demo Code generated and compiled. Code generation information file does not exist. 2 of 2 models built (0 models already up to date) Build duration: 0h 0m 24.002s
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
See Also
coder.descriptor.LookupTableDataInterface
(Embedded Coder) | isBreakpointDataInterface
(Embedded Coder)
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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)