viSetAttribute(3)
HP-UX
NAME
viSetAttribute − Sets the state of an attribute
SYNOPSIS
viSetAttribute(ViSession/ViEvent/ViFindList vi, ViAttr
attribute, ViAttrState attrState);
Description
This function sets the state of an attribute for the specified session.
Parameters
vi An input parameter. Unique logical identifier to a session, event, or find list.
attribute An input parameter. Resource attribute for which the state is modified.
attrState An input parameter. The state of the attribute to be set for the specified resource. The interpretation of the individual attribute value is defined by the resource.
Return Values
This is the functional return status. It returns either a completion code or an error code as follows.
VI_SUCCESS All attribute values set successfully.
VI_WARN_NSUP_ATTR_STATE Although the specified attribute state is valid, it is not supported by this resource implementation.
VI_ERROR_INV_SESSION VI_ERROR_INV_OBJECT The given session or object reference is invalid (both are the same value).
VI_ERROR_NSUP_ATTR The specified attribute is not defined by the referenced resource.
VI_ERROR_NSUP_ATTR_STATE The specified state of the attribute is not valid, or is not supported as defined by the resource.
VI_ERROR_ATTR_READONLY The specified attribute is read-only.
See Also
viGetAttribute. Also refer to Appendix B, "VTL Attributes," for a list of attributes and attribute values. Chapter 4, "Programming with VTL," provides detailed descriptions of the VTL attributes.
AUTHOR
viSetAttribute was developed by HP
Hewlett-Packard Comapny — September 29, 1999