Go to Post I love how your suggestion for MCC is one of the most elite robots of the year, and one of the World Champions. I also love that I really can't argue with you. - JVN [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 21-01-2013, 13:03
Ilya122 Ilya122 is offline
Israel- 4724
AKA: Ilya
FRC #4725
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Israel
Posts: 6
Ilya122 is an unknown quantity at this point
Deploying source code on the cRio.

I have a question about deploying the source libraries on the robot.
When we run it, All files are loaded to the ram. It takes a while and I don't want to waste time on that. All the basic libraries are loaded, I though if there is a way that the basic libraries are located on the flash memory, so it won't need to load every running.

Can I do it somehow ?
-------
How do we run the code in the competition itself? We build it on the robot ?
Or run it as we do now ?

Thx you
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2013, 13:08
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Deploying source code on the cRio.

As far as I know, there is no way to selectively save files to the cRIO's ROM.

If you want to run code on your robot while not tethered to a programming laptop, simply "Build" the code from the project explorer windows and "Run as Start-up." This will save the program in the cRIO's ROM and allow it to run at any time (at a tournament or otherwise).
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2013, 13:13
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,752
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: Deploying source code on the cRio.

If you run the same program several times, even with modifications, the environment uses the RAM VIs as cache and runs very quickly. But as you mentioned, when you reboot the cRIO, the RAM cache has to be rebuilt.

Once your code is complete or largely complete, you can transition to the Build and Run as Startup. This will boot the controller directly into your app on power-up.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2013, 13:39
Ilya122 Ilya122 is offline
Israel- 4724
AKA: Ilya
FRC #4725
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Israel
Posts: 6
Ilya122 is an unknown quantity at this point
Re: Deploying source code on the cRio.

Quote:
Originally Posted by propionate View Post
As far as I know, there is no way to selectively save files to the cRIO's ROM.

If you want to run code on your robot while not tethered to a programming laptop, simply "Build" the code from the project explorer windows and "Run as Start-up." This will save the program in the cRIO's ROM and allow it to run at any time (at a tournament or otherwise).
Ok thank you.

Quote:
Originally Posted by Greg McKaskle View Post
If you run the same program several times, even with modifications, the environment uses the RAM VIs as cache and runs very quickly. But as you mentioned, when you reboot the cRIO, the RAM cache has to be rebuilt.

Once your code is complete or largely complete, you can transition to the Build and Run as Startup. This will boot the controller directly into your app on power-up.

Greg McKaskle
For example we ran the program before. We have xxx.Vi running.
We stopped and we ran again but with modifications in the xxx.VI file.
Will it overwrite it ?
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2013, 18:09
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,752
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: Deploying source code on the cRio.

Yes. If xxx.vi is dependent on a.vi and b.vi, and you change xxx.vi and press run, LabVIEW will redeploy xxx.vi but reuse a.vi and b.vi. If you change nothing, but simply rerun the robot with a different configuration, no code will be deployed, LabVIEW will compare all VIs and determine that nothing changed.

As I mentioned before, the cache is cleared when the cRIO reboots.

Once the code is complete, right click on the build specification and Build and then Run as Startup. You can then switch back and forth as needed between these two types of running.

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 21: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