03-11-2008 10:00 AM
hi guys i am new to labview and in need for your guidance.
i am currently doing a project which require me to control a set of DC motor using usb 6009 and also a stepper motor(for positioning)
The dc motor is just to move in forward and reverse direction. while the stepper motor movement is to move clock wise at an interval of 90 degrees.After finishing 360 degrees, the stepper motor will rotate counter clock wise and back to its starting position.
The basic functionality: A turn table is secured on a stepper motor.The stepper motor will position the turntable at an interval of 90degrees.When the desire position is reach( at 90 degrees) , the DC motor will then turn on. This cycle will continue for 360 degress at an interval of 90 degrees. After that, the stepper motor will rotate counter clock wise and back to its starting position.
i have look gone throught most of the introduction materials about labview but still does not know how to start the program using labview for my application.
i hope you guys can help get me started by giving me some pointers or any sample block diagram for me as a reference.To help me get started.
thanks alot guys!!!
03-12-2008 01:18 PM
03-13-2008 10:23 AM
thanks nate,
i am now using BNC-2110 to control multiple DC motor.
i got some Questions, hope you can help me. some Questions may sound silly as i am still new to all this.
1.Is it possible to use BNC-2110 to control Nema 34 stepper motor directly using labview? or i still need a driver to control the motor.
2.How to design a program to control the stepper motor? since my application is just to rotate the stepper motor CCW and CW at an interval of 90 degrees? how to generate the pluse? i have look through some examples. most of the program uses array. i wonder is it possible to send me any reference program so i can work on it?
3.similar to Question 2, i need to turn the stepper motor at angle of 90 degrees, using labview. how do we achieve the 90 degrees?
4.For the control of DC motor, which is just to turn on and off, how can i achieved it? i try setting the DIQ max and use it to run the DC motor. but cant work? is there any reference program so i can work on it?
thanks for your help.
03-13-2008
01:14 PM
- last edited on
04-25-2024
03:53 PM
by
Content Cleaner
Hi happy,
The BNC-2110 is actually the connector block for connecting signals to your DAQ card. Which DAQ card are you using with the BNC-2110 (what is it cabled to)? The same restrictions I mentioned in my previous post still apply with any DAQ card, to controlling a servo or a stepper motor. You will still need a controller and a drive.
Which examples have you looked through? Were they specific to motion control? If you want to take a look at some good examples of how motion control with steppers or servos is normally done, download the NI-Motion driver from ni.com. Once you have installed the driver, browse from the NI Example Finder to Hardware Input and Output>>Motion Control and you will find a whole list of examples.
To achieve a specific move with either a stepper or a servo motor with the NI-Motion driver, you would specify a position in counts, and then use the #counts/rev specification to determine how many rotations or degrees you want to travel. The driver will take care of all the low level configuration and setup based on which board ID (controller) and axis you specify.
To complete a motion application with a DAQ card, you would essentially have to write your own driver. Even simple moves would require complex LabVIEW applications compared to using the NI-Motion driver and motion control hardware.
I hope the above information and examples prove helpful.
Best Regards,
~Nate
03-14-2008 11:25 AM
03-14-2008 11:52 AM
03-14-2008 12:01 PM
03-15-2008
12:19 AM
- last edited on
04-25-2024
03:54 PM
by
Content Cleaner
03-17-2008
09:57 AM
- last edited on
04-25-2024
03:54 PM
by
Content Cleaner
Hi happy,
You are going to need a card that is capable of handling the input signals that you expect (IR sensor input, motor feedback for each motor), and providing the output voltage signals to your amplifiers to control the 5 motors. The card that you listed only has 2 analog outputs, so it won't work if you require one analog output channel per servo motor. Without knowing how exactly your IR sensors work, or the specs on your motors I would say you need:
Stepper:
4 digital output lines (one for each coil, assuming you have a 4 coil stepper motor)
1 counter input for quadrature encoder feedback
Servos:
4 analog output lines, each going to a separate amplifier circuit
4 counter inputs for quadrature encoder feedback from each motor
IR:
4 digital inputs (I'm not sure what signals your IR sensors return, but you can determine the channels necessary for these)
You would have to create your own custom LabVIEW code to control all the above channels.
The closest thing I found to fit your needs was the M-series 6229. This card has all the digital and analog channels you would need, but only has 2 counters.
OR
You could purchase a motion controller such as the PCI-7356. This card could handle all of your motor control and feedback needs, as well as the DIO and analog input you will need to take data from your IR sensors. The feedback and trajectory generation is built in with this card. You would have to write all that code yourself is you used a DAQ card. You can also interface this card with the 2 different drives (one for the stepper and one for the servos).
Are you sure you are up to the very large programming task that all this motion control with a DAQ card would entail? I would not want to do it, unless that was the focus of my project and not a tool to get my project up and running.
Best Regards,
~Nate
03-18-2008 09:36 AM