Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   error in Autonomous independent when using "run as startup" (http://www.chiefdelphi.com/forums/showthread.php?t=81719)

Team1824 02-02-2010 14:47

error in Autonomous independent when using "run as startup"
 
Every time our team tries to deploy the labview code to the cRIO via "run as startup" I get an error saying that several VIs are part of a Real-Time Startup application and all VIs on the target will be closed if we continue. Autonomous independent is one of these. If I just hit okay the code will deploy and run as it should, but the autonomous independent does not work.

What should I do???:confused:

Tom Line 02-02-2010 14:55

Re: error in Autonomous independent when using "run as startup"
 
Hit "OK". This is just telling you that you already have code running on the CRIO - it's the code you deployed last time around. This is a bit like the Windows warning - "Do you want to overwrite this file".

It's technical and scary looking, but harmless since you already know you want your new code on the Crio and not your old code.

Team1824 02-02-2010 15:07

Re: error in Autonomous independent when using "run as startup"
 
So this is definitely not the reason my code is not working? it seems that the code is set up properly but nothing happens when I tell the driver station to use the Autonomous code.

Alan Anderson 02-02-2010 15:39

Re: error in Autonomous independent when using "run as startup"
 
What you described in the first post is not an error message. It's a warning that you're about to halt the program that is presently running in the cRIO so that you can replace it with a new program.

If you want help in understanding why your Autonomous code isn't working, show us what you have.

Team1824 02-02-2010 15:52

Re: error in Autonomous independent when using "run as startup"
 
2 Attachment(s)
okay here is the autonomous code.

Mark McLeod 02-02-2010 19:40

Re: error in Autonomous independent when using "run as startup"
 
Have you checked that Robot Main.vi actually calls Autonomous Independent.vi?

Greg McKaskle 03-02-2010 09:02

Re: error in Autonomous independent when using "run as startup"
 
Check Begin.vi to see if the enumeration selector is set to run the Autonomous Independent or simply the iterative.

Also, leave the Auto Independent window open and run your code from the project by pressing the run button on Robot Main. You should see the Autonomous VI called, see the run arrow on the autonomous Independent window fill in, you could set a break point, add probes, etc.

Determine whether the Auto is being called, but isn't behaving properly, or is not being called.

Greg McKaskle

Joe Ross 03-02-2010 09:13

Re: error in Autonomous independent when using "run as startup"
 
What do you expect Autonomous independent to do?

hamosad1657 03-02-2010 12:52

Re: error in Autonomous independent when using "run as startup"
 
When you finished the code building, did you saw a "Building is complete" message?
When my team was beta tester, we met a problem with the Autonomous independent during the code building, and we solved it successfully. So give more details about the error

Good night from Israel :)

Team1824 04-02-2010 16:02

Re: error in Autonomous independent when using "run as startup"
 
Yes the autonomous independent is being called in the begin.vi. What the code is supposed to do is use the default auto independent code to center the target and then move forward. However the camera is not hooked up so is that the problem? I was assuming that it would simply skip the camera code and go right to the movement code but I guess that might not be the case...?

Joe Ross 04-02-2010 17:24

Re: error in Autonomous independent when using "run as startup"
 
Quote:

Originally Posted by Team1824 (Post 913420)
Yes the autonomous independent is being called in the begin.vi. What the code is supposed to do is use the default auto independent code to center the target and then move forward. However the camera is not hooked up so is that the problem? I was assuming that it would simply skip the camera code and go right to the movement code but I guess that might not be the case...?

It won't move unless it sees the target.


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

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