Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating interrupt when using NI-DAQ 6501 (USB connection)

Hi
I am a programmer and i'm Using the NI-DAQ 6501 device with USB connection to PC in Visual C++.
 
I need to sample a bit field data at some port in rate of 6.5 milli seconds.
 
Once that Bit is change from "0" to "1" i would like the device to generate a interrupt.
 
Is it possible? how can i do it?
 
Regards
 
Shmulik
0 Kudos
Message 1 of 4
(3,614 Views)
Hi Shmulik,

Thank you for posting on the National Instruments forums.

What you can do is use DAQmx functions to monitor the digital line and when the digital line goes from 0 to 1 programmatically call an interrupt in windows.  If you have the DAQmx driver installed and included support for C, you can find examples programs:
C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC
Or if you have Measurement Studio installed:
C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET1.1

You can also find resources by searching on www.ni.com where we have many resources for developing applications.

Calling an interrupt in windows through c++ is beyond the scope of National Instruments support. 
Thank You,

Nick F.
Applications Engineer
0 Kudos
Message 2 of 4
(3,597 Views)

Does the usb-6501 support interrupt?The document have not Related description。why?

0 Kudos
Message 3 of 4
(1,664 Views)

Usb-6501 does not have this function, You can use usb-6509 do this.

0 Kudos
Message 4 of 4
(1,586 Views)