02-17-2010 10:22 AM
Use shift register to compare signal in this loop and last loop.
Then, record a time, if there's edge present, and find difference between record time of each edge.
I leave it to you on how to implement it in block diagram.
02-19-2010 06:11 AM
i has tried using counter input>>two edge separation. but then, error occured say that
"measurements : there cannot be multiple counters in the same task for input operations."
what i'm going to do because my task need an output from two channels because there are two inductive loops on the road.
and, i also try using only 1 counter, but after it run, it will pop-up an error shows that there is timeout problem.
02-19-2010 10:28 AM
02-20-2010 05:34 AM
here i attached my code.
i still thinking on using digital input from DAQassistant because my lecturer ask me to create the program of detection for digital signal.
and i was succeded to detect the signal by using digital input from DAQassistant. the problem is as u know, how to calculate time interval between both signal