12-14-2012 07:08 AM
I have a Meilhaus DAQ 1208FS , I want to use a encoder agilent hedl 5540 , i want to find the distance of the encoders travelled .
Can you suggest me how to do it using the digital signals?
Solved! Go to Solution.
12-18-2012 04:01 AM
Depending on your specific type of your Encoder youre getting 200-1000 pulses per revolution
(http://de.nanotec.com/page_product_archive__schrittmotor_encoder_heds5540__de.html)
Count the pulses that you get and multiply it by (Pulses per revolution)/360° and you get the current position in degrees.
12-18-2012 10:30 AM
Thanks dude ,but How to count the pulses without a counter , I have only digital inputs.
Is it possibe to count with the counter?
12-20-2012 02:15 AM
I wrote a small software timed VI, that will count edges.
Its software timed, so you cant go much higher than 100Hz with the signal.
If you have a counter its a lot faster. Just search for "count digital edges" on ni.com and you will find plenty of examples doing exactly that
12-20-2012 04:44 AM
Dear Felix ,
Thanks a lot for your reply. Now am able to count the signals . But To find the direction of the encoder from those signals?
Any suggestions i have tried different algorithm ,couldn get good result
12-20-2012 06:18 AM
Youll have to check the datasheet and find out which impulse you will get or a clockwise or counterclockwise turn.
Then use a case structure to find check if the pulse changed to low or to high
12-20-2012 08:02 AM
Thanks once again . If channel A leads B it is CCW and viceversa for CW.
I have following this paper , even then my direction is flickering .
http://www.naun.org/multimedia/NAUN/circuitssystemssignal/19-726.pdf
Do you have any idea?