View Full Version : Sequences
just_wondering
03-02-2010, 19:25
We are trying to program the motor to go forward a certain speed and then go back. We put this in sequence and there is an error. Please help. The following attachment is our program
Greg McKaskle
03-02-2010, 22:22
The red X with two arrow heads point towards it indicates that two data sources are connected together. In this diagram, the constant produces data and so does the subVI outside the sequence.
What was the desired effect of connecting those together?
Greg McKaskle
Alan Anderson
03-02-2010, 23:11
Is this something like what you wanted? (Note that it doesn't feed the watchdog. You'll need to do that if you want to do things this way.)
however *don't quote me on this* if you put this in your teleop, or auto or whatever you are putting it into, you can't use a wait vi because it halts the rest of your program. I wrote a state machine to do this so that the code continuously loops, but can still be timed. If you want some more info, go to LVmastery.com and look at the state machine tutorial.
just_wondering
05-02-2010, 16:09
Is this something like what you wanted? (Note that it doesn't feed the watchdog. You'll need to do that if you want to do things this way.)
That is what I wanted thanks!!! :)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.