07-09-2012 02:16 PM
I am using the PCI 6602 board and the NI-DAQ 9.5.1 driver. I want to generate an internal pulse train of user specified frequency, and at the rising edge of the pulses, trigger a voltage reading from an external device (a 5V DC power supply). I'm not sure if this is possible with the given card, but if it is, I have a few specific questions on how to get this application running.
1) How do I generate an internal pulse train (what physical wiring connections must be made and what C++ functions would be useful)?
2) How do I physically wire the power supply so the NI card can effectively read this voltage?
3) What C++ functions might be useful to have the rising edges of the pulse train trigger this voltage data acquisition?
Thank you in advance for the help.
Regards,
Zach
07-10-2012 06:44 PM
Hello Zach,
The PCI-6602 has 8 counters that you can use for that.
You can use the ‘DAQmxCfgSampClkTiming’ function to do that. Please take a look at the NI-DAQmx C reference Help to get further information about each NI-DAQmx C Functions.