LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using encoder/Attaching values to array

Hello, I am currently taking 1.5 million samples over a 1.5 second time span. I would now like to add an encoder (quadrature) to this. I would like to sense angle (1 to 360 degrees) with the encoder.

For each sample of the 1.5 million, I would like to attach the corresponding position to it.

My question is how to code an encoder into this (I have never used an encode before) and now to attach the corresponding values to the samples.

I am using Labview 7.0 with a PCI 6110

Thanks for any help!
Ryan

LV 7.1
0 Kudos
Message 1 of 2
(2,488 Views)
I would use a common trigger to read your samples and the values of a counter.

The counter will count the pulses out of your encoder (if you use only A or B, you'll lose the sign but the system will be more simple). Put it in a separate vector and then, when acquisition is finished recompose your data with the encoder data (in a for loop).

If you surch on NI site, you will find some quadrature encoders reading exemples (if you really need the sign of the rotation)

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 2 of 2
(2,488 Views)