Go to Post Yup, looks like FIRST is infiltrating the American sports culture. And that's the long and the short of it. - Taylor [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 29-11-2012, 18:12
swodaem's Avatar
swodaem swodaem is offline
Registered User
FRC #2197 (Las Pumas)
Team Role: Photography
 
Join Date: Jan 2012
Rookie Year: 2011
Location: new carlisle, IN
Posts: 32
swodaem is an unknown quantity at this point
Viewing files that are on C-RIO to verify our code

we have our code from last year's robot (competition season code) and i need to be able to look at it and see if it is the same code that is on my computer (no one kept documentation of our code >.<) i dont know how to view it. i wanted to know if i could view it as if i was viewing a flashdrive.
__________________
Las Pumas 2197
__________________
Steps to a Successful Program
1. Load labview software
2. Try to build program
3. Fail to save program on cRIO
4. Look on internet for help
5. Throw chair
6. Drop computer out window
7. Hate life
8. Want to strangle your mentor
-seathroath
Reply With Quote
  #2   Spotlight this post!  
Unread 29-11-2012, 18:22
Tommy F.'s Avatar
Tommy F. Tommy F. is offline
Yeah! Collages!
AKA: 7h0m45
FRC #1985 (Robohawks)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2010
Location: St. Louis, MO
Posts: 188
Tommy F. is just really niceTommy F. is just really niceTommy F. is just really niceTommy F. is just really nice
Re: Viewing files that are on C-RIO to verify our code

Sorry to say, but this isn't exactly possible. Once the code is compiled to the cRIO, there really isn't a way to take it off of there.
__________________

FTC 289, 290 & 291 :: FRC 1985

2013 St. Louis Regional Semi-Finalist (with 3411 and 4330), Industrial Design Award
2013 Queen City Regional Winner (with 379 and 447)

Reply With Quote
  #3   Spotlight this post!  
Unread 29-11-2012, 18:24
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Viewing files that are on C-RIO to verify our code

There's no easy way to view the code, because the version now on the cRIO has been compiled and isn't in user readable form. You can ftp to the cRIO and look at the file structures easily.

The best you might do is compare the file sizes on the cRIO with the file sizes in your project build folder. Tedious though.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 29-11-2012, 18:44
swodaem's Avatar
swodaem swodaem is offline
Registered User
FRC #2197 (Las Pumas)
Team Role: Photography
 
Join Date: Jan 2012
Rookie Year: 2011
Location: new carlisle, IN
Posts: 32
swodaem is an unknown quantity at this point
Re: Viewing files that are on C-RIO to verify our code

i see what you're saying. i will try and see what i can do. thank you for your help. i will post here as soon as i can get some results. thanks for your help!
__________________
Las Pumas 2197
__________________
Steps to a Successful Program
1. Load labview software
2. Try to build program
3. Fail to save program on cRIO
4. Look on internet for help
5. Throw chair
6. Drop computer out window
7. Hate life
8. Want to strangle your mentor
-seathroath
Reply With Quote
  #5   Spotlight this post!  
Unread 14-12-2012, 22:45
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Viewing files that are on C-RIO to verify our code

as others have said, there isn't a good way to work out what the code is once it becomes a binary. For that reason, in my team's code we write a version string out to the serial port, and every time we commit code to our online repo, we also update that version string.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #6   Spotlight this post!  
Unread 14-12-2012, 23:30
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Viewing files that are on C-RIO to verify our code

Does the cRIO have a timestamp on files? I've never checked. I wonder if you couldn't compare that to the last build on the computer.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-12-2012, 23:52
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Viewing files that are on C-RIO to verify our code

I'm not sure, but if it does, I'd bet it just uses the 'date created' value given to it by windows since there is no battery backed RTC on a FIRST machine.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #8   Spotlight this post!  
Unread 15-12-2012, 14:17
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: Viewing files that are on C-RIO to verify our code

If comparing filesize/dates doesnt work you could try seeing functionality differences. Back up the file over ftp (/ni-rt/system/programnamehere.out). Then undeploy, redownload the new code.

A potential caveat is that the code may be different but be functionally equivalent.

In the future, version control would solve these problems
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks
Reply With Quote
  #9   Spotlight this post!  
Unread 16-12-2012, 10:02
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,579
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: Viewing files that are on C-RIO to verify our code

Quote:
Originally Posted by MAldridge View Post
I'm not sure, but if it does, I'd bet it just uses the 'date created' value given to it by windows since there is no battery backed RTC on a FIRST machine.
the crio 2 doesn't have a battery backed clock, but the 8 slot does. Unfortunately, the lack of a clock also messes up the dates of files ftpd to it.
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:46.

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