07-30-2018 12:13 PM
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
07-31-2018 02:18 PM
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