viClear(3)
HP-UX
NAME
viClear − Performs an IEEE 488.1 clear on a device.
SYNOPSIS
viClear(ViSession vi);
Description
This function performs an IEEE 488.1-style clear of the device. VXI uses the Word Serial Clear command, and GPIB uses the Selective Device Clear command.
Parameters
vi An input parameter. Unique logical identifier to a session.
Return Values
This is the functional return status. It returns either a completion code or an error code as follows.
VI_SUCCESS Operation completed successfully.
VI_ERROR_INV_SESSION VI_ERROR_INV_OBJECT The given session or object reference is invalid (both are the same value).
VI_ERROR_NSUP_OPER The given vi does not support this function.
VI_ERROR_TMO Timeout expired before function completed.
VI_ERROR_RAW_WR_PROT_VIOL Violation of raw write protocol occurred during transfer.
VI_ERROR_RAW_RD_PROT_VIOL Violation of raw read protocol occurred during transfer.
VI_ERROR_BERR Bus error occurred during transfer.
VI_ERROR_NCIC The interface associated with the given vi is not currently the controller in charge.
VI_ERROR_NLISTENERS No Listeners condition is detected (both NRFD and NDAC are deasserted).
AUTHOR
viClear was developed by HP
Hewlett-Packard Comapny — September 29, 1999