Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Is this the correct way to move a motor forward then back in labview? (http://www.chiefdelphi.com/forums/showthread.php?t=126835)

Ragingenferno 19-02-2014 09:34

Is this the correct way to move a motor forward then back in labview?
 
1 Attachment(s)
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

Re: Is this the correct way to move a motor forward then back in labview?
 
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

Re: Is this the correct way to move a motor forward then back in labview?
 
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

Re: Is this the correct way to move a motor forward then back in labview?
 
1 Attachment(s)
Okay, I think i fixed it. Is it perfect now?

nxtmonkeys 19-02-2014 13:21

Re: Is this the correct way to move a motor forward then back in labview?
 
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.


Mark McLeod 19-02-2014 14:19

Re: Is this the correct way to move a motor forward then back in labview?
 
Quote:

Originally Posted by Ragingenferno (Post 1346149)
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

Re: Is this the correct way to move a motor forward then back in labview?
 
Quote:

Originally Posted by Mark McLeod (Post 1346231)
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

Re: Is this the correct way to move a motor forward then back in labview?
 
Quote:

Originally Posted by nxtmonkeys (Post 1346155)
II heard that they work best in the periodic tasks VI.

Yes, I already have it in periodic task. Thanks for the example.

Quote:

Originally Posted by Mark McLeod (Post 1346155)
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

Re: Is this the correct way to move a motor forward then back in labview?
 
You are welcome.


All times are GMT -5. The time now is 08:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi