Go to Post Will.I.Am is not FIRST. - BrendanB [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 07-03-2012, 22:14
kws4000's Avatar
kws4000 kws4000 is offline
Team Mentor - Programming
AKA: Krazy Karl
FRC #2405 (Divided by Zero)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Fruitport, MI
Posts: 164
kws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the rough
Re: Saving robot code to use on another computer

Well, follow this order:

1) Copy any custom VIs you created and transfer them to an easy to find directory. If you didn't, great! If you did, great! Several teams don't bother with them because they can't see all of the code at one time.

2) Identify where you saved the Robot Project. Copy the ENTIRE FILE, and put it somewhere where you can find it.

3) Open the project, and direct LV to find any missing VIs. Save it. It should now work just fine.

Option B: Stare at both computers and copy the code object for object.

FYI, I would not recommend doing it on the DS, it's too slow for even processing the Kinect.
__________________
Mentoring:
1) Educating students on the ability to learn and have fun at the same time.
2) Giving back to those who made you who you are.

2009-2011 Student 2405 Electrical/Programming & Asst. Captain
2012-???? Mentor 2405 Programming/Jack-of-all-Trades
Reply With Quote
  #2   Spotlight this post!  
Unread 08-03-2012, 08:58
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Saving robot code to use on another computer

Quote:
Originally Posted by kws4000 View Post
Well, follow this order:

1) Copy any custom VIs you created and transfer them to an easy to find directory. If you didn't, great! If you did, great! Several teams don't bother with them because they can't see all of the code at one time.

2) Identify where you saved the Robot Project. Copy the ENTIRE FILE, and put it somewhere where you can find it.

3) Open the project, and direct LV to find any missing VIs. Save it. It should now work just fine.

Option B: Stare at both computers and copy the code object for object.

FYI, I would not recommend doing it on the DS, it's too slow for even processing the Kinect.
Err... let me add to that.

1) Open your project.
2) Click on the files tab.
3) There should be basically two folders that all your files should be in:
a) Your project folder.
b) The Program Files folder.
If you have any of your own files, or files important to the robot code, you will need to move them inside of the project explorer.

You should have something in the end that looks like this:
Click image for larger version

Name:	Capture.PNG
Views:	24
Size:	63.5 KB
ID:	12252
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #3   Spotlight this post!  
Unread 10-03-2012, 15:14
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,748
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: Saving robot code to use on another computer

A couple other ways of doing this. In case the accurate info you've already been given wasn't sufficient.

If you right click on the Project in the Project window, it contains a Save As ... menu item. The bottom option seems to do what you want.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 10-03-2012, 15:28
Chris27's Avatar
Chris27 Chris27 is offline
Registered User
AKA: Chris Freeman
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Mountain View
Posts: 196
Chris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant future
Re: Saving robot code to use on another computer

You really should be using version control, although since you are using Labview, you won't be able to effectively merge code if 2+ programmers want to change the code simultaneously. You can use Github to set up an online repository (otherwise it isn't very difficult to set up a local git or svn server and there are tons of guides to walk you through the process). This is a very robust way of storing and accessing your code and will also let you easily revert back to previous versions.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-03-2012, 16:01
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,748
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: Saving robot code to use on another computer

I know the first year LV shipped without the SCC plugins. They are there now, but at least on my computer, the only tool listed was for perforce. It is also possible to use the tools UI and invoke the LV diff and merge tools.

I'd also encourage you to use SCC or at least good development practices involving backups. LV and other binary documents are not as easy to merge, but are nonetheless important to track.

Greg McKaskle
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 03:47.

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