PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can you pass back the PCI Interrupt value read by the ISR?

I have a PCI card that has about 16 interrupt sources. I would like to simply pass back the ISR value read so that I can determine the cause. The Read/Compare lets you compare against a mask, but I think I would like to be able to either Write this value somewhere, OR BETTER YET, have it returned in the VISA Wait On Event. (There appears to be pretty much nothing returned here!) I have been creating a compare for each bit and writing a FLAG value to ram to keep track of the interrupt but this is cumbersome and slow. I then have to check each of these locations in my LabVIEW code. There must be some additional capability in the Driver Wizard that I am missing.
0 Kudos
Message 1 of 4
(3,229 Views)
There are 2 new attributes in NI-VISA 3.1 that will help you. They are attributes on the event itself.

VI_ATTR_PXI_RECV_INTR_SEQ, aka "PXI Recv Intr Seq" - This attribute value is the index of the interrupt sequence that detected the interrupt condition.

VI_ATTR_PXI_RECV_INTR_DATA, aka "PXI Recv Intr Data" - This attribute value is the first PXI/PCI register that was read in the successful interrupt detection sequence.

Dan Mondrik
National Instruments
0 Kudos
Message 2 of 4
(3,229 Views)
Thanks, that is way better than the alternative. I'll give it a try.
I would have responded sooner but I didn't get email as I expected when you responded.
0 Kudos
Message 3 of 4
(3,229 Views)
If I have 16 different interrupts it looks like I still have to define 16 sequences in the Driver Wizard. Each bit has to be tested independently in order to make sure the Compare is TRUE if an arbitrary bit is set. It would be nice to be able to see if ANY bit is set within the MASKed region, the OR function. Since the Driver Wizard doesn't let me do anything in the ISR anyway it would be nice to get out of the ISR as quick as possible and get into the code that can do something. If there is a way to do this please let me know.
0 Kudos
Message 4 of 4
(3,229 Views)