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

Table of Contents

Advertisement

Description
nifWriteObject
If
is the descriptor of a session or link, then
ud
BLOCKTAG.PARAM_NAME
If
is a session descriptor, then all links are searched for the given
ud
BLOCKTAG.PARAM_NAME
BLOCKTAG.PARAM_NAME
If
is a physical device descriptor, a parameter is written by
ud
If
is the descriptor of a general Virtual Field Device, then name must be in the format
ud
BLOCKTAG.PARAM_NAME
If
is the descriptor of a function block,
ud
If
is the descriptor of a function block, and you use the
ud
NIFB_INDEX_SUBINDEX
parameter within the block. Relative indices start at one for the first parameter.
In all descriptor cases, you can expand
to represent a named element of a named structure.
Refer to Table 6-5 for an explanation of how to use macros to specify the parameter.
Return Values
E_OK
E_INVALID_DESCRIPTOR
E_SYMBOL_FILE_NOT_FOUND
E_ORDINAL_NUM_OUT_OF_RANGE
E_OBJECT_ACCESS_UNSUPPORTED
E_MULTIPLE
E_SM_NOT_OPERATIONAL
E_COMM_ERROR
E_PARAMETER_CHECK
E_EXCEED_LIMIT
© National Instruments Corporation
writes the values of a function block parameter to a device.
.
. The function fails if more than one identical
match is found.
.
macro, the index specified is the relative index of the
The call was successful.
The device descriptor does not correspond to a VFD.
The NI-FBUS Communications Manager could not find the
symbol file.
The parameter is out of the device range.
The device does not support write access to this object.
The NI-FBUS Communications Manager found more than
one identical tag. The function failed.
The device is present, but cannot respond because it is at a default
address.
The NI-FBUS Communications Manager failed to communicate
with the device.
The device reported a violation of parameter-specific checks.
The device reported that the value exceeds the limit.
6-53
Chapter 6
must be in the format
name
must be in the format
name
NIFB_INDEX
itself to
PARAM_NAME
NI-FBUS Hardware and Software User Manual
NI-FBUS Function Reference
BLOCKTAG.PARAM_NAME
PARAM_NAME
or
format
STRUCT.ELEMENT
.
.

Advertisement

Table of Contents
loading

Table of Contents