Denys:
PXI documentation is a bit thin in the current release and we are improving it for NI-VISA 2.6. In addition to register accesses, NI-VISA supports the event VI_EVENT_PXI_INTR (0x3FFF2022) to provide notification to an application that the specified device has generated a PCI interrupt. This event allows a user to write an entire device driver or instrument driver at the user level, without having to write any kernel code. You use the same VISA event functions (Enable Event, Wait on Event, etc.) as you do for GPIB or any other hardware interface.
The only difference is that for PXI, the OS must associate your plug-in card with the NI-VISA kernel driver. Therefore, you have to create an INF file for your device. We have a utility that creates thi
s for you at Start>>Programs>>National Instruments>>VISA>>PXI Driver Development Wizard.
The wizard has you enter the register accesses that must be done in the kernel at interrupt time to determine whether your device is interrupting, and to squelch (temporarily turn off) the interrupt. This information is put in the INF file. Then at run time when this information indicates that your device has interrupted, a VISA event is created to notify your application.
Hope this helps,
Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments