Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How i can gennerate Interrupt on Visual c++ with card PC-TIO-10 and driver Ni-Daq6.9

I use Windows 98 and use NIDAQ Version 6.9.
I have card Timer PC-TIO-10 and Analog in/out card (AT-MIO-16E-1). If i want define sampling time 0.1 ms for PC-TIO-10 (Now i use IRQ 5 recieve interrupt from PC-TIO-10). I use Visual C++ V6.0 when occur interrupt every 0.1ms my program read value analog from AT-MIO-16E-1 and show value on screen(use MFC project).
I want exanple only Visual C++
0 Kudos
Message 1 of 2
(3,383 Views)
We do not have any example programs that do what you are wanting to do. What you can do is to connect a 0.1ms pulse to the extIRQ pin of the PC-TIO-10 board. (Make sure you have the IRQ jumper set the same IRQ address as you have in MAX for the TIO-10). Then, in your program use the NI-DAQ fuction Config_DAQ_Event_Message with DAQ event #9 and set a callback function for it. By doing this, every time a pulse comes in on the extIRQ line of the TIO-10, the callback function will be ran. In the callback function you can read data from the MIO-16E-1.

Let me know if you have any problems implementing this.

Brian
0 Kudos
Message 2 of 2
(3,383 Views)