08-27-2005 09:27 AM
Is it possible to record the time when a boolean expression is true, i.e if an =0 condition was placed on an AC signal, would it be possible to record the times when the wave crossed 0.
I expected this part of my overall problem the easiest, but im simply not getting anywhere
Thanks
08-27-2005 12:06 PM
Be aware that a discretely sampled AC signal will probably never be exactly zero, so the true zero-crossing is most likely between data points. If you do a "=0", you'll never get a match.
Fortunately, LabVIEW has all the tools you possibly need to do what you want. If you could give us a bit more detail on your exact scenario, we can come up with a suitable solution.
Some ideas:
08-27-2005 01:52 PM
Thanks for looking at my problem,
The real problem is to do with an engine crank sensor (Variable reluctance). When the sensor is placed on a toothed wheel (12 - 3 teeth), the sensor produces a sinusoidal like wave, with a gap 25% of the time. Teeth can be found on the wave as V=0 and dv/dt<0. The gap will then be used as a ref point.
My eventual intentions are to monitor the signal from the engine and calculate the angle of the shaft by looking at gap times between wave cycles. Before i use the real sensor i intend to fully simulate everything.
I now have an approximate simulation of the crank signal. i have attatched it.
I expected the =0 part not to work for the reason you stated but was unsure how to get around that. So, I thought i would produce a square wave first when dv/dt<0 and when -0.1<v<0.1. I was then hoping there would be a rising edge trigger tool that could give me times of these rising edges of the square wave so that i could record them in a table, but i cant find/think of a way to do this.
After i have a way of doing this i will compare gaps between teeth to find the ref tooth. After it is found i will increment a tooth counter everytime a tooth passes, and from there estimate angle of crankshaft.
08-29-2005 09:08 AM
08-31-2005 08:03 AM
08-31-2005 08:25 AM
08-31-2005 08:44 AM