Go to Post It's really quite amazing what people will find time to talk about in the month before kickoff. - Ekcrbe [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-2009, 09:38
johnr johnr is offline
Registered User
FRC #0910
 
Join Date: Jan 2007
Location: michigan
Posts: 567
johnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond reputejohnr has a reputation beyond repute
compiling speed-a few ?

A big THANK YOU to all the people answering questions on the new control system. One of the threads helped us reduce our compiling time to something acceptable. A few more questions-
1- Can we direct Labview to only compile files that were changed? Do we need to somehow save prior build results in seperate files?
2- If that is not possible, can we create a calibration file that is only filled with numbers and have that file pulled into the build?
3- Can we change numbers in the robot from the driver station prior to a match and have the numbers stay despite a robot powerdown, as in permanent memory?
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2009, 14:45
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: compiling speed-a few ?

Quote:
Originally Posted by johnr View Post
1- Can we direct Labview to only compile files that were changed? Do we need to somehow save prior build results in seperate files?
Have you seen the following post? http://www.chiefdelphi.com/forums/sh...29&postcount=7

Quote:
Originally Posted by johnr View Post
2- If that is not possible, can we create a calibration file that is only filled with numbers and have that file pulled into the build?
I think that would have the same problem.

Quote:
Originally Posted by johnr View Post
3- Can we change numbers in the robot from the driver station prior to a match and have the numbers stay despite a robot powerdown, as in permanent memory?
You can save data to files on the cRIO using the LabVIEW File I/O VIs. Several of the beta teams have released code that uses them (including our odometer example).
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2009, 16:25
R2D2DOC's Avatar
R2D2DOC R2D2DOC is offline
Registered User
AKA: Laszlo Hideg
no team (Judge & Volunteer)
 
Join Date: Oct 2007
Rookie Year: 2006
Location: Michigan
Posts: 79
R2D2DOC will become famous soon enoughR2D2DOC will become famous soon enough
Re: compiling speed-a few ?

Joseph,

I'm the programming mentor for #910. However, I do not have sufficient privilege to download you odometer zip or doc files. Can you email them to me ? Please use:

laszlohideg@ameritech.net

Thanks,

Laszlo
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2009, 16:38
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: compiling speed-a few ?

I'm currently looking into why recent versions of LV have bigger build times. In my opinion it should be way faster to build.

If you are asking about clicking the run button after edits, there is a trick I've shared a couple times, but I don't think it has caught on.

When you have Robot Main open, you run it, change a front panel value, and run again and things are really fast to get started. That is because the VIs are cached in RAM on the controller. If you make a diagram edit, then run, you'll notice that is is probably fifteen seconds of download. All VIs will have been kicked out of the cache.

Can anything be done to keep more VIs cached? Sure.

What you do is Save your Robot Main As a Copy to a new VI. I usually call mine the Shadow.vi. This Shadow now has the same dependencies as your original Robot Main. When you are working, you open the project, open the Robot Main and the Shadow. Right click on the Shadow and choose Deploy. Then minimize the Shadow VI and go to work. The Shadow will not be edited, and will keep most of the VIs in the cache. Now VI edits will run much faster.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 15-03-2009, 17:20
Lucario231's Avatar
Lucario231 Lucario231 is offline
Registered User
FRC #0033 (Killer Bees)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: United States
Posts: 29
Lucario231 is an unknown quantity at this point
Re: compiling speed-a few ?

I see where you are going with this "shadow" VI.
My question is when the Robot Main is edited the shadow is not edited so that it
is a older code. Does this matter at all if the shadow is older code?

I have the basic style of code right now. Will this still work in this style? Because, if the main is built first, then if it changes, all of the other VIs need to be recompiled will have to move and thus recompiled too.

thanks for the advice.
Reply With Quote
  #6   Spotlight this post!  
Unread 15-03-2009, 18:48
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: compiling speed-a few ?

This shouldn't do any harm. The shadow will be in memory on the cRIO, and your Main VI too. The big benefit is that if you Main VI is removed from memory, the 500 or so other VIs that it references won't need to be redownloaded because the shadow will keep them there. I have never seen an issue with using this trick. If you think you see something funny, just close the shadow occasionally.

Greg McKaksle
Reply With Quote
  #7   Spotlight this post!  
Unread 15-03-2009, 22:12
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: compiling speed-a few ?

You should be able to use the calibration file idea without running into the aforementioned problem.
You could load your main project that uses the calibration file as the startup application, then use a button on the front panel of a vi to save the current settings to the calibration file. Running the debug version should allow you to change the calibration file without rebuilding the startup application.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Files Gherkinman Inventor 4 19-02-2008 21:55
Compiling error AdamHeard Programming 2 30-01-2008 09:57
Drive Control, Wheel Speed Calibration, and Rapid Speed Changes 7-11number1 Programming 3 23-01-2008 20:36
Compiling Error DustinB_3 Programming 1 12-02-2007 18:06
Compiling problem Anime-niac_2.9 VEX 4 19-10-2006 16:13


All times are GMT -5. The time now is 10:33.

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