Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Basic Robot Main vi (http://www.chiefdelphi.com/forums/showthread.php?t=75140)

chinckley 23-02-2009 13:33

Basic Robot Main vi
 
If we are not using cameras, do we delete the second and third while loops showing in the Basic Robot Main vi?

Is there a need for them? Will they hurt anything if we leave them there, but are not uing them?

Shivang1923 23-02-2009 14:12

Re: Basic Robot Main vi
 
As far as i know...it should not cause any issues. Just make sure you delete the camera open.vi as well as the camera close.vi and I think it should all work fine.

adamdb 23-02-2009 18:29

Re: Basic Robot Main vi
 
We used the timing loop, but deleted the whole camera loop. Seems to work fine and is faster when doing the "trace execution" on the PC, since it has one less loop to go through.

chinckley 23-02-2009 21:17

Re: Basic Robot Main vi
 
Quote:

Originally Posted by adamdb (Post 826980)
We used the timing loop, but deleted the whole camera loop. Seems to work fine and is faster when doing the "trace execution" on the PC, since it has one less loop to go through.

What is the timing loop used for?

adamdb 02-03-2009 01:31

Re: Basic Robot Main vi
 
We put a 1 second delay inside the timing loop and increment a global counter in the timing loop. In the autonomous code we can read the global variable to see how many seconds have passed since autonomous started. We use this for timing movements during autonomous.

Greg McKaskle 02-03-2009 09:09

Re: Basic Robot Main vi
 
That certainly works, but if you would rather, you can put your time comparison directly in the auto. If you place a GetTime function at the beginning of your auto, and another inside your loop or other places in your code, you just subtract to get your elapsed time.

Greg McKaskle

gwytheyrn 02-03-2009 11:25

Re: Basic Robot Main vi
 
You could use the structure posted
http://www.chiefdelphi.com/forums/sh...5&postcount=13. That make the loop run for 15 seconds and it will also monitor the amount of time elapsed in ms. This gives you a little more resolution and allows for a smaller step if you're trying to ramp based on time

lynca 03-03-2009 15:54

Re: Basic Robot Main vi
 
This thread also posts multiple versions of autonomous,

http://www.chiefdelphi.com/forums/sh...590#post828590


All times are GMT -5. The time now is 04:39.

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