Completion Codes

NI-VISA

Completion Codes

This topic lists and describes the completion codes.

Completion Codes Values Meaning
VI_SUCCESS 0 Operation completed successfully.
VI_SUCCESS_EVENT_EN 3FFF0002h Specified event is already enabled for at least one of the specified mechanisms.
VI_SUCCESS_EVENT_DIS 3FFF0003h Specified event is already disabled for at least one of the specified mechanisms.
VI_SUCCESS_QUEUE_EMPTY 3FFF0004h Operation completed successfully, but queue was already empty.
VI_SUCCESS_TERM_CHAR 3FFF0005h The specified termination character was read.
VI_SUCCESS_MAX_CNT 3FFF0006h The number of bytes read is equal to the input count.
VI_WARN_QUEUE_OVERFLOW 3FFF000Ch The event returned is valid. One or more events that occurred have not been raised because there was no room available on the queue at the time of their occurrence. This could happen because VI_ATTR_MAX_QUEUE_LENGTH is not set to a large enough value for your application and/or events are coming in faster than you are servicing them.
VI_WARN_CONFIG_NLOADED 3FFF0077h The specified configuration either does not exist or could not be loaded; using VISA-specified defaults.
VI_SUCCESS_DEV_NPRESENT 3FFF007Dh Session opened successfully, but the device at the specified address is not responding.
VI_SUCCESS_TRIG_MAPPED 3FFF007Eh The path from trigSrc to trigDest is already mapped.
VI_SUCCESS_QUEUE_NEMPTY 3FFF0080h Wait terminated successfully on receipt of an event notification. There is still at least one more event occurrence of the requested type(s) available for this session.
VI_WARN_NULL_OBJECT 3FFF0082h The specified object reference is uninitialized.
VI_WARN_NSUP_ATTR_STATE 3FFF0084h Although the specified state of the attribute is valid, it is not supported by this resource implementation.
VI_WARN_UNKNOWN_STATUS 3FFF0085h The status code passed to the operation could not be interpreted.
VI_WARN_NSUP_BUF 3FFF0088h The specified buffer is not supported.
VI_SUCCESS_NCHAIN 3FFF0098h Event handled successfully. Do not invoke any other handlers on this session for this event.
VI_SUCCESS_NESTED_SHARED 3FFF0099h Operation completed successfully, and this session has nested shared locks.
VI_SUCCESS_NESTED_EXCLUSIVE 3FFF009Ah Operation completed successfully, and this session has nested exclusive locks.
VI_SUCCESS_SYNC 3FFF009Bh Asynchronous operation request was actually performed synchronously.
VI_WARN_EXT_FUNC_NIMPL 3FFF00A9h The operation succeeded, but a lower level driver did not implement the extended functionality.