Dear developers,
I am fairly new to Labview programming so forgive me if this question or something similiar has already been asked. I am using Labview 7.1 with a USB 6009 DAQ. I am using a light beam break sensor to monitor the rotational position of a shaft via a slotted disk. The slotted disk has 3 adjacent slots joined together as a larger hole, one edge of which denotes an important rotational position (BDC). The output signal is therefore a square wave (0v to 12v) with a larger (0v) gap.
It would be brilliant if I could capture and record the rising edge of the gap as it would give me a reference point and would allow me to calculate a revolution time and hence frequency. As well as this I would like to be able to calculate the rotational position of the shaft using each rising edge with reference to BDC. So for example 1 rising edge after BDC equals 6 degree rotation, 2nd rising edge is 12 degree rotation etc.. I would then need to reset back to 0 at each BDC.
I hope that is clear.
Any help will be much appreciated
Many thanks
Daniel Easton