07-19-2006 04:09 AM
07-19-2006
06:03 PM
- last edited on
11-12-2025
03:34 PM
by
Content Cleaner
Dan:
You cannot typically drive a stepper motor with analog signals. You need a device called a driver which is a circuit that applies power to the motor windings in a proper sequence. Such drivers typically accept digital signals- one for selecting the direction of rotation, the other to control speed of rotation. The speed signal is typically a pulse train created by a timer/counter on the DAQ card (offhand I do not know if the 6015 has timer/counters, check your manual). The other option is to toggle a digital output line on and off with software timing- not 100% accurate and has an upper speed limit of less than 1000 Hertz. Hope I haven't bamboozled you with a lot of jargon.
Here is a brief tutorial on steppers:
http://zone.ni.com/devzone/conceptd.nsf/webmain/786DCA29F029AE588625688600517B15
Numerous people have used LabVIEW with both methods above to drive steppers. You need to find out what driver is suitable for your motor from the manufacturer, they are not that expensive. Some drivers even connect to the serial port. You can also build your own if you have the capabilites.
We need to know a little bit more about your motor and your intended application.
07-20-2006 03:56 AM
07-20-2006 10:24 AM
07-21-2006 11:29 AM
07-24-2006
04:15 AM
- last edited on
11-12-2025
03:35 PM
by
Content Cleaner
Hi Dan,
You may be able to do this with your DAQPad 6015 but it will depend on the specifications of the drive. You should find out what current level is required to control the drive. The AO of the 6015 is only +/-5mA so if it's any more then that you will need some additional circuitry to generate the necessary current.
It might be best if we spoke so I can determine how you will be able to control this motor. I think you will just need to generate some code to control the DAQ card but I'm not exactly sure what you will need.
For example if you want to move it to a specific position you may want some feedback in the form of an encoder on the motor that keeps track of how far the motor has moved.
I believe I sent you an email on friday (is your name Dan Zhao?). If you call in to our office on 01635 572400, ask to speak to Sarah and quote the reference number in the subject of the email. We can go through the details of your system on the phone and I can figure out what you need to be able to control your motor.
Kind regards,
07-24-2006
04:47 AM
- last edited on
11-12-2025
03:37 PM
by
Content Cleaner
Hi,
as nobody has done this before, I just want to add some comments to this thread:
DAQ boards are primarily designed for measurement tasks. They can be used for control tasks, too but this typically requires the use of a real-time system. This is also necessary if there is no control loop involved but other real-time tasks like monitoring limit-switches and following error.
Controlling a motor is much easier by using a motion control board. These boards take care of all real-time tasks onboard and it's much simpler to command the motor. E. g. for a straight line move you just need to load parameters for acceleration, velocity and target position. Then you send the start command to the motor and the rest is done by the board.
Here is an example of a simple straight move with position monitor:
A motion control board might be slightly more expensive than a DAQ device but the price difference pays off quickly by saving a lot of time when developing the application.
Best regards,
Jochen Klier
National Instruments Germany
Message Edited by Jochen on 07-24-2006 11:50 AM
07-24-2006 05:00 AM
07-25-2006 06:02 AM - edited 07-25-2006 06:02 AM
Message Edited by 128 on 07-25-2006 06:04 AM
07-25-2006 06:13 AM