VISA Error Codes

The VISA functions can return the following error codes.

Code Name Description
–1073807360 VI_ERROR_SYSTEM_ERROR Unknown system error (miscellaneous error).
–1073807346 VI_ERROR_INV_OBJECT The given session or object reference is invalid.
–1073807345 VI_ERROR_RSRC_LOCKED Specified type of lock cannot be obtained, or specified operation cannot be performed because the resource is locked.
–1073807344 VI_ERROR_INV_EXPR Invalid expression specified for search.
–1073807343 VI_ERROR_RSRC_NFOUND Insufficient location information or the device or resource is not present in the system.
–1073807342 VI_ERROR_INV_RSRC_NAME Invalid resource reference specified. Parsing error.
–1073807341 VI_ERROR_INV_ACC_MODE Invalid access mode.
–1073807339 VI_ERROR_TMO Timeout expired before operation completed.
–1073807338 VI_ERROR_CLOSING_FAILED Unable to deallocate the previously allocated data structures corresponding to this session or object reference.
–1073807333 VI_ERROR_INV_DEGREE Specified degree is invalid.
–1073807332 VI_ERROR_INV_JOB_ID Specified job identifier is invalid.
–1073807331 VI_ERROR_NSUP_ATTR The specified attribute is not defined or supported by the referenced resource.
–1073807330 VI_ERROR_NSUP_ATTR_STATE The specified state of the attribute is not valid, or is not supported as defined by the resource.
–1073807329 VI_ERROR_ATTR_READONLY The specified attribute is read-only.
–1073807328 VI_ERROR_INV_LOCK_TYPE The specified type of lock is not supported by this resource.
–1073807327 VI_ERROR_INV_ACCESS_KEY The access key to the specified resource is invalid.
–1073807322 VI_ERROR_INV_EVENT Specified event type is not supported by the resource.
–1073807321 VI_ERROR_INV_MECH Invalid mechanism specified.
–1073807320 VI_ERROR_HNDLR_NINSTALLED A handler was not installed.
–1073807319 VI_ERROR_INV_HNDLR_REF The given handler reference is invalid.
–1073807318 VI_ERROR_INV_CONTEXT Specified event context is invalid.
–1073807315 VI_ERROR_QUEQUE_OVERFLOW The event queue for the specified type has overflowed. This is usually due to previous events not having been closed.
–1073807313 VI_ERROR_NENABLED You must be enabled for events of the specified type in order to receive them.
–1073807312 VI_ERROR_ABORT User abort occurred during transfer.
–1073807308 VI_ERROR_RAW_WR_PROT_VIOL Violation of raw write protocol occurred during transfer.
–1073807307 VI_ERROR_RAW_RD_PROT_VIOL Violation of raw read protocol occurred during transfer.
–1073807306 VI_ERROR_OUTP_PROT_VIOL Device reported an output protocol error during transfer.
–1073807305 VI_ERROR_INP_PROT_VIOL Device reported an input protocol error during transfer.
–1073807304 VI_ERROR_BERR Bus error occurred during transfer.
–1073807303 VI_ERROR_IN_PROGRESS Unable to queue the asynchronous operation because there is already an operation in progress.
–1073807302 VI_ERROR_INV_SETUP Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).
–1073807301 VI_ERROR_QUEUE_ERROR Unable to queue the asynchronous operation.
–1073807300 VI_ERROR_ALLOC Insufficient system resources to perform necessary memory allocation.
–1073807299 VI_ERROR_INV_MASK Invalid buffer mask specified.
–1073807298 VI_ERROR_IO Could not perform operation because of I/O error.
–1073807297 VI_ERROR_INV_FMT A format specifier in the format string is invalid.
–1073807295 VI_ERROR_NSUP_FMT A format specifier in the format string is not supported.
–1073807294 VI_ERROR_LINE_IN_USE The specified trigger line is currently in use.
–1073807290 VI_ERROR_NSUP_MODE The specified mode is not supported by this VISA implementation.
–1073807286 VI_ERROR_SRQ_NOCCURRED Service request has not been received for the session.
–1073807282 VI_ERROR_INV_SPACE Invalid address space specified.
–1073807279 VI_ERROR_INV_OFFSET Invalid offset specified.
–1073807278 VI_ERROR_INV_WIDTH Invalid access width specified.
–1073807276 VI_ERROR_NSUP_OFFSET Specified offset is not accessible from this hardware.
–1073807275 VI_ERROR_NSUP_VAR_WIDTH Cannot support source and destination widths that are different.
–1073807273 VI_ERROR_WINDOW_NMAPPED The specified session is not currently mapped.
–1073807271 VI_ERROR_RESP_PENDING A previous response is still pending, causing a multiple query error.
–1073807265 VI_ERROR_NLISTENERS No listeners condition is detected (both NRFD and NDAC are deasserted).
–1073807264 VI_ERROR_NCIC The interface associated with this session is not currently the controller in charge.
–1073807263 VI_ERROR_NSYS_CNTLR The interface associated with this session is not the system controller.
–1073807257 VI_ERROR_NSUP_OPER The given session or object reference does not support this operation.
–1073807256 VI_ERROR_INTR_PENDING An interrupt is still pending from a previous call.
–1073807254 VI_ERROR_ASRL_PARITY A parity error occurred during transfer.
–1073807253 VI_ERROR_ASRL_FRAMING A framing error occurred during transfer.
–1073807252 VI_ERROR_ASRL_OVERRUN An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.
–1073807250 VI_ERROR_TRIG_NMAPPED The path from trigSrc to trigDest is not currently mapped.
–1073807248 VI_ERROR_NSUP_ALIGN_OFFSET The specified offset is not properly aligned for the access width of the operation.
–1073807247 VI_ERROR_USER_BUF A specified user buffer is not valid or cannot be accessed for the required size.
–1073807246 VI_ERROR_RSRC_BUSY The resource is valid, but VISA cannot currently access it.
–1073807242 VI_ERROR_NSUP_WIDTH Specified width is not supported by this hardware.
–1073807240 VI_ERROR_INV_PARAMETER The value of some parameter (which parameter is not known) is invalid.
–1073807239 VI_ERROR_INV_PROT The protocol specified is invalid.
–1073807237 VI_ERROR_INV_SIZE Invalid size of window specified.
–1073807232 VI_ERROR_WINDOW_MAPPED The specified session currently contains a mapped window.
–1073807231 VI_ERROR_NIMPL_OPER The given operation is not implemented.
–1073807229 VI_ERROR_INV_LENGTH Invalid length specified.
–1073807215 VI_ERROR_INV_MODE Invalid mode specified.
–1073807204 VI_ERROR_SESN_NLOCKED The current session did not have a lock on the resource.
–1073807201 VI_ERROR_NSUP_INTR The interface cannot generate an interrupt on the requested level or with the requested statusID value.
–1073807202 VI_ERROR_LIBRARY_NFOUND A code library required by VISA could not be located or loaded.
–1073807200 VI_ERROR_INV_LINE The value specified by the line parameter is invalid.
–1073807199 VI_ERROR_FILE_ACCESS An error occurred while trying to open the specified file. Possible reasons include an invalid path or lack of access rights.
–1073807198 VI_ERROR_FILE_IO An error occurred while performing I/O on the specified file.
–1073807197 VI_ERROR_NSUP_LINE One of the specified lines, trigSrc or trigDest, is not supported by this VISA implementation, or the combination of lines is not a valid mapping.
–1073807196 VI_ERROR_NSUP_MECH The specified mechanism is not supported for the given event type.
–1073807195 VI_ERROR_INTF_NUM_NCONFIG The interface type is valid, but the specified interface number is not configured.
–1073807194 VI_ERROR_CONN_LOST The connection for the given session has been lost.
0 VI_SUCCESS Operation completed successfully.
1073676290 VI_SUCCESS_EVENT_EN Specified event is already enabled for at least one of the specified mechanisms.
1073676291 VI_SUCCESS_EVENT_DIS Specified event is already disabled for at least one of the specified mechanisms.
1073676292 VI_SUCCESS_QUEUE_EMPTY Operation completed successfully, but queue was already empty.
1073676293 VI_SUCCESS_TERM_CHAR The specified termination character was read.
1073676294 VI_SUCCESS_MAX_CNT The number of bytes transferred is equal to the input count.
1073676407 VI_WARN_CONFIG_NLOADED The specified configuration either does not exist or could not be loaded. VISA-specified defaults will be used.
1073676413 VI_SUCCESS_DEV_NPRESENT Session opened successfully, but the device at the specified address is not responding.
1073676414 VI_SUCCESS_TRIG_MAPPED The path from trigSrc to trigDest is already mapped.
1073676418 VI_WARN_NULL_OBJECT The specified object reference is uninitialized.
1073676416 VI_SUCCESS_QUEUE_NEMPTY Wait terminated successfully on receipt of an event notification. There is at least one more event occurrence of the type specified by inEventType available for this session.
1073676420 VI_WARN_NSUP_ATTR_STATE Although the specified state of the attribute is valid, it is not supported by this resource implementation.
1073676421 VI_WARN_UNKNOWN_STATUS The status code passed to the operation could not be interpreted.
1073676424 VI_WARN_NSUP_BUF The specified I/O buffer is not supported.
1073676440 VI_SUCCESS_NCHAIN Event handled successfully. Do not invoke any other handlers on this session for this event.
1073676441 VI_SUCCESS_NESTED_SHARED Operation completed successfully, and this session has nested shared locks.
1073676442 VI_SUCCESS_NESTED_EXCLUSIVE Operation completed successfully, and this session has nested exclusive locks.
1073676443 VI_SUCCESS_SYNC Operation completed successfully, but the operation was actually synchronous rather than asynchronous.