Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

stepper motor

I have a labview program for controlling a stepper motor and allthe necessarry hardware. When I run the labview program there are no errors. However the motor does not move. A friend suggest to run MAX AUTOMATION but I have not. I am concerned if I run MAX I might damage the computer and corrupt the present configuration. I have connected STEP< DIRECTION< PRESET AND CLOCK from the drive board to four DIO. I have not specified that in MAX. What shall I do?
0 Kudos
Message 1 of 6
(3,663 Views)
Hello,
First of all, Measurement & Automation Explorer (MAX) will not damage your computer or corrupt any configuration information. MAX is a great resource for testing inputs and outputs on your data acquisition device (what device do you have?). As far as controlling the motor, that is dependent on the signals needed by your hardware. It looks like you might want to use a counter to produce a pulse train output for your CLOCK signal, and possibly digital signals for your other terminals. What LabVIEW program are you using? What outputs are being controlled? Where did you get the program? All the additional information you could provide would be helpful to fully understanding your issue.
-Alan A.
0 Kudos
Message 2 of 6
(3,636 Views)
I got the program in labview 6.0 from a friend who used it to run a stepper motor. I believe pin 25,27,29 and pin 31 on the DAQ board are for STEP, DIRECTION, PRESET and CLOCK. Actually how to assign those pins to the various functions? Is it done by MAX or labview programing?
0 Kudos
Message 3 of 6
(3,633 Views)
MAX gives you a very useful but limited ability to manipulate your DAQ board's i/o signals. It's often used in place of a full-fledged user program during initial setup and later during troubleshooting because it provides an NI-controlled interface to the DAQ hardware that isn't corrupted by possible user programming bugs. I think you probably ought to use MAX first to work out all the appropriate signals and connections before trying to use your friend's program.

You'll also need to understand the basic principle of operation for your friend's program and the stepper driver board. If you're using a different motor or driver, you may have incompatibilities.

What DAQ board do you have? Who makes the drive board? The signals you mentioned (STEP, DIRECTION, PRESET, and CLOCK) are not a familiar set to me. DIRECTION is very likely a digital bit to determine whether to step CW or CCW. Either STEP or CLOCK (or both?) should probably be a counter pulse train. I've usually seen either one or the other word used in a stepper interface, but not both at once so I'm not sure what's up with that. I really couldn't guess what function PRESET means. And you'll also need your digital GROUND or RETURN connection(s).

As for "assigning pins" to the functions: I would approach it a little differently. The issue is that you can't arbitrarily assign any old signal to any old pin. For example, some pins are for analog input and you can't generate digital bits on them.
So..... First determine what kind of signals you need for each functions (digital bit?, counter pulse train?), then find out which pins from you DAQ board can produce the right signal, and finally wire them up. At that point, you can choose either MAX or LabVIEW programming to put signals onto those pins. MAX will be best for initial testing, but the final app almost always needs to be based on programming.

-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 6
(3,616 Views)
Can MAX move a stepper motor? If so how?
0 Kudos
Message 5 of 6
(3,560 Views)
As mentioned earlier in this thread, MAX is a great place to configure and test your inputs and outputs. It is not meant to be a development environment. If you have a multifunction DAQ Device, you will probably need to do some programming (LabVIEW or otherwise) to control your stepper motor.
-Alan A.
0 Kudos
Message 6 of 6
(3,435 Views)