LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to count speed between 2 signal

hi. i was use M-series in detecting the signal from inductive loop/. there are 2 inductive loop on the road. i hv successfully separate those 2 signal from DAQ assistant. but the problem now is how can i calculate the interval btween that two signal in order to get the speed between those two.

 

which means,

 

when, the 1st signal was blinking, the timer was start. then, when the 2nd signal was blinking, the timer was stop. and from that i can get the time interval to calculate speed which the distance i know.

 

 

0 Kudos
Message 1 of 14
(4,164 Views)
Can you show us how does the signal look like?
0 Kudos
Message 2 of 14
(4,145 Views)

as u can c from photo, the output is 2 signal. my problem is i dont know how to trigger an elapsed time between those 2 signal so that,

after the 1 signal blink once, then the time is trigger as start-up time, and when the 2nd signal blink once, the time will stop. then from that i will get the elapsed time between both signal

0 Kudos
Message 3 of 14
(4,119 Views)

Wow, that really is a screen shot.

 

It would have been better if you posted your actual VI instead of a poor photo of your screen.

 

And Kate asked for what the signal looks like (as in the real world signal) not a photo of your block diagram.

 

What is the purpose of the 1 OR 0 in your picture?

 

Please post in English.  I assume "u"= "you" and "c" = "see".

0 Kudos
Message 4 of 14
(4,111 Views)

sorry for the photo... i wish i can, but i cant because it is not an ordinary pc. it is advantech cpu, so i was forbid to use my pendrive on it, and the cpu also was forbid to connect to internet..

 

but can you see the photo? or i will post another

0 Kudos
Message 5 of 14
(4,108 Views)

No, I can see the picture well enough.  But because it is a picture, you can't see certain things like how the DAQ assistant is set up.

 

How did you get the program on there if you aren't allowed to connect to it?

 

But you still need to answer the question that Kate asked, "What does the signal look like?"

0 Kudos
Message 6 of 14
(4,101 Views)

You actually can configure DAQ Assistant to perform Acquire Signals>>Counter Input>>Two Edge Separation, and connect signal to a line suggested in DAQ Assistant.

One thing should beware is signal bouncing.

If there's such thing, try debouncing circuit as shown in http://www.ikalogic.com/tutorials/pictures/debouncing/debounce.jpg

0 Kudos
Message 7 of 14
(4,088 Views)

thnx for the idea. actually, i used DAQ Assistant>Digital Input>Line Input. and, there is no problem for me to separate both of them. the problem is how to calculate the

 

time interval between 1st signal and the 2nd signal. here i attached my vi. i have tried so many times but still didnt get the solution.

0 Kudos
Message 8 of 14
(4,073 Views)
Why bother using digital input while counter can manage everything for you without coding headache?
0 Kudos
Message 9 of 14
(4,071 Views)

actually i was assign to detect the signal using digital input. but i will try to use the counter input later if i can the same input as digital or not. did you going through my vi?

 

so what do you think in order for me to get the elapsed time between both signal.

0 Kudos
Message 10 of 14
(4,057 Views)