Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use an encoder to correctly position a stepper motor?

We have a microscope micropositioning stage from madcity labs, like so http://www.madcitylabs.com/microstage.html.  This is supplied with a NI PCI 7334 motion control card and external unit which houses the stepper motor controller and electronics for the encoders.  This is all up and running correctly - however the labview VI and exe provided steps the motors in open loop.  This has been accompanied by some error (as much as 5 micrometers) between the commanded position and the position reported by the encoders.  I understand how the open loop control labview VI works.  What I would like to do is take advantage of the encoders reported values on order to close the loop and step the motors until they are within a predefined distance of the desired position.  Because I am new to labview I'm not sure how to go about this and was hoping to find perhaps example labview 'code' or even complete VIs that achieve this kind of thing.  Thanks!


0 Kudos
Message 1 of 2
(3,531 Views)
There is not any difference in the programming when using an open-loop or a closed-loop stepper with LabVIEW. In fact you just need to configure your motion settings in MAX and you are done.
Please have a look at this document in our knowledge base which should help you to set the correct parameters for your closed-loop configuration.

Best regards,

Jochen Klier
National Instruments
0 Kudos
Message 2 of 2
(3,524 Views)