VISA Error Codes

Agilent VISA.NET

VISA Error Codes

This topic lists VISA error codes in numerical order and alphabetically by description.

Error Codes Listed in Numerical Order

Hex Value

Decimal Value

VISA Status Code

Success Codes

3FFF0002

1073676290

VI_SUCCESS_EVENT_EN

3FFF0003

1073676291

VI_SUCCESS_EVENT_DIS

3FFF0004

1073676292

VI_SUCCESS_QUEUE_EMPTY

3FFF0005

1073676293

VI_SUCCESS_TERM_CHAR

3FFF0006

1073676294

VI_SUCCESS_MAX_CNT

3FFF007D

1073676413

VI_SUCCESS_DEV_NPRESENT

3FFF007E

1073676414

VI_SUCCESS_TRIG_MAPPED

3FFF0080

1073676416

VI_SUCCESS_QUEUE_NEMPTY

3FFF0098

1073676440

VI_SUCCESS_NCHAIN

3FFF0099

1073676441

VI_SUCCESS_NESTED_SHARED

3FFF009A

1073676442

VI_SUCCESS_NESTED_EXCLUSIVE

3FFF009B

1073676443

VI_SUCCESS_SYNC

Warning Codes

3FFF000C

1073676300

VI_WARN_QUEUE_OVERFLOW

3FFF0077

1073676407

VI_WARN_CONFIG_NLOADED

3FFF0082

1073676418

VI_WARN_NULL_OBJECT

3FFF0084

1073676420

VI_WARN_NSUP_ATTR_STATE

3FFF0085

1073676421

VI_WARN_UNKNOWN_STATUS

3FFF0088

1073676424

VI_WARN_NSUP_BUF

3FFF00A9

1073676457

VI_WARN_EXT_FUNC_NIMPL

Error Codes

BFFF0000

-1073807360

VI_ERROR_SYSTEM_ERROR

BFFF000E

-1073807346

VI_ERROR_INV_OBJECT

BFFF000F

-1073807345

VI_ERROR_RSRC_LOCKED

BFFF0010

-1073807344

VI_ERROR_INV_EXPR

BFFF0011

-1073807343

VI_ERROR_RSRC_NFOUND

BFFF0012

-1073807342

VI_ERROR_INV_RSRC_NAME

BFFF0013

-1073807341

VI_ERROR_INV_ACC_MODE

BFFF0015

-1073807339

VI_ERROR_TMO

BFFF0016

-1073807338

VI_ERROR_CLOSING_FAILED

BFFF001B

-1073807333

VI_ERROR_INV_DEGREE

BFFF001C

-1073807332

VI_ERROR_INV_JOB_ID

BFFF001D

-1073807331

VI_ERROR_NSUP_ATTR

BFFF001E

-1073807330

VI_ERROR_NSUP_ATTR_STATE

BFFF001F

-1073807329

VI_ERROR_ATTR_READONLY

BFFF0020

-1073807328

VI_ERROR_INV_LOCK_TYPE

BFFF0021

-1073807327

VI_ERROR_INV_ACCESS_KEY

BFFF0026

-1073807322

VI_ERROR_INV_EVENT

BFFF0027

-1073807321

VI_ERROR_INV_MECH

BFFF0028

-1073807320

VI_ERROR_HNDLR_NINSTALLED

BFFF0029

-1073807319

VI_ERROR_INV_HNDLR_REF

BFFF002A

-1073807318

VI_ERROR_INV_CONTEXT

BFFF002F

-1073807313

VI_ERROR_NENABLED

BFFF0030

-1073807312

VI_ERROR_ABORT

BFFF0034

-1073807308

VI_ERROR_RAW_WR_PROT_VIOL

BFFF0035

-1073807307

VI_ERROR_RAW_RD_PROT_VIOL

BFFF0036

-1073807306

VI_ERROR_OUTP_PROT_VIOL

BFFF0037

-1073807305

VI_ERROR_INP_PROT_VIOL

BFFF0038

-1073807304

VI_ERROR_BERR

BFFF0039

-1073807303

VI_ERROR_IN_PROGRESS

BFFF003A

-1073807302

VI_ERROR_INV_SETUP

BFFF003B

-1073807301

VI_ERROR_QUEUE_ERROR

BFFF003C

-1073807300

