05-16-2012 12:02 PM
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.
05-16-2012 01:01 PM
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.
05-16-2012 01:02 PM
We have some cDAQ stuff around here, so probably that.
Would you put each sensor in its own loop?
05-16-2012 01:13 PM
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.
05-16-2012 01:17 PM
If your prox lensors can be treated as digital edges I would use counter 2 edge seperation, no programming/ math really to do.