Go to Post Unfortunately, not everyone is Andy Baker. If everyone had this mindset, there would be far fewer problems. - Kevin Kolodziej [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 13-01-2013, 04:33
Rusttree Rusttree is offline
Registered User
FRC #4146
 
Join Date: Jan 2013
Location: Scottsdale,AZ
Posts: 13
Rusttree is an unknown quantity at this point
The various methods of deploying code from Labview

From what we have experienced, there are a couple different ways to build and deploy code from Labview. We're a little confused what exactly the differences are between them.

1. Click the white arrow in the Robot Main VI.
2. Right-click on Robot Main.vi in the project explorer and select "Run".
3. Expand the last item in the project explorer window (I forget the name of it), right-click and select "Build" then "Run as startup".
4. Same as 3, but select "Build" then "Deploy".

I know that with #1, you get feedback back to the front panels of your code in Labview to help with troubleshooting. Other than that, are there differences with deploying the code to volatile vs. non-volatile memory in the cRIO? Other things?

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2013, 09:04
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: The various methods of deploying code from Labview

The first two have the same results.

The last item in the project is called the Build Specifications. Basically the Makefiles for constructing any applications or libraries from the VIs.
Here is my take at the terminology.

Build -- executes the script to build whatever you asked for, but it is stored locally on the host computer and isn't placed on the controller.
Deploy -- puts the latest version of the output of this script on the controller. If not built, it prompts you to build it first.
Set as Startup -- tells the controller to run this app, if present on power up.
Unset as Startup -- don't ...
Run as Startup -- The higher level command that builds, deploys, and sets as startup.

I confirmed the issue with the dashboard in your previous post. At this point in the season, you should typically be running from source and debugging, and I wouldn't recommend deploying and doing startup yet.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2013, 10:27
Rusttree Rusttree is offline
Registered User
FRC #4146
 
Join Date: Jan 2013
Location: Scottsdale,AZ
Posts: 13
Rusttree is an unknown quantity at this point
Re: The various methods of deploying code from Labview

Quote:
Originally Posted by Greg McKaskle View Post
At this point in the season, you should typically be running from source and debugging, and I wouldn't recommend deploying and doing startup yet.
Greg McKaskle
Agreed. We were more working along the lines of making sure everything worked the same as we remember last year. Then move on to actually doing some programming.

I'd still like to clarify one thing for curiosity's sake. If I make a new change to the code, do #1 or #2 from my list above, and then reboot the cRIO, is the new code retained? Or was it just loaded in RAM and lost on reboot?
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2013, 11:00
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: The various methods of deploying code from Labview

Run button works out of RAM. Deployment, which is included in Run As Startup are saved to flash.

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 04:15.

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