Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

stepper motor positioning system

Hello

 

Iam building a positioning control system using a stepper motor. using labview.and I am planning to use an encoder to feedback the position. 

Iam not using any sophisticated software like motion controller, it is just a school project that Iam working on it. In using a school's lab, it is equipped with labview and NI ELVIS with a built in DAQ.

 

I have created VI in the labview that takes the input angle from the user and outputs the series of pulses to turn the motor to a used specified angle. I know that I can operate the motor in full step and half steps. the VI I've created in labview can also control the frequency of the pulses that are to be applied to the stepper motor. Iam also going to attach some kind of load like a piece wood. Now the question i have is- if the motor misses an steps and the encoder shows me an error--then in this what will I need to do to correct the position error. 

 

Thanks

SK 

0 Kudos
Message 1 of 4
(5,587 Views)

Hi, I'm not sure whether this is the right place for asking this question or not and if not, then please guide me to the right place for asking such question. Thanks.

I have a stepper motor with the Vector Network Analyzer Anritsu MS4623B. I got it up and running with the LabWindows/CVI. I need to sync the motion of the stepper motor with my data acquisition. Basically, I have to acquire the data in a way that in the start the motor will come back to home position wherever it was and then I want to move it to the specific position to do the measurements (For Example, I want to measure the 40 GHz channel between 1m to 3m movement of a stepper motor on a linear positioning system (ball-screw)). I've interfaced the VNA with the PC using LabWindows/CVI and I've controlled the clockwise and anti-clockwise movements of the stepper motor using LabWindows/CVI but I'm unable to sync the system in a way that whenever I run the code, the motor will run back to the home position and then move to a specific measurement start position and move till the end position and in between do the increment and stop and acquire the data. Is there any one to help me please? It's really urgent please and I'm doing this thing first time so please guide me in a proper way. I shall really apprecaite that and will be highly obliged with you. Thanks for your time and concern.

 

Thanks and Regards.

:smileyhappy:

0 Kudos
Message 2 of 4
(5,019 Views)

Hi,

 

First, more people will see your post if you start a new thread.

 

What you are asking to do seems to be just a set of steps the code needs to run through, i.e. go home, go to point X, move delta X, acquire data, move delta X acquire data, stop when it reaches a certain point.  This is just an algorithm you need to implement using the clockwise/counterclockwise controls you said you were already using.

 

Here is the pseudo code based on what you have said:

 

Move motor home

Move motor to point X

Loop

move delta x

aquire data

end loop when X == ?

 

Regards,

 

Greg H.

Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(5,007 Views)

Thanks for your reply Greg, but I've already made the pseudo code, but I need help in making a fully fuctional code as I'm having it real difficult to automate this process and also unable to find any proper guide in this regard, so can you please visit to my thread, as all the details I've mentioned there as follows: http://forums.ni.com/t5/LabWindows-CVI/Controlling-stepper-motor-using-LabWindows-CVI/td-p/1943859 Please read the details and kindly try to help me as much as you can. I shall really appreciate that and will be highly obliged to you. Thanks in advance. Smiley Happy

0 Kudos
Message 4 of 4
(4,995 Views)