12-08-2011 03:10 AM - edited 12-08-2011 03:12 AM
Hello.
I have a problem.
I have one signal connected to one digital input in my DAQ device. I would like to count edges of this signal and measure frequency. I know hot to do it separately but I don't know if it possible to measure these two variables simultaneously.
My idea was to use 2 DAQ Assistants but it's not possible to use two counters to one port.
My second idea was to count edges by counter and just to acquire digital signal and then measure frequency. But I also don't know how to do it.
I would appreciate any help.
Regards.
12-09-2011 01:25 AM
Hi Rogal,
why don't you connect the same signal to two separate inputs? If you have two counters on your device you wouldn't have to use the analog input for frequency measurement.
There is no possibility of doing it using one counter input (well, you could possibly measure the time between edges to calculate frequency, but that wouldn't be too reliable).
BR,
12-09-2011 01:37 AM
Thank you for your answer.
I was thinking about connecting signal to two different inputs. But first I wanted to check if is possible to measure needed values on one input. Now I know that is is impossible.
I'm beginner in Labview so could you give some tips how to measure time between edges? I was looking for some functions to do it but I couldn't find anything.
Regards.
12-09-2011 07:50 AM
I might not understand the question, are you trying to measure a digital inputs and count the edges and the frequency of the edges as they arrive?
Set up a continious buffered frequency (or period-requires some extra code) measurment with one counter. When you read the buffer in a loop you should get one point in your array for each edge and the value of the point is the frequency (or period) of the pulses. Be careful to handle timeouts if the edges come in at a slow or erratic rate.