Chief Delphi

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

Mark McLeod 23-02-2009 19:15

Re: Autonomous
 
Yes, you can just highlight everything and paste it a couple of times.
Just like the three separate loops in Basic Robot Main.vi
Do make sure that only one of the loops is active at any time. It could get pretty random if two were active at the same time.
An alternate is to drop all three into an enumerated case statement, so only one can possible be active.

In Basic Robot Main.vi you can delete the camera and periodic loops if you aren't using them.

chinckley 23-02-2009 21:14

Re: Autonomous
 
Quote:

Originally Posted by Mark McLeod (Post 827000)
Yes, you can just highlight everything and paste it a couple of times.
Just like the three separate loops in Basic Robot Main.vi
Do make sure that only one of the loops is active at any time. It could get pretty random if two were active at the same time.
An alternate is to drop all three into an enumerated case statement, so only one can possible be active.

In Basic Robot Main.vi you can delete the camera and periodic loops if you aren't using them.

What does the periodic loop do?
We are not using a camera.

I'll try turning two off as I am not sure how to do the enumerated case statement yet. More lessons to learn...

Mark McLeod 23-02-2009 22:37

Re: Autonomous
 
The periodic loop doesn't do anything the way it comes.
It's an empty template for users to see how to add something that requires a very regular, timed period. Something that has to be clocked, such as, collecting sensors requiring a particular frequency or oscillation. Feedback control loops might require a regular period to work predictably.

Doing the three loops is a good place to start. It's easy to visualize what's going on. An enumerated case is a variation on that, but time enough for that later. These three loops can easily be moved into a case statement at a later time.

P.S.
The next step would be to convince you to add a 3-position switch to your robot, so you can decide on the fly...


All times are GMT -5. The time now is 21:35.

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