Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate an interrupt using DI change detection on m-series card

Hi,

 

I want to generate an interrupt on the positive edge of a digital input signal on the IO connector.

Does anybody know how to configure an m-series card (PXI-6224) for this use through RLP programming?

 

Thanks in advance,

Richard

0 Kudos
Message 1 of 6
(7,525 Views)

I also want to generate an external interrupt on an M- series pci-6229, and on a pci-6602 .

1. Is there an exampe how to configure the registers?

2. which external signals can genarate interrupts on those cards?

0 Kudos
Message 2 of 6
(7,495 Views)

I also want to generate an external interrupt on an M- series pci-6229, and on a pci-6602 .

1. Is there an exampe how to configure the registers?

2. which external signals can genarate interrupts on those cards?

0 Kudos
Message 3 of 6
(7,495 Views)

Richard vl wrote:
I want to generate an interrupt on the positive edge of a digital input signal on the IO connector.
Does anybody know how to configure an m-series card (PXI-6224) for this use through RLP programming?

 


RuthC wrote:
I also want to generate an external interrupt on an M- series pci-6229, and on a pci-6602.
1. Is there an exampe how to configure the registers?
2. which external signals can genarate interrupts on those cards?

Hi Richard, hi Ruth,

Let me address your questions together: first for 662x (part of M Series) digital change detection and then for 6602 (part of 660x).

 

622x (M Series)

Digital change detection has not been released in the DDK for M Series devices. If you must use an M Series device, please ask your field engineer to contact NI support so we can discuss options. On the other hand, digital change detection has been released in the DDK for X Series devices (63xx) [1].

 

If you can use one from that family, then your programming will be much easier -- the RLP manual discusses change detection as well as interrupts (Chapter 1: Interrupts, beginning on PDF page 48), and the example distribution demonstrates how to configure change detection on the device (dioex3). The last piece is data transfer: the example's data transfer mechanism is DMA, so you would need to supply your own interrupt handler to move data to the host (or alert the host that a DMA transfer has completed).

 

6602 (660x family)

Moving to the 6602, change detection is not possible. The 660x device family only supports polling for transfering data read on the digital lines [2].

 

Please let me know if I overlooked anything in your questions.

[1] NI Measurement Hardware Driver Development Kit
http://sine.ni.com/nips/cds/view/p/lang/en/nid/11737

[2] NI 660x Specifications
http://digital.ni.com/manuals.nsf/websearch/57893F11B0C0687F862579330064FF6F
 

 

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 4 of 6
(7,461 Views)

Can I generate interrupt from external source using pci-6503?

Is there any pci card that can be used for this purpose?

Thanks

Ruth

0 Kudos
Message 5 of 6
(7,455 Views)

Yes, the PCI-6503 supports interrupts -- two of the lines can be used to generate interrupts on low-to-high transitions. See the hardware reference manual for more information [1]; Appendix B discusses the registers and programming considerations.

If you have PCI Express slots in your system, I strongly recommend the X Series devices [2]. The PCIe-6351 is the one I have and use, but the PCIe-6320 is most basic and still supports change detection interrupts on its digital lines.

[1] PCI-DIO-96/PXI-6508/PCI-6503 User Manual
http://digital.ni.com/manuals.nsf/websearch/6E8329494F3955528625758300678D55

[2] X Series DAQ Devices
http://sine.ni.com/np/app/main/p/bot/no/ap/daq/lang/en/pg/1/sn/n21:41,n17:daq,n23:11502/sb/+nigenso7...

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 6 of 6
(7,447 Views)