View Full Version : Is this the correct way to move a motor forward then back in labview?
Ragingenferno
19-02-2014, 09:34
I'm trying to make a motor move forward then pause then go backwards all with one press of a button in lab view. I think I figured it out but i'm not to sure if I did it correctly.
Mark McLeod
19-02-2014, 10:28
Don't you want it to stop at the end?
What you have will work do something, but after the first button press the motor will always be left running.
The Flat Sequence Structure isn't normally done as three separate, individual structures.
Normal usage is to have a single Flat Sequence Structure, right click on a side edge and choose Add Frame After to add another frame.
nxtmonkeys
19-02-2014, 11:30
To make a flat sequence structure, you right-click on the first panel and then a little windowish thing pops up. click on "add frame after" and you will have two frames.
Good Luck!
Ragingenferno
19-02-2014, 13:17
Okay, I think i fixed it. Is it perfect now?
nxtmonkeys
19-02-2014, 13:21
It will work, but I was just told that sequence structures don't do well in teleop. I heard that they work best in the periodic tasks VI. Here is a pic of what it may also look like.
http://www.chiefdelphi.com/media/img/173/1732f05be5ce32f723f05c36a814bb8d_l.jpg
Mark McLeod
19-02-2014, 14:19
Okay, I think i fixed it. Is it perfect now?
Now it would run once, then never run again.
The Close should not be used.
Instead, add a frame at the end to set the motor to 0 speed.
nxtmonkeys
19-02-2014, 14:23
Now it would run once, then never run again.
The Close should not be used.
Instead, add a frame at the end to set the motor to 0 speed.
Mark is right.
Ragingenferno
19-02-2014, 15:27
II heard that they work best in the periodic tasks VI.
Yes, I already have it in periodic task. Thanks for the example.
add a frame at the end to set the motor to 0 speed.Now I got to add the 0 to the set output. Thanks.
nxtmonkeys
19-02-2014, 16:43
You are welcome.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.