Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we make use of VISA to acknowledge interrupts generated by a PCI card,if yes how ?


(OS:Windows NT) In the read me first file of NI-VISA 2.01 there is a section wich gives information about dedection and acknowledge of PXI interrupts.
I asume that this also works for PCI cards.
But I can not find any information on how to
connect the interrupt with an event callback
or something of this kind.
0 Kudos
Message 1 of 2
(3,127 Views)
eXitec:

The short answer is yes, this works for both PXI and PCI. This is supported from NI-VISA 2.01 forward (2.5 has the same support).

The PXI Driver Development Wizard allows you to specify the register reads and writes that must take place in the kernel at interrupt time. This is necessary to physically squelch or remove the interrupt from the bus. The resulting .inf file specifies NI-VISA as the kernel driver. Note that only simple reads, writes, and compares are available - no complex algorithms are supported at this time.

For a VISA driver or application, the event notification mechanism is the same as for any other event type, such as SRQ. Call viEnableEvent on the event type VI_EVENT_PXI_INTR for either queueing or callbacks.

Dan Mondrik
Seni
or Software Engineer, NI-VISA
National Instruments
Message 2 of 2
(3,127 Views)