From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-15-2019 12:16 PM
11-15-2019 01:24 PM
To directly measure frequency, your DAQ device should have a counter/timer (such as the USB 6212). Some DAQ devices (USB 6008) have a counter, but not a timer -- you can get an estimation of frequency by using the counter to "count rising edges" for a period of time measured by LabVIEW's "Wait" clock (with millisecond resolution). Of course, it also depends on how high a frequency you are trying to measure (I can imagine that you could do a few kHz, but possibly not a few MHz, with inexpensive DAQ devices).
Bob Schor
11-15-2019 02:29 PM - edited 11-15-2019 02:29 PM
Hi Bob
Thanks a lot.
I am using USB-1604HS, and it has a timer and counter.
Maybe my programming is not correct.
How should I make it directly measure frequency?
Thanks
11-15-2019 10:09 PM
Attach the VI or VIs. Look for example code. You should carefully read the manual of your device -- it may well have methods for using the counter-timers to measure frequency (the optimal method varies depending on the properties of your device, the frequency you are trying to measure, the accuracy and precision you require, and whether or not the signal has a relatively constant or significantly-time-varying frequency.
Bob Schor
04-15-2021 11:46 PM - edited 04-15-2021 11:47 PM
Hi Yi-Chung,
Did you solve the problem on this post? Can you please update it here on how you wrote the code?
Thanks.