Chapter 6
NI-FBUS Function Reference
NI-FBUS Hardware and Software User Manual
6-36
ni.com
nifError_t
nifGetObjectSize(
nifDesc_t ud,
NIFB_BLOCK_INDEX_SUBINDEX(char *blocktag, uint32
idx, uint32 subidx),
int16 *size_in_bytes)
nifError_t
nifGetObjectSize(
nifDesc_t ud,
NIFB_NAME_SUBINDEX(char *name, uint32 subidx),
int16 *size_in_bytes)
nifError_t
ni1fGetObjectSize(
nifDesc_t ud,
NIFB_BLOCK_NAME_SUBINDEX(char *blocktag, char
*name, uint32 subidx),
int16 *size_in_bytes)
Input
ud
The descriptor of a block.
name
Character string name of the object you need the size of, in
BLOCKTAG.PARAM
form. 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 character string name.
Output
size_in_bytes
The size of the object.
Context
Session, block, VFD, physical device, link.
Description
This function returns the size of the specified Object Value. You have to pass a buffer of the
returned size to
nifReadObject
to hold the value of the object.
Refer to Table 6-5 for an explanation of how to use macros to specify the character
string name.
Return Values
E_OK
The call was successful.
E_INVALID_DESCRIPTOR
The specified descriptor is invalid.
E_SYMBOL_FILE_NOT_FOUND
The NI-FBUS Communications Manager could not find the
symbol file.