LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time between two prox sensors

I'm trying to time an object's speed using two prox sensors. I want to know the change in time that the two sensors change states, point A to B.

ANy ideas would be appreciated.

0 Kudos
Message 1 of 5
(2,683 Views)

What DAQ devices are you using to read these proximity sensors?

 

Read the two signals in DAQ.  Search for the change in states in each waveform.  Do the math between those times.

0 Kudos
Message 2 of 5
(2,678 Views)

We have some cDAQ stuff around here, so probably that.

Would you put each sensor in its own loop?

0 Kudos
Message 3 of 5
(2,676 Views)

First you need to figure out what you are going to actually use.  "Probably" isn't going to cut it.

 

No.  I'd acquire both sensors simultaneously in a single DAQ task (in all likelihood they will need to be in a single task) within a single loop.

0 Kudos
Message 4 of 5
(2,672 Views)

If your prox lensors can be treated as digital edges I would use counter 2 edge seperation, no programming/ math really to do.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 5
(2,670 Views)