COM Return Codes

Return Code Value

Hex Value

Decimal Value

Return Code Description

E_UNEXPECTED

0x8000FFFF

-2147418113

A serious internal error occurred.

E_POINTER

0x80004003

-2147467261

Invalid pointer.

E_NOTIMPL

0x80000001

-2147483647

Not implemented.

E_FAIL

0x80004005

-2147467259

Failed.

E_INVALIDARG

0x80070057

-2147024809

One of the arguments did not contain a legal value.

S_OK

0x0

0

Operation completed successfully.

S_VISA_SUCCESS

0x0

0

Operation completed successfully

S_VISA_EVENT_EN

0x40002

262146

The event type is already enabled.

S_VISA_EVENT_DIS

0x40003

262147

The event type is already disabled.

S_VISA_QUEUE_EMPTY

0x40004

262148

The event queue is disabled.

S_VISA_TERM_CHAR

0x40005

262149

The read operation terminated due to reception of the termination character.

S_VISA_MAX_CNT

0x40006

262150

The read operation terminated due to the reception of the requested number of bytes

S_VISA_DEV_NPRESENT

0x4007d

262269

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

S_VISA_QUEUE_NEMPTY

0x40080

262272

Wait terminated successfully on receipt of an event notification. There is still at least one more event occurrence of the type specified by inEventType available for this session.

S_VISA_TRIG_MAPPED

0x4007e

262270

The path from trigSrc to trigDest is already mapped.

S_VISA_NCHAIN

0x40098

262296

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

S_VISA_NESTED_SHARED

0x40099

262297

Specified access mode is successfully acquired, and this session has nested shared locks.

S_VISA_NESTED_EXCLUSIVE

0x4009a

262298

Call succeeded, but this session still has nested exclusive locks.

S_VISA_SYNC

0x4009b

262299

Operation performed synchronously.

S_VISA_CONFIG_NLOADED

0x40077

262263

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

S_VISA_NULL_OBJECT

0x40082

262274

The specified object reference is uninitialized.

S_VISA_NSUP_ATTR_STATE

0x40084

262276

Although the specified attribute state is valid, it is not supported by this implementation.

S_VISA_UNKNOWN_STATUS

0x40085

262277

The status code passed to the operation could not be interpreted.

S_VISA_NSUP_BUF

0x40088

262280

The specified buffer is not supported.

E_VISA_SYSTEM_ERROR

0x80040000

-2147221504

Unknown system error (miscellaneous error).

E_VISA_INV_OBJECT

0x8004000e

-2147221490

The given session or object reference is invalid (both are the same value).

E_VISA_RSRC_LOCKED

0x8004000f

-2147221489

Specified type of lock cannot be obtained because the resource is already locked with a lock type incompatible with the lock requested.

E_VISA_INV_EXPR

0x80040010

-2147221488

Invalid expression specified for search.

E_VISA_RSRC_NFOUND

0x80040011

-2147221487

Specified expression does not match any devices.

E_VISA_INV_RSRC_NAME

0x80040012

-2147221486

Invalid resource reference specified. Parsing error.

E_VISA_INV_ACC_MODE

0x80040013

-2147221485

Invalid access mode.

E_VISA_TMO

0x80040015

-2147221483

The operation terminated due to a timeout.

E_VISA_CLOSING_FAILED

0x80040016

-2147221482

Unable to deallocate the previously allocated data structures corresponding to this session or object reference.

E_VISA_INV_DEGREE

0x8004001b

-2147221477

Specified degree is invalid.

E_VISA_INV_JOB_ID

0x8004001c

-2147221476

Specified job identifier is invalid.

E_VISA_NSUP_ATTR

0x8004001d

-2147221475

The specified attribute is not defined by the referenced session, event, or find list.

E_VISA_NSUP_ATTR_STATE

0x8004001e

-2147221474

The specified state of the attribute is not valid, or is not supported as defined by the session, event, or find list.

E_VISA_ATTR_READONLY

0x8004001f

-2147221473

The specified attribute is read-only.

E_VISA_INV_LOCK_TYPE

0x80040020

-2147221472

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

E_VISA_INV_ACCESS_KEY

0x80040021

-2147221471

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

E_VISA_INV_EVENT

0x80040026

-2147221466

Specified event type is not supported by the resource.

E_VISA_INV_MECH

0x80040027

-2147221465

Invalid mechanism specified.

E_VISA_HNDLR_NINSTALLED

0x80040028

-2147221464

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

E_VISA_INV_HNDLR_REF

0x80040029

-2147221463

The given handler reference is invalid.

E_VISA_INV_CONTEXT

0x8004002a

-2147221462

Specified event context is invalid.

E_VISA_QUEUE_OVERFLOW

0x8004002d

-2147221459

The Event queue overflowed.

E_VISA_NENABLED

0x8004002f

-2147221457

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

E_VISA_ABORT

0x80040030

-2147221456

The asynchronous job as terminated early.

E_VISA_RAW_WR_PROT_VIOL

0x80040034

-2147221452

Violation of raw write protocol occurred during transfer.

E_VISA_RAW_RD_PROT_VIOL

0x80040035

-2147221451

Violation of raw read protocol occurred during transfer.

E_VISA_OUTP_PROT_VIOL

0x80040036

-2147221450

Device reported an output protocol error during transfer.

