Instrument Control (INSTR) Resource Events

From Agilent VISA.NET

Instrument Control (INSTR) Resource Events

In the following table, AP = Access Privilege, RO - Read Only, and RW = Read/Write.

VI_EVENT_SERVICE_REQUEST

Notification that a service request was received from the device.

Event Attribute

Description

AP

Data Type

Range

VI_ATTR_EVENT_TYPE

Unique logical identifier of the event.

RO

ViEventType

VI_EVENT_SERVICE_REQ

 

 

 

 

 

VI_EVENT_VXI_SIGP

Notification that a VXIbus signal or VXIbus interrupt was received from the device.

Event Attribute

Description

AP

Data Type

Range

VI_ATTR_EVENT_TYPE

Unique logical identifier of the event.

RO

ViEventType

VI_EVENT_VXI_SIGP

VI_ATTR_SIGP_STATUS_ID

The 16-bit Status/ID value retrieved during the IACK cycle or from the Signal register.

RO

ViUInt16

0 to FFFFh

 

 

 

 

 

 

VI_EVENT_TRIG

Notification that a trigger interrupt was received from the device. For VISA, the only triggers that can be sensed are VXI hardware triggers on the assertion edge (SYNC and ON trigger protocols only).

Event Attribute

Description

AP

Data Type

Range

VI_ATTR_EVENT_TYPE

Unique logical identifier of the event.

RO

ViEventType

VI_EVENT_TRIG

VI_ATTR_RECV_TRIG_ID

The identifier of the triggering mechanism on which the specified trigger event was received.

RO

ViInt16

VI_TRIG_TTL0 to VI_TRIG_TTL7; VI_TRIG_ECL0 to VI_TRIG_ECL1*

* Agilent VISA can also return VI_TRIG_PANEL_IN (exception to the VISA Specification).

 

VI_EVENT_IO_COMPLETION

Notification that an asynchronous operation has completed.

Event Attribute

Description

AP

Data Type

Range

VI_ATTR_EVENT_TYPE

Unique logical identifier of the event.

RO

ViEventType

VI_EVENT_IO_COMPLETION

VI_ATTR_STATUS

Return code of the asynchronous I/O operation that has completed.

RO

ViStatus

N/A

VI_ATTR_JOB_ID

Job ID of the asynchronous operation that has completed.

RO

ViJobId

N/A

VI_ATTR_BUFFER

Address of a buffer that was used in an asynchronous operation.

RO

ViBuf

N/A

VI_ATTR_RET_COUNT

Actual number of elements that were asynchronously transferred.

RO

ViUInt32

0 to FFFFFFFFh

VI_ATTR_OPER_NAME

Name of the operation generating the event.

RO

ViString

N/A

VI_ATTR_RET_COUNT_32

Actual number of elements that were asynchronously transferred.

RO

ViUInt32

0 to FFFFFFFFh

VI_ATTR_RET_COUNT_64*

Actual number of elements that were asynchronously transferred.

RO

ViUInt64

0 to FFFFFFFFFFFFFFFFh

*Defined only for frameworks that are 64-bit native.

 

 

 

VI_EVENT_USB_INTR

Notification that a vendor-specific USB interrupt was received from the device.

Event Attribute

Description

AP

Data Type

Range

VI_ATTR_EVENT_TYPE

Unique logical identifier of the event.

RO

ViEventType

 

VI_EVENT_USB_INTR

VI_ATTR_USB_RECV_INTR_SIZE

 

Specifies the size of the data that was received from the USB interrupt-IN pipe. This value will never be larger than the sessions value of VI_ATTR_
USB_MAX_INTR_SIZE.

RO

ViUInt16

0 to FFFFh

VI_ATTR_USB_RECV_INTR_DATA

Specifies the actual data that was received from the USB interrupt-IN pipe. Querying this attribute copies the contents of the data to the users buffer. The users buffer must be sufficiently large enough to hold all of the data.

RO

ViBuf

N/A

VI_ATTR_STATUS

Specifies the status of the read operation from the USB interrupt-IN pipe. If the device sent more data than the user specified in VI_ATTR_USB_MAX_INTR_SIZE, then this attribute value will contain an error code.

RO

ViStatus

N/A

VI_EVENT_PXI_INTR

Event Attribute

Description

AP

Data Type

Range

VI_ATTR_EVENT_TYPE

Notification that a PCI Interrupt was received from the device.

RO

ViEventType

VI_EVENT_PXI_INTR

is text and replace it with your own content.