Go to Post I never use set screws to transfer torque. Something about evil spirits or whatever. - Mark Sheridan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-03-2013, 20:03
ykarkason ykarkason is offline
21st Century Schizoid Man
FRC #3316 (D-Bug)
Team Role: CAD
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Israel
Posts: 63
ykarkason will become famous soon enoughykarkason will become famous soon enough
Robot Code Deplyoment

Hi,
I just want to make sure I'm not making some silly mistakes;

Our team is at stages of switching programming languages(as it seems from LabView to Java).
I'm used from LabView to run the code - and at the end of the season to build it and deploy as a startup program.
Now, in Java with Netbeans - when I run the code it seems to deploy it as a startup program(by the way, wow! that's a heck faster then Labview) and that's it.
It seems logical that the cRIO's flash memory is somewhat limited, and using it and reusing it will eventually kill it, so... is it the correct behavior?

Thanks
  #2   Spotlight this post!  
Unread 23-03-2013, 20:47
brennonbrimhall brennonbrimhall is offline
Free Agent
AKA: Brennon Brimhall
no team
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Clifton Park, NY
Posts: 222
brennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to all
Re: Robot Code Deplyoment

Could you clarify your question?
__________________
Team 20, 2012-2014: 4 blue banners, 5 medals, and 9 team awards.
Church of Jesus Christ of Latter-day Saints, 2014-2016: Missionary, Colorado Denver South Mission.
  #3   Spotlight this post!  
Unread 23-03-2013, 22:15
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Robot Code Deplyoment

Quote:
Originally Posted by brennonbrimhall View Post
Could you clarify your question?
Quote:
Originally Posted by ykarkason View Post
It seems logical that the cRIO's flash memory is somewhat limited, and using it and reusing it will eventually kill it, so... is it the correct behavior?
Flash memory is rated for a number (usually in the 10,000s) of write cycles before the memory might fail. Sounds like the OP is asking if there's a way to run Java code on the cRIO without writing to the flash memory to extend the life of the cRIO.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #4   Spotlight this post!  
Unread 24-03-2013, 02:57
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Robot Code Deplyoment

I think OP is asking whether Java is supposed to deploy and run on startup while LabVIEW just runs from memory. And the answer to this question (at least the first part, I'm not familiar with LabVIEW) is yes.

Quote:
Originally Posted by RyanCahoon View Post
Flash memory is rated for a number (usually in the 10,000s) of write cycles before the memory might fail. Sounds like the OP is asking if there's a way to run Java code on the cRIO without writing to the flash memory to extend the life of the cRIO.
I wouldn't worry about the flash memory. To start with, your robot program isn't going to take up much space at all on the flash memory and most flash-using electronics implement some sort of wear-levelling, so you aren't writing to the same flash cells over and over. And even if you were (which again, you're not), 10,000 writes is the equivalent of deploying to the cRIO 10 times a day every single day for almost 3 years. And even then it would still be usable because that's a low estimate.

SSDs have been used in computers for years and see orders of magnitude more writes than the cRIO ever will. It shouldn't be a concern.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional

Last edited by F22Rapture : 24-03-2013 at 03:02.
  #5   Spotlight this post!  
Unread 24-03-2013, 08:45
ykarkason ykarkason is offline
21st Century Schizoid Man
FRC #3316 (D-Bug)
Team Role: CAD
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Israel
Posts: 63
ykarkason will become famous soon enoughykarkason will become famous soon enough
Re: Robot Code Deplyoment

Quote:
Originally Posted by F22Rapture View Post
I think OP is asking whether Java is supposed to deploy and run on startup while LabVIEW just runs from memory. And the answer to this question (at least the first part, I'm not familiar with LabVIEW) is yes.
Ok, So that part is fine!


Quote:
Originally Posted by F22Rapture View Post
I wouldn't worry about the flash memory. To start with, your robot program isn't going to take up much space at all on the flash memory and most flash-using electronics implement some sort of wear-levelling, so you aren't writing to the same flash cells over and over. And even if you were (which again, you're not), 10,000 writes is the equivalent of deploying to the cRIO 10 times a day every single day for almost 3 years. And even then it would still be usable because that's a low estimate.

SSDs have been used in computers for years and see orders of magnitude more writes than the cRIO ever will. It shouldn't be a concern.
Awesome, so I don't have to worry.
Thanks guys!
Closed Thread


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:36.

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