LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to count speed between 2 signal

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.

0 Kudos
Message 11 of 14
(852 Views)

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. 

 

0 Kudos
Message 12 of 14
(834 Views)
Can you attach your code together with error screenshot?
0 Kudos
Message 13 of 14
(821 Views)

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

0 Kudos
Message 14 of 14
(813 Views)