Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Capture interrupt source during NI VISA Interrupt Detection sequence

Hello,

 

I have a PCI device that interrupts with multiple possible interrupt sources that are signaled through flags read from a memory address. I am using NI VISA to connect to this device using a user mode application. I clear the interrupt by clearing the memory location with the interrupt sources using NI VISA Interrupt Removal, but then the user mode application doesn't know which interrupt source generated the interrupt. The interrupt sources must be cleared to clear the PCI interrupt assertion and prevent system instability.

 

Some thoughts I had but I am not sure are possible:

  • During the NI VISA Interrupt Detection sequence, is it possible to read the value of a memory address in one step and then write this value to another memory address in another step? This would allow me to read the interrupt request source, write it to a temporary memory address and then clear the interrupt request source address as needed.
  • Can the user mode application tell which Sequence in NI VISA Interrupt Detection noted the interrupt? For example as an input parameter to our Handler function? Then if each of our interrupt request sources is a different Sequence number in Interrupt Detection, we can know what our interrupt source was in the user application.
0 Kudos
Message 1 of 1
(204 Views)