
Chapter 6
NI-FBUS Function Reference
©
National Instruments Corporation
6-39
NI-FBUS Hardware and Software User Manual
nifError_t
nifGetObjectType(
nifDesc_t ud,
NIFB_BLOCK_INDEX_SUBINDEX(char *blocktag, uint32
idx, uint32 subidx),
nifObjTypeList_t *typeData)
nifError_t
nifGetObjectType(
nifDesc_t ud,
NIFB_NAME_SUBINDEX(char *name, uint32 subidx),
nifObjTypeList_t *typeData)
nifError_t
nifGetObjectType(
nifDesc_t ud,
NIFB_BLOCK_NAME_SUBINDEX(char *blocktag, char
*name, uint32 subidx),
nifObjTypeList_t *typeData)
Input
ud
The descriptor of the session, link, physical device, VFD, or block
if you are accessing by name. If you are accessing by index,
ud
must be a VFD or block.
objName
The name of the parameter you want to read the OD type of, in
BLOCKTAG.PARAM
form. Refer to Table 6-5 for an explanation of
how to use macros to specify the parameter. To specify a named
structure element, supply
name
in
BLOCKTAG.STRUCT.ELEMENT
format. To specify a type index returned by a previous call to
nifGetObjectType
, use the
NIFB_TYPE_INDEX
macro.
Output
typeData
Object Type value read from the object dictionary in the device.
The
nifObjTypeList_t
data structure is a record consisting of
an object type code, the number of elements, the
blocktag
to
which this object belongs (if applicable), and a pointer to a list of
elements of type
nifObjElem_t
. The
nifObjElem_t
type is a
structure which consists of two elements: the OD
typeIndex
of
the element and the OD length of the element.
Context
Session, block, VFD, DDOD, physical device, link.