LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DIGITAL I/O SETTINGS

Maybe your friend's stepper motor is different than yours, or you have different drivers. If he says it works, then there is nothing wrong with his code, except for bad wiring and having sequences buried in other sequences which is considered bad programming practice. His code is very hard to read because of all the sequence structures. I would suggest moving up to LV7.1 and taking advantage of the event structure. If you must use LV6.0, consider using a state machine. Search for examples on state machines.
Your friend's code may not be suitable for your stepper motor and driver. According to his code, sending a series of values 8 and 9 over the serial port will make the motor step to the right. Sending hex 80 and 90 (decimal 128 and 144) will make the motor step up. Sending hex A and B (decimal 10 and 11) will make the motor step to the left. What are the specifications of your motor? Does it use the serial port? Also, your friend's code has some sub vi's which were not included, so I don't know what they do. I would say that if this doesn't work for you, your motor does not use the same commands (8,9,80,90,A,B). Or maybe you serial port is set up wrong (baud rate, parity).
If you have opened it in LV7.0 and have NOT saved it, then you should be able to go back to LV6.0. If you have saved it, you must save it again using Save with Options to save to a previous version. You can only save to one previous version at a time, so to go from LV7.0 to 6.0, you must have LV6.1 and save from 7.0 to 6.1 and then from 6.1 to 6.0. Make a backup copy in 6.0 in case you accidentally save it to a newer version.
- tbob

Inventor of the WORM Global
0 Kudos
Message 31 of 42
(1,229 Views)
"According to his code, sending a series of values 8 and 9 over the serial port will make the motor step to the right"
Q1: I thought my friend was using the 6025E DAQ instead of the SERIAL port for the STEPPER?

"You can only save to one previous version at a time, so to go from LV7.0 to 6.0, you must have LV6.1 and save from 7.0 to 6.1 and then from 6.1 to 6.0"
Q2: I have LV6.0 and LV7.0. How do I get LV6.1?
0 Kudos
Message 32 of 42
(1,210 Views)
My friends program is designed to control TWO DIFFERENT stepper motors through the 6025E DAQ card.
0 Kudos
Message 33 of 42
(1,208 Views)
I would suggest you get your friends schematics of how he wired up his system. You cannot just hook up a stepper motor to a DAQ card to get it to move, you need a driver that at a minimum accepts a step and direction input. And there are different phase winding configurations for stepper motors. And if you try to step a motor too quickly or exceed the torque rating, it will stall. Have you even researched stepper motors, how they work, and how the driver works? For now I would advise that you just hook up a function generator and some logic switches (SKIP THE DAQ CARD ENTIRELY FOR NOW) to proof out your motor, driver, and wiring. In doing so you will also gain a better understanding of what you LV program and DAQ card need to do. Or better yet, just have your friend take over the entire job for you. Sorry for the cynicism there, but we do try to help out others (kudos to tbob) assuming that they take our suggestions and follow them out and at least have a basic knowledge of LV, DAQ, and the electrical hardware they are working with.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 34 of 42
(1,202 Views)
If you friend is using a DAQ and you are using the serial port, that is entirely two different scenarios. You cannot expect your friend's code to work. Your driver will be quite different than his. How does the receiving end handle the serial data? It must have some type of driver to convert the serial data into voltages used to step the motor. You must look at the documentation that comes with the driver and become totally familiar with what it expects before you try to tackle writing the Labview code. This is up to you. No one here can help without any knowledge of your system. Besides, this is a Labview forum, not a hardware forum. Learn your hardware first, then come here for Labview programming questions.
- tbob

Inventor of the WORM Global
0 Kudos
Message 35 of 42
(1,197 Views)
Your friend's program has both serial and daq functions. There are no comments inside the program, no schematics on the system, or any other kind of help. At this point, because it seems you don't understand how his program was used to control his steppers and I'm not convinced that you understand your system, the best source of help would be your friend.
0 Kudos
Message 36 of 42
(1,186 Views)
I have finally managed to MOVE the stepper motor. I added to more frames to the VI. I used hex numbers 3, 6, 12 & 9. It moves continuously. The power supply to the driveboard must be set at 5V. If more than 5V, the stepper stalls! Also it moves slowly in ONE direction in the MOTOR UP mode. It does not move at all , "NOT STALL" in the MOTOR DOWN mode. I have attached the new VI. I hope you guys can HELP me.
0 Kudos
Message 37 of 42
(1,175 Views)
As was said before, no one here can help you because we don't know anything about your stepper motor or controller. This is something YOU have to learn because you have the hardware. This is not a Labview problem, this is a hardware problem. YOU have to learn what it takes to control your motor. This is a LABVIEW forum, and your Labview code looks OK. You have to find what values to send to the motor. You won't find anyone here who will know this information.
- tbob

Inventor of the WORM Global
0 Kudos
Message 38 of 42
(1,160 Views)
I am sending information regarding one of the STEPPER MOTORS. This one only moves DOWN but not UP! The file is attached.
0 Kudos
Message 39 of 42
(1,139 Views)
The actuator in the previous post is the stronger one that can handle 88N. I am now attaching some information regarding the DRIVEBOARD.
0 Kudos
Message 40 of 42
(1,139 Views)