VI_ERROR_ALLOC

BFFF003D

-1073807299

VI_ERROR_INV_MASK

BFFF003E

-1073807298

VI_ERROR_IO

BFFF003F

-1073807297

VI_ERROR_INV_FMT

BFFF0041

-1073807295

VI_ERROR_NSUP_FMT

BFFF0042

-1073807294

VI_ERROR_LINE_IN_USE

BFFF0046

-1073807290

VI_ERROR_NSUP_MODE

BFFF004A

-1073807286

VI_ERROR_SRQ_NOCCURRED

BFFF004E

-1073807282

VI_ERROR_INV_SPACE

BFFF0051

-1073807279

VI_ERROR_INV_OFFSET

BFFF0052

-1073807278

VI_ERROR_INV_WIDTH

BFFF0054

-1073807276

VI_ERROR_NSUP_OFFSET

BFFF0055

-1073807275

VI_ERROR_NSUP_VAR_WIDTH

BFFF0057

-1073807273

VI_ERROR_WINDOW_NMAPPED

BFFF0059

-1073807271

VI_ERROR_RESP_PENDING

BFFF005F

-1073807265

VI_ERROR_NLISTENERS

BFFF0060

-1073807264

VI_ERROR_NCIC

BFFF0061

-1073807263

VI_ERROR_NSYS_CNTLR

BFFF0067

-1073807257

VI_ERROR_NSUP_OPER

BFFF0068

-1073807256

VI_ERROR_INTR_PENDING

BFFF006A

-1073807254

VI_ERROR_ASRL_PARITY

BFFF006B

-1073807253

VI_ERROR_ASRL_FRAMING

BFFF006C

-1073807252

VI_ERROR_ASRL_OVERRUN

BFFF006E

-1073807250

VI_ERROR_TRIG_NMAPPED

BFFF0070

-1073807248

VI_ERROR_NSUP_ALIGN_OFFSET

BFFF0071

-1073807247

VI_ERROR_USER_BUF

BFFF0072

-1073807246

VI_ERROR_RSRC_BUSY

BFFF0076

-1073807242

VI_ERROR_NSUP_WIDTH

BFFF0078

-1073807240

VI_ERROR_INV_PARAMETER

BFFF0079

-1073807239

VI_ERROR_INV_PROT

BFFF007B

-1073807237

VI_ERROR_INV_SIZE

BFFF0080

-1073807232

VI_ERROR_WINDOW_MAPPED

BFFF0081

-1073807231

VI_ERROR_NIMPL_OPER

BFFF0083

-1073807229

VI_ERROR_INV_LENGTH

BFFF0091

-1073807215

VI_ERROR_INV_MODE

BFFF009C

-1073807204

VI_ERROR_SESN_NLOCKED

BFFF009D

-1073807203

VI_ERROR_MEM_NSHARED

BFFF009E

-1073807202

VI_ERROR_LIBRARY_NFOUND

BFFF009F

-1073807201

VI_ERROR_NSUP_INTR

BFFF00A0

-1073807200

VI_ERROR_INV_LINE

BFFF00A1

-1073807199

VI_ERROR_FILE_ACCESS

BFFF00A2

-1073807198

VI_ERROR_FILE_IO

BFFF00A3

-1073807197

VI_ERROR_NSUP_LINE

BFFF00A4

-1073807196

VI_ERROR_NSUP_MECH

BFFF00A5

-1073807195

VI_ERROR_INTF_NUM_NCONFIG

BFFF00A6

-1073807194

VI_ERROR_CONN_LOST

BFFF00A7

-1073807193

VI_ERROR_MACHINE_NAVAIL

BFFF00A8

-1073807192

VI_ERROR_NPERMISSION

 

Alphabetical Description of Error Codes

 

VISA Status Codes

Description

Success Codes

VI_SUCCESS

Operation completed successfully.

VI_SUCCESS_DEV_NPRESENT

Session opened successfully, but the device at the specified address is not responding.

VI_SUCCESS_EVENT_DIS

The specified event is already disabled.

VI_SUCCESS_EVENT_EN

The specified event is already enabled for at least one of the specified mechanisms.

VI_SUCCESS_MAX_CNT

The number of bytes specified were read.

VI_SUCCESS_NCHAIN

Event handled successfully. Do not invoke any other handlers on this session for this event.

