National Instruments FOUNDATION NI-FBUS Hardware And Software User Manual page 103

Table of Contents

Advertisement

Domain
Program Invocation
Event
Data Type
Data Type Structure Description
Simple Variable
Array
Record
Variable List
For object codes
list of elements in
element. For example, the following fragment of pseudocode gets the type information for a
structured object and does something with the type information for each element:
nifObjTypeList_t typeInfo;
nifDesc_t aiBlock;
int loop;
...
nifGetObjectType(aiBlock, "OUT", &typeInfo);
for (loop=0; loop < typeInfo.numElems; loop++)
{
doSomethingWithElement(typeInfo.allElems[loop]);
}
For variable list objects (type
element in the list of elements with the
the first
nifGetObjectType
case is the relative index of the element within the block, whose name is returned by
. These subsequent calls to
blockTag
macro to specify the
© National Instruments Corporation
Table 6-3. Object Codes for the nifObjTypeList_t Data Structure
Object
ODT_STRUCTTYPE
contains the
allElements
ODT_VARLIST
call. The
returned by the first call.
typeIndex
Object Code in
ODT_DOMAIN
ODT_PI
ODT_EVENT
ODT_SIMPLETYPE
ODT_STRUCTTYPE
ODT_SIMPLEVAR
ODT_ARRAY
ODT_RECORD
ODT_VARLIST
,
,
ODT_SIMPLEVAR
ODT_ARRAY
typeIndex
), you must call
of the element returned in the list with
typeIndex
of the element returned in the list in this
typeIndex
nifGetObjectType
6-41
NI-FBUS Hardware and Software User Manual
Chapter 6
NI-FBUS Function Reference
fbtypes.h
, and
ODT_RECORD
and the size of each component
nifGetObjectType
should use the
NIFB_INDEX
, the
for each

Advertisement

Table of Contents
loading

Table of Contents