08-13-2009 03:39 PM
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.
08-14-2009 02:54 AM
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