NI Home > Community > NI Discussion Forums
Reply
Member
Cutter
Posts: 22
0 Kudos

Controlling a stepper motor with LabVIEW?

I would like to control a stepper motor with LabVIEW 6.1.  Does anyone know if there are any vi's out there that I can download to control a stepper motor?
Active Participant
Will.D
Posts: 621
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

I'm not sure I understand what you're asking...  LabVIEW itself cannot control a stepper motor.  It can control the hardware used to control the stepper motor, but not the motor itself...

What hardware are you using to interface between the motor and the computer?
Member
Cutter
Posts: 22
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

I am using a DAQPad-6020E.  I figured that LabVIEW would be able to make a "virtual" driver.
Trusted Enthusiast
falkpl
Posts: 2,330
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

There are many ways to control a stepper motor from labview, but you need a hardware stepper motor controller to communicate with from labview.  The controllers vary greatly depending on the application, could you post more details, ie motor type, resolution speed needed, type of application etc... I have done a few applications which controlled a steppers in the past, where labview served as the motion control and interface to a stepper motor system. 
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Member
Cutter
Posts: 22
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

Actuator:  Ultra Motion Bug Linear Actuator
                Stepper Motor:  HT23
                Step Resolution:  7200 step/inch
                Pitch:  0.0833 inch/rev
              
Member
Cutter
Posts: 22
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

Actuator:  Ultra Motion Bug Linear Actuator
                Stepper Motor:  HT23
                Step Resolution:  7200 step/inch
                Pitch:  0.0833 inch/rev
               
Member
Cutter
Posts: 22
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

oops... I clicked tab which jumped the curser to the "Submit Post" accidently.
 
Actuator:  Ultra Motion Bug Linear Actuator
                Stepper Motor:  HT23
                Step Resolution:  7200 step/inch
                Lead Screw Pitch:  0.0833 inch/rev
 
The application it is being used for is the loading and unloading of a test specimen to determine material characteristics.
Active Participant
Will.D
Posts: 621
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

See the problem is, you need something to output the pulse train.

Right now I'm using LabVIEW to write an acceptance test for a stepper motor, but I'm using a Galil servo/stepper PCI card in the computer, connected to an Anaheim Automation stepper driver, which outputs the pulse train.

LabVIEW can generate a pulse train, but it has to be able to tell some piece of harware to actually output that signal.  As falkpl was saying, you can use LabVIEW as the interface to something like a stepper driver, but you need the hardware to do the work of outputting the highs and lows.
Member
Cutter
Posts: 22
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

I have an Applied Motion Driver (3540i) which I used to use to drive the stepper motor through a program called SI Programmer, although that program has limited options for control.  I figured that labview alone could act as the driver, giving me more options.  I guess I need to have labview "talk" to the driver in some way to control the stepper motor.
Trusted Enthusiast
falkpl
Posts: 2,330
0 Kudos

Re: Controlling a stepper motor with LabVIEW?

Two ways I had controlled stepper motors in the past is:
1.  The cheaper method: I used a pontech stp100 stepper driver (>$100)- this is a serial communication stepper motion controller, you can send the serial commands to program the motor and communicate with it through labview and VISA.
2.  I controlled many motors from compumotor with their own motor drivers which took a pulse train (each pulse caused a step of the motor) and controlled the steps from a 6602 counter/timer card and labview to provide the logic and user interface to the motors (there was feedback and sensors involved with this project).
Neither was very difficult and both were developed with labview 5.0 and 6.1 so I know you can do control with the software you already have.
Hope this helps some,
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA