Go to Post IRI: it's FIRSTmas in July! - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2011, 21:46
pedro123 pedro123 is offline
Registered User
FRC #3803
 
Join Date: Feb 2011
Location: USA
Posts: 9
pedro123 is an unknown quantity at this point
Exclamation LabView Combining Autonomous and TeleOp

Hi, we are a rookie team and we had a very important programming issue but we couldnt find anything to deal with it.

So, we have our autonomous code and teleop code made in two separate files with just the plane code needed to do everything we want our robot to do.. but through our experience, you need to upload the code everytime you wanna run it (for us).. we cant upload the code, turn the crio off, and run the program again without uploading the code all over again.

We saw the frcmastery.com videos but they dont tell us how to combine our teleop and autonomous code into one file that STAYS on the crio and runs even when we reboot the crio. So, I was wondering if anybody could help us with combining the two codes.

Also, on a side note, the code for sending live images from the camera to the dashboard, does that go on the autonomous and teleop files, or do we have to put it somewhere else.

Thanks a lot for your help!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2011, 21:56
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabView Combining Autonomous and TeleOp

At the bottom of the project window is a Build and Deployment folder. Open it and it contains a startup deployment already built for you. Right click and build. After that succeeds, right click and Run as Startup. It will download and reboot the cRIO. For quick development you can still do the run button execution the way you have, and this deployment is for the boot-up.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2011, 15:58
pedro123 pedro123 is offline
Registered User
FRC #3803
 
Join Date: Feb 2011
Location: USA
Posts: 9
pedro123 is an unknown quantity at this point
Re: LabView Combining Autonomous and TeleOp

Got it, thank you very much!

I just have one more question, we NEED to connect the crio to the laptop through an Ethernet cable to upload the code, right? I know after uploading it, you can control it wirelessly through the radio but I just want to make sure you can upload the code only by tethering it.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2011, 16:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabView Combining Autonomous and TeleOp

You can do everything through the wireless connection.

It's a good idea not to try re-imaging the cRIO wirelessly, since a loss of the connection can end up making you go through extreme exercises to recover from the event, but deploying software over the wireless link is both possible and expected.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2011, 16:34
pedro123 pedro123 is offline
Registered User
FRC #3803
 
Join Date: Feb 2011
Location: USA
Posts: 9
pedro123 is an unknown quantity at this point
Re: LabView Combining Autonomous and TeleOp

Oh, but everytime I try to run in LabView and the software tries to upload the code but it says no Real Time connection and then I have to connect and upload the code then.. Can you help me out?
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2011, 19:40
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Re: LabView Combining Autonomous and TeleOp

is it a problem with your jip address? have you run wirelessly before? try setting your computers ip address to 10.xx.yy.9
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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