Chapter 6
NI-FBUS Function Reference
NI-FBUS Hardware and Software User Manual
6-6
ni.com
uint32 ddName;
uint32 ddItem;
uint16 ddRev;
uint16 profile;
uint16 profileRev;
uint32 executionTime;
uint32 periodExecution;
uint16 numParams;
uint16 nextFb;
uint16 startViewIndex;
uint8 numView3;
uint8 numView4;
uint16 ordNum;
uint8 blockType;
} nifBlockInfo_t;
The
blockType
field in
nifBlockInfo_t
can be
FUNCTION_BLOCK
,
TRANSDUCER_BLOCK
, or
RESOURCE_BLOCK
.
The
whichTypes
parameter must be a bit combination of
FUNCTION_BLOCK
,
TRANSDUCER_BLOCK
, and
RESOURCE_BLOCK
.
Return Values
E_OK
The call was successful.
E_INVALID_DESCRIPTOR
The descriptor was invalid or of the wrong type.
E_COMM_ERROR
The NI-FBUS Communications Manager failed to communicate
with the device.
E_BUF_TOO_SMALL
The buffer does not contain enough entries to hold all the
information for the blocks. If you receive this error, buffer entries
that you allocated do not contain valid block information when the
call returns.
E_OBSOLETE_DESC
The input descriptor is no longer valid. It was closed before
nifGetBlockList
completed.
E_BAD_ARGUMENT
The
whichtypes
value is something other than
FUNCTION_BLOCK
,
TRANSDUCER_BLOCK
,
or
RESOURCE_BLOCK
.
E_RESOURCES
A system resource problem occurred. The resource problem is
usually a memory shortage.
E_BAD_DEVICE_DATA
The device returned some inconsistent information.
E_SERVER_CONNECTION_LOST
The session established with the NI-FBUS Communications
Manager for this descriptor has been closed or lost.