05-23-2007 09:34 AM
05-25-2007 10:21 AM
06-25-2007 03:52 PM
06-26-2007 11:27 AM
02-28-2017 01:39 AM
Hi,
I could see two pallets one with name "Read Position" and other with name "Read Encoder Position". Can you tell me difference between these two?. In my case I want to read encoder pulses and I am using ni PCI 7340.
I am getting right values from "Read Position" pallete and "Read Encoder Position" is giving some random values which I couldn't interpret?. Can you suggest me which pallete I should be using for reading encoders? Any test codes for reading encoder would be great.
03-01-2017 07:57 AM
Hi ShashiAchar,
I found this information in the Read Encoder Position VI's detailed help (Read Encoder Position😞
"The Read Encoder Position VI returns the quadrature count value of the encoder selected. The encoder must be enabled, either directly through the Enable Encoders VI or automatically, by being mapped to an enabled axis.
The Read Encoder Position VI is typically used to read the value of an encoder that is not part of an axis. This encoder could be a master encoder used for master-slave gearing or an independent position or velocity sensor.
For reading encoders mapped to axes, you can call this VI on the axis or directly on its mapped encoder. For servo axes, both approaches return the same value as the Read Position VI. On stepper axes however, this VI can return additional useful information.
During axis set up, you can operate the closed-loop stepper axis in open-loop mode and use this VI to directly measure the counts per revolution and steps per revolution for the axis. These values must be loaded in advance for subsequent closed-loop operation. Refer to the Load Counts/Steps per Revolution VI for more information."
From the Read Position VI Help, while using open-loop stepper axes, the VI returns the number of steps generated. If you have any other questions, please create a new forum post.
Josh
Applications Engineer
National Instruments