Chief Delphi

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

tilky 14-01-2012 13:42

Test Code
 
How do we test code on the robot without building and running as startup. We want to see if the code will work how we want to without erasing the previous code off of it.

RufflesRidge 14-01-2012 13:47

Re: Test Code
 
Open Robot Main.vi and press the "play button" near the top left of the window.

tilky 15-01-2012 22:05

Re: Test Code
 
is that it. i thought we tried that but it didn't work. there isn't anything we have to do after that?

RufflesRidge 15-01-2012 22:14

Re: Test Code
 
Quote:

Originally Posted by tilky (Post 1106450)
is that it. i thought we tried that but it didn't work. there isn't anything we have to do after that?

Click through any warnings or windows that pop up. Make sure you are using Robt Main, not teleop or autonomous.

Alan Anderson 15-01-2012 23:46

Re: Test Code
 
Quote:

Originally Posted by tilky (Post 1106450)
i thought we tried that but it didn't work.

What did it do instead of what you expected?

zaphodp.jensen 15-01-2012 23:50

Re: Test Code
 
If you use the teleop or autonomous, the code executes once, because it is not in a loop. By running robot main, the code sits in the actual game code loop.

By pressing the play button, it only disables the startup code, and runs your code in its ram, so when you restart the robot, the code disappears, and no harm is done.

whcirobotics 16-01-2012 07:39

Re: Test Code
 
Try to have the "Projectexplorer" and robot main open. Then run it. It should work

tilky 16-01-2012 08:26

Re: Test Code
 
thank you so much!!! i was using teleop (which is why it wouldn't work). i tried to run continuosly, but since none of the refnames were set, it didn't know what to do. thanks again!


All times are GMT -5. The time now is 09:36.

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