Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Viewing files that are on C-RIO to verify our code (http://www.chiefdelphi.com/forums/showthread.php?t=109755)

swodaem 29-11-2012 18:12

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.

Tommy F. 29-11-2012 18:22

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.

Mark McLeod 29-11-2012 18:24

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.

swodaem 29-11-2012 18:44

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!

MAldridge 14-12-2012 22:45

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.

Tom Line 14-12-2012 23:30

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.

MAldridge 14-12-2012 23:52

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.

~Cory~ 15-12-2012 14:17

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

Joe Ross 16-12-2012 10:02

Re: Viewing files that are on C-RIO to verify our code
 
Quote:

Originally Posted by MAldridge (Post 1202024)
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.


All times are GMT -5. The time now is 10:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi