Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Sequences (http://www.chiefdelphi.com/forums/showthread.php?t=81834)

just_wondering 03-02-2010 19:25

Sequences
 
1 Attachment(s)
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

Re: Sequences
 
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

Re: Sequences
 
1 Attachment(s)
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.)

jmanela 05-02-2010 08:24

Re: Sequences
 
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

Re: Sequences
 
Quote:

Originally Posted by Alan Anderson (Post 912997)
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!!! :)


All times are GMT -5. The time now is 11:48.

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