LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Angular position and speed of bicycle crank using an optical encoder with a trig

I’m trying to use a two track optical encoder with three channels (A, B and Z) on each track to provide measurements of the angular position and speed of rotation of a bicycle crank. A proximity sensor provides a pulse when the crank arm is in the upright or 12 o’ clock position. I want the rising pulse of the proximity sensor to provide a trigger for the angular measurement to begin, and I went the angular measurement to restart from zero each time the crank passes by the proximity sensor. I’m planning to use a frequency generator as an external clock for the sampling rate. I also want to be able to write the speed and angle measurements to an excel file.

I’m using Labview 8.5 and I have the following National instruments data acquisition equipment: NI PCI 6221 and a DAQ chassis containing an NI 9421 card.  I have limited experience using Labview and the National instruments data acquisition equipment so I would greatly appreciate any help.

0 Kudos
Message 1 of 2
(3,358 Views)

Use the following keywords to search for examples under LabVIEW:

 

"quadrature encoder"

"AI external clock"

"AI Start Trigger"

 

You might also have to look at some synchronization examples if you want to have your angular position synchronized with the AI data.

 

Christian

Message 2 of 2
(3,335 Views)