Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate an internal pulse train and use this to trigger voltage readings

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

0 Kudos
Message 1 of 2
(5,571 Views)

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.

 

Mr.O
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(5,561 Views)