E_VISA_INP_PROT_VIOL

0x80040037

-2147221449

Device reported an input protocol error during transfer.

E_VISA_BERR

0x80040038

-2147221448

Bus error occurred during transfer.

E_VISA_IN_PROGRESS

0x80040039

-2147221447

An operation is in progress.

E_VISA_INV_SETUP

0x8004003a

-2147221446

Some implementation-specific configuration file is corrupt or does not exist.

E_VISA_QUEUE_ERROR

0x8004003b

-2147221445

There was an event queue error.

E_VISA_ALLOC

0x8004003c

-2147221444

The system could not allocate the buffer(s) of the specified size because of insufficient system resources.

E_VISA_INV_MASK

0x8004003d

-2147221443

The system cannot set the buffer for the given mask.

E_VISA_IO

0x8004003e

-2147221442

Could not perform read/write operation because of I/O error.

E_VISA_INV_FMT

0x8004003f

-2147221441

The format of the data is invalid.

E_VISA_NSUP_FMT

0x80040041

-2147221439

The format of the data is not supported.

E_VISA_LINE_IN_USE

0x80040042

-2147221438

One of the specified lines (trigSrc or trigDest) is currently in use.

E_VISA_NSUP_MODE

0x80040046

-2147221434

The specified mode is not supported by this VISA implementation.

E_VISA_SRQ_NOCCURRED

0x8004004a

-2147221430

Service request has not been received for the session.

E_VISA_INV_SPACE

0x8004004e

-2147221426

Invalid address space specified.

E_VISA_INV_OFFSET

0x80040051

-2147221423

Invalid offset specified.

E_VISA_INV_WIDTH

0x80040052

-2147221422

Specified width is not supported by this hardware.

E_VISA_NSUP_OFFSET

0x80040054

-2147221420

Specified offset is not accessible from this hardware.

E_VISA_NSUP_VAR_WIDTH

0x80040055

-2147221419

Cannot support source and destination widths that are different.

E_VISA_WINDOW_NMAPPED

0x80040057

-2147221417

The specified session is not currently mapped.

E_VISA_RESP_PENDING

0x80040059

-2147221415

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

E_VISA_NLISTENERS

0x8004005f

-2147221409

No listeners condition is detected (both NRFD and NDAC are deasserted).

E_VISA_NCIC

0x80040060

-2147221408

The interface associated with the given vi is not currently the controller in charge.

E_VISA_NSYS_CNTLR

0x80040061

-2147221407

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

E_VISA_NSUP_OPER

0x80040067

-2147221401

The given resource does not support this operation.

E_VISA_INTR_PENDING

0x80040068

-2147221400

An interrupt is still pending from a previous call.

E_VISA_ASRL_PARITY

0x8004006a

-2147221398

A parity error occurred during transfer.

E_VISA_ASRL_FRAMING

0x8004006b

-2147221397

A framing error occurred during transfer.

E_VISA_ASRL_OVERRUN

0x8004006c

-2147221396

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

E_VISA_TRIG_NMAPPED

0x8004006e

-2147221394

The path from trigSrc to trigDest is not currently mapped.

E_VISA_NSUP_ALIGN_OFFSET

0x80040070

-2147221392

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

E_VISA_USER_BUF

0x80040071

-2147221391

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

E_VISA_RSRC_BUSY

0x80040072

-2147221390

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

E_VISA_NSUP_WIDTH

0x80040076

-2147221386

Specified width is not supported by this hardware.

E_VISA_INV_PARAMETER

0x80040078

-2147221384

The value of some parameter-which parameter is not known-is invalid.

E_VISA_INV_PROT

0x80040079

-2147221383

The protocol specified is invalid.

E_VISA_INV_SIZE

0x8004007b

-2147221381

Invalid size of window specified.

E_VISA_WINDOW_MAPPED

0x80040080

-2147221376

The specified session already contains a mapped window.

E_VISA_NIMPL_OPER

0x80040081

-2147221375

The given operation is not implemented.

E_VISA_INV_LENGTH

0x80040083

-2147221373

Invalid length specified.

E_VISA_INV_MODE

0x80040091

-2147221359

The value specified by the mode parameter is invalid.

E_VISA_SESN_NLOCKED

0x8004009c

-2147221348

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

E_VISA_MEM_NSHARED

0x8004009d

-2147221347

The device does not export any memory.

E_VISA_LIBRARY_NFOUND

0x8004009e

-2147221346

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

E_VISA_NSUP_INTR

0x8004009f

-2147221345

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

E_VISA_INV_LINE

0x800400a0

-2147221344

The value specified by the line parameter is invalid.

E_VISA_FILE_ACCESS

0x800400a1

-2147221343

An error occurred while trying to open the specified file. Possible reasons include an invalid path or lack of access rights.

E_VISA_FILE_IO

0x800400a2

-2147221342

An error occurred while accessing the specified file.

E_VISA_NSUP_LINE

0x800400a3

-2147221341

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

E_VISA_NSUP_MECH

0x800400a4

-2147221340

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

E_VISA_INTF_NUM_NCONFIG

0x800400a5

-2147221339

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

E_VISA_CONN_LOST

0x800400a6

-2147221338

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

Search Keywords: COM Return Codes, Return Codes, Codes, Return, VISA COM Return Codes