VI_SUCCESS_NESTED_EXCLUSIVE

The specified access mode was successfully acquired and this session has nested exclusive locks.

VI_SUCCESS_NESTED_SHARED

The specified access mode was successfully acquired and this session has nested shared locks.

VI_SUCCESS_QUEUE_EMPTY

The event queue was empty while trying to discard queued events.

VI_SUCCESS_QUEUE_NEMPTY

The event queue is not empty.

VI_SUCCESS_SYNC

The read or write operation performed synchronously.

VI_SUCCESS_TERM_CHAR

The specified termination character was read.

VI_SUCCESS_TRIG_MAPPED

The path from trigSrc to trigDest is already mapped.

Warning Codes

VI_WARN_CONFIG_NLOADED

The specified configuration either does not exist or could not be loaded using VISA-specified defaults.

VI_WARN_NSUP_ATTR_STATE

The attribute state is not supported by this resource.

VI_WARN_NSUP_BUF

The specified buffer is not supported.

VI_WARN_NULL_OBJECT

The specified object reference is uninitialized.

VI_WARN_QUEUE_OVERFLOW

The device sent more data than the user specified in VI_ATTR_USB_MAX_INTR_SIZE

VI_WARN_UNKNOWN_STATUS

The status code passed to the function was unable to be interpreted.

VI_WARN_EXT_FUNC_NIMPL

The operation succeeded, but a lower level driver did not implement the extended functionality

Error Codes

VI_ERROR_ABORT

Calls in the current process executing on the specified vi are aborted.

VI_ERROR_ALLOC

Insufficient system resources to open a session or to allocate the buffer(s) or memory block of the specified size.

VI_ERROR_ASRL_FRAMING

A framing error occurred during transfer.

VI_ERROR_ASRL_OVERRUN

An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.

VI_ERROR_ASRL_PARITY

A parity error occurred during transfer.

VI_ERROR_ATTR_READONLY

The specified attribute is read-only.

VI_ERROR_BERR

A bus error occurred during transfer.

VI_ERROR_CLOSING_FAILED

Unable to deallocate the previously allocated data structures
for this session.

VI_ERROR_CONN_LOST

A TCP connection is dropped as a result of keep-alives packets.

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.

VI_ERROR_FILE_IO

An error occurred while accessing the specified file.

VI_ERROR_HNDLR_NINSTALLED

A handler is not currently installed for the specified event. The session cannot be enabled for the VI_HNDLR mode of the callback mechanism.

VI_ERROR_INP_PROT_VIOL

Input protocol error occurred during transfer.

VI_ERROR_INTF_NUM_NCONFIG

The interface type is valid but the specified interface number is not configured.

VI_ERROR_INTR_PENDING

An interrupt is still pending from a previous call.

VI_ERROR_INV_ACC_MODE

Invalid access mode.

VI_ERROR_INV_ACCESS_KEY

The requestedKey value passed in is not a valid access key to the specified resource.

VI_ERROR_INV_CONTEXT

The event context specified is invalid.

VI_ERROR_INV_DEGREE

The specified degree is invalid.

VI_ERROR_INV_EVENT

The event type specified is invalid for the specified resource.

VI_ERROR_INV_EXPR

The expression specified is invalid.

VI_ERROR_INV_FMT

The format specifier is invalid for the current argument.

VI_ERROR_INV_HNDLR_REF

The specified handler reference and/or the user context value does not match the installed handler.

VI_ERROR_INV_JOB_ID

The specified job identifier is invalid.

VI_ERROR_INV_LENGTH

The length specified is invalid.

VI_ERROR_INV_LINE

The value specified by the line parameter is invalid.

VI_ERROR_INV_LOCK_TYPE

The specified type of lock is not supported by this resource.

VI_ERROR_INV_MASK

The system cannot set the buffer for the given mask or the specified mask does not specify a valid flush operation on the read/write resource.

VI_ERROR_INV_MECH

The mechanism specified for the event is invalid.

VI_ERROR_INV_MODE

The value specified by the mode parameter is invalid.

VI_ERROR_INV_OBJECT

The object reference is invalid.

VI_ERROR_INV_OFFSET

The offset specified is invalid.

VI_ERROR_INV_PARAMETER

The value of some parameter is invalid.

VI_ERROR_INV_PROT

The protocol specified is invalid.

VI_ERROR_INV_RSRC_NAME

The resources specified are invalid.

VI_ERROR_INV_SESSION

The session specified is invalid.

VI_ERROR_INV_SETUP

The setup specified is invalid, possibly due to attributes being set to an inconsistent state, or some implementation-specific configuration file is corrupt or does not exist.

VI_ERROR_INV_SIZE

The specified size is invalid.

VI_ERROR_INV_SPACE

The address space specified is invalid.

VI_ERROR_INV_WIDTH

Invalid source or destination width specified.

VI_ERROR_IO

Could not perform read/write function because of an I/O error, or an unknown I/O error occurred during transfer.

VI_ERROR_LIBRARY_NFOUND

A code library required by VISA could not be located or loaded.

VI_ERROR_LINE_IN_USE

The specified trigger line is in use.

VI_ERROR_MACHINE_NAVAIL

The specified machine is not available.

VI_ERROR_MEM_NSHARED

The device does not export any memory.

VI_ERROR_NCIC

The session is referring to something other than the controller in charge.

VI_ERROR_NENABLED

The session must be enabled for events of the specified type to receive them.

VI_ERROR_NIMPL_OPER

The given operation is not implemented.

VI_ERROR_NLISTENERS

No listeners are detected. (Both NRFD and NDAC are deasserted.)

VI_ERROR_NPERMISSION

You do not have permission to perform this operation.

VI_ERROR_NSUP_ALIGN_OFFSET

The specified offset is not properly aligned for the access width of the operation.

VI_ERROR_NSUP_ATTR

The attribute specified is not supported by the specified resource.

VI_ERROR_NSUP_ATTR_STATE

The state specified for the attribute is not supported.

VI_ERROR_NSUP_FMT

The format specifier is not supported for the current argument type.

VI_ERROR_NSUP_INTR

The interface cannot generate an interrupt on the requested level or with the requested statusID value.

VI_ERROR_NSUP_LINE

One of the specified lines (trigSrc or trigDest) is not supported by this VISA implementation.

VI_ERROR_NSUP_MECH

The specified mechanism is not supported for the given event type.

VI_ERROR_NSUP_MODE

The specified mode is not supported by this VISA implementation.

VI_ERROR_NSUP_OFFSET

The offset specified is not accessible.

VI_ERROR_NSUP_OPER

The operation specified is not supported in the given session.

VI_ERROR_NSUP_VAR_WIDTH

Cannot support source and destination widths that are different.

VI_ERROR_NSUP_WIDTH

The specified width is not supported by this hardware.

VI_ERROR_NSYS_CNTLR

The interface associated with this session is not the system controller.

VI_ERROR_OUTP_PROT_VIOL

Output protocol error occurred during transfer.

VI_ERROR_QUEUE_ERROR

Unable to queue read or write operation.

VI_ERROR_RAW_RD_PROT_VIOL

A violation of raw read protocol occurred during a transfer.

VI_ERROR_RAW_WR_PROT_VIOL

A violation of raw write protocol occurred during a transfer.

VI_ERROR_RESP_PENDING

A previous response is still pending, causing a multiple query error.

VI_ERROR_RSRC_BUSY

The resource is valid, but VISA cannot currently access it.

VI_ERROR_RSRC_LOCKED

The specified operation could not be performed because the resource identified by vi has been locked for this kind of access.

VI_ERROR_RSRC_NFOUND

The expression specified does not match any device, or resource was not found.

VI_ERROR_SESN_NLOCKED

The current session did not have any lock on the resource.

VI_ERROR_SRQ_NOCCURED

A service request has not been received for the session.

VI_ERROR_SYSTEM_ERROR

Unknown system error.

VI_ERROR_TMO

The operation failed to complete within the specified timeout period.

VI_ERROR_TRIG_NMAPPED

The path from trigSrc to trigDest is not currently mapped.

VI_ERROR_USER_BUF

A specified user buffer is not valid or cannot be accessed for the required size.

VI_ERROR_WINDOW_MAPPED

The specified session already contains a mapped window.

VI_ERROR_WINDOW_NMAPPED

The specified session is not currently mapped.

VI_ERROR_IN_PROGRESS

Unable to start a new asynchronous operation while another asynchronous operation is in progress