QUOTE
You need a driver. Occassionally motors have built-in controllers, in which case you would need a power supply.
You can take a look here for some motion controller products: http://www.ni.com/motion/stepper.htm
The other option is to use a third-party motion controller (i.e. Baldor, Yaskawa, etc.) and communicate with it via RS-232 or something similar.
QUOTE
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?
Your controller will come with documentation and software utilities to help you program your motion. If you use a NI motion controller, you can access the NI-Motion functionality from LabVIEW or MAX.
QUOTE
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?
The interface software will allow you to program move commands. Usually you specify in motor counts; so if your stepper has 8000 counts, you would move 2000 counts to get 90 degrees.
QUOTE
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?
Look for a motion enable pin input and connect it to a digital IO from your connector block.