Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Source in in pulse width measurement

Hello All,
 
I am using a cDAQ-9172 and I have an NI 9401 module to achieve the two-signal edge-separation measurement.  Is there a way to substitute an internal signal to the source pin?  In my observation, i find it inefficient to use 3 pins to measure time for two signals.  Just a thought, no offense meant.
 
Thank you,
A
0 Kudos
Message 1 of 4
(2,942 Views)
Hi A,

A two-edge separation measurement will require two input signals for the counter. They should be connected to CTR 0 GATE and CTR 0 AUX (Pins 16 and 17). These pinouts and the required terminals can be found in the Device Terminals Help section of the NI-DAQmx Help or in the NI cDAQ-9172 User Guide. By default, the internal timebase is routed to the source pin so you do not have to connect an external signal. If you wanted to route another signal to the source, you can use property nodes in LabVIEW as seen below or the DAQmxSetCICtrTimebaseSrc() and DAQmxSetCICtrTimebaseRate() functions. For more information on setting these properties, you can look at this article which sets similar properties.



Regards,
Kent
Applications Engineer


Message Edited by tnek on 05-02-2008 10:31 AM
Message 2 of 4
(2,929 Views)
Hello tnek,
 
Thanks for the information but I have one problem left.  I am a MS Visual C++ user.
Please teach me how to do that in VC++.
 
Thanks again,
A
 
 
0 Kudos
Message 3 of 4
(2,910 Views)
Hi A,

You will just have to use the two functions I mentioned in the last post before you start your task. If you need additional information on those functions, the NI-DAQmx C Reference Help is useful. It can be found under Start » Programs » National Instruments » NI-DAQ » NI-DAQmx C Reference Help if you are using Windows.

Regards,
Kent
Applications Engineer
Message 4 of 4
(2,894 Views)