![background image](http://html1.mh-extra.com/html/national-instruments/foundation-ni-fbus/foundation-ni-fbus_hardware-and-software-user-manual_709117107.webp)
Chapter 6
NI-FBUS Function Reference
©
National Instruments Corporation
6-45
NI-FBUS Hardware and Software User Manual
nifError_t
nifReadObject(
nifDesc_t ud,
NIFB_BLOCK_INDEX(char *blocktag, uint32 idx),
void *buffer,
uint8 *length)
nifError_t
nifReadObject(
nifDesc_t ud,
NIFB_BLOCK_INDEX_SUBINDEX(char *blocktag, uint32
idx,
uint32 subidx),
void *buffer,
uint8 *length)
nifError_t
nifReadObject(
nifDesc_t ud,
NIFB_NAME_SUBINDEX(char *name, uint32 subidx),
void *buffer,
uint8 *length)
nifError_t
nifReadObject(
nifDesc_t ud,
NIFB_BLOCK_NAME_SUBINDEX(char *blocktag, char
*name, uint32 subidx),
void *buffer,
uint8 *length)
Input
ud
The descriptor of the session, link, physical device, VFD or block
if reading by name. If reading by index,
ud
must be a VFD
or block.
name
Name of the parameter your application reads, in
BLOCKTAG.PARAM
format. To specify a structure element by
name, specify the name in
BLOCKTAG.STRUCT.ELEMENT
format.
Refer to Table 6-5 for an explanation of how to use macros to
specify the parameter.
length
The size of the buffer to hold the result, in bytes.
Output
buffer
The value that the NI-FBUS Communications Manager reads.
length
The actual size of the resulting data, in bytes.
Context
Session, block, VFD, physical device, link.