Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

how to run a stepper motor for an amount of time determined by a feedback?

Hi,

 

I'm using labview 8.6 and I'm trying to use a ORIEL sterppermike with a 20025 controller.

 

I have implemented a VI that has a stack of commands in a for loop. Every loop has the following sequence of commands:

command 1) start the stepper

command 2) wait for feedback to reach a certain number

command 3) stop the stepper

command 4) wait a certain time before starting again 

 

To start the stepper I use a subvi from the example folder:  

C:\Program Files\National Instruments\LabVIEW 8.6\examples\DAQmx\Counter\generate pulse.llb

--> Gen Dig Pulse Train-Continuous.vi

 

I don't understand why the sequence get stuck at command 1 and never gets to command 2.

 

I attach the vi for completeness. 

 

Thanks to anyone that will help,

 

 

Matteo 

0 Kudos
Message 1 of 3
(3,918 Views)
0 Kudos
Message 2 of 3
(3,901 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 3 of 3
(3,294 Views)