LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Voltage Encoder Speed LabView w/ MyRio

Hello,

I have a voltage rotary encoder that takes in 0-5V and outputs a square wave which frequency varies with the speed. There is only one output to this encoder not an A and B, the model is E6A2-CS3E. I would like to get the speed of the encoder as a function of time. I do not want to use an FPGA target or DAQmx, I am using the myRio 1900 express VIs. I am able to read the signal and convert it to a digital 1 or 0 (1 being above 3V and 0 being below) but how can I concatenate that value corresponding with a time? I'd like to put the number of ticks per time interval into an array (to later count speed) but I'm having trouble understanding how to match up the tick with a corresponding time value. Let me know of any resources or help you can give, I am somewhat new to Labview and pressed for time. If I can get an array of time vs number of ticks at each interval that would be perfect.

 

Thanks

0 Kudos
Message 1 of 2
(1,962 Views)

Hi colleague

 

I would like to know if you are counting the ticks from an encoder within a while loop. If this is the case, I think that it may be an option to use a benchmarking of the while loop, to then divide the number of ticks by the time measured, with this we will calculate the number of ticks per second. Here I leave a link related to the benchmarking process:

 

http://www.ni.com/example/25532/en/

 

Regards

0 Kudos
Message 2 of 2
(1,922 Views)