|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Is this the correct way to move a motor forward then back in labview?
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.
|
|
#2
|
|||||
|
|||||
|
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 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. Last edited by Mark McLeod : 19-02-2014 at 13:20. |
|
#3
|
||||
|
||||
|
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! |
|
#4
|
||||
|
||||
|
Re: Is this the correct way to move a motor forward then back in labview?
Okay, I think i fixed it. Is it perfect now?
|
|
#5
|
||||
|
||||
|
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.
![]() |
|
#6
|
||||
|
||||
|
Re: Is this the correct way to move a motor forward then back in labview?
Yes, I already have it in periodic task. Thanks for the example.
Now I got to add the 0 to the set output. Thanks. |
|
#7
|
||||
|
||||
|
Re: Is this the correct way to move a motor forward then back in labview?
You are welcome.
|
|
#8
|
|||||
|
|||||
|
Re: Is this the correct way to move a motor forward then back in labview?
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. |
|
#9
|
||||
|
||||
|
Re: Is this the correct way to move a motor forward then back in labview?
Quote:
Mark is right. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|