Go to Post Some of us should be so lucky to have something go wrong on Einstein. - Kevin Sevcik [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 18-11-2009, 12:18
penguain penguain is offline
Registered User
AKA: Barry Preston
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2007
Location: Bishop Miege High School
Posts: 18
penguain is an unknown quantity at this point
Upload Code Via FTP

Is it possible to build/compile the code(in labview)... then 'upload and deploy' the code to the robot via FTP....

if so how?
__________________
2007 Greater Kansas City Regional Champions
2008 Greater Kansas City Regional Finalists
Reply With Quote
  #2   Spotlight this post!  
Unread 18-11-2009, 16:27
dqmot17's Avatar
dqmot17 dqmot17 is offline
Orange Hat
FRC #0247 (Da Bears)
Team Role: Webmaster
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 142
dqmot17 can only hope to improve
Send a message via AIM to dqmot17
Re: Upload Code Via FTP

As far as i know, no. It compiles it directly to the bot. One of the things are team did to combat this problem is make it read a text file FTPed to the cRIO.
__________________
2009 Championship Finalists & 3 Blue Banners
Reply With Quote
  #3   Spotlight this post!  
Unread 18-11-2009, 18:22
TDohse TDohse is offline
Registered User
AKA: Thomas
no team (NI)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 39
TDohse is an unknown quantity at this point
Re: Upload Code Via FTP

Can you give a further explanation of what you want to do and why? What behavior do you need that is different than what is provided by the LabVIEW project?
Reply With Quote
  #4   Spotlight this post!  
Unread 24-11-2009, 16:59
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Upload Code Via FTP

If I understand correctly, an FPGA does not actually have its state "burned in". It effectively boots from the non-volatile memory; the 64 MB Flash memory.

I'm assuming your goal is to be able to switch between compiled programs without all the time it takes to deploy.
My suggestion is to deploy it initially, and then FTP it and copy all the files in the cRIO back to your computer and archive them there, so when you want to switch back to that code, you just unzip it, and rewrite the cRIO's memory with it.

To save time, you could probably even determine which folders hold the code, and just replace those, instead of replacing the OS and everything.



EDIT:
For clarity, I'm going to reference a specific document, because there are three ways of deploying code.
http://decibel.ni.com/content/servle..._Framework.pdf
I believe Barry is referring to "Building and deploying a stand-alone application", not "Deploying the program using the run button" nor "Deploying the program from the Project Explorer window".
__________________
-- Marshal Horn

Last edited by kamocat : 24-11-2009 at 17:09. Reason: clarificativeness
Reply With Quote
  #5   Spotlight this post!  
Unread 24-11-2009, 21:49
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: Upload Code Via FTP

If the point is to be able to switch between a few different deployments, this is determined by the ini file. I could be wrong, and I don't take a cRIO home with me at night, but I believe that you can keep multiple deployments on the cRIO and either rename them, or possibly change the startup app name in the ini. If this is the goal, we can play a bit and publish different ways of doing this.

If the goal is to speed up the LabVIEW download time, some things regarding this have already been done. For instance, the FPGA image is close to 1MB. Last year, it was downloaded each time. This year it is stored on the cRIO.

So, to echo Thomas's question, can you be more specific about the ftp question?

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP johncap100 Technical Discussion 6 28-09-2009 18:24
How do i Upload code? seanl Programming 2 20-01-2009 10:46
How to upload/download the code from a robot? Team865 Programming 3 06-11-2007 17:03
FTP Issue Eugenia Gabrielov General Forum 7 27-02-2005 05:07
Code Download via Serial Issue phrontist Programming 9 08-02-2005 17:32


All times are GMT -5. The time now is 22:38.

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