03-22-2012 03:24 PM - edited 03-22-2012 03:25 PM
Is there any memory within a cRIO where an ID number can be stored that will persist even after a reformat operation?
03-22-2012 06:10 PM
Are you doing the format through MAX or the RT Format Target vi? Not sure if it makes a difference though. The help file on RT Format Target says it formats the hard drive, can't remember if it also erases a downloaded FPGA bitfile. Compiling a different FPGA bitfile for each system will be a pain but it might be persistant. I know MAX can keep your network settings after a format, but I think it stores and reloads them.
03-22-2012 08:22 PM
03-23-2012 10:24 AM
From my research, it doesn't appear there is a way to keep any particular file on your cRIO after a reformating. However, you can at least automate the process the workaround approach programmatically using LabVIEW. Make a VI that would pull off the ID file you need using FTP, reformat, and then push the file back onto the device.
03-23-2012 11:26 AM
I do have a hunch that the OP is actually not so much concerned about loosing the ID when reformating his system himself, but about someone else reformating the system without his knowledge. And it's likely that that someone else would not be using the specific VI to do the reformating but in fact would do it simply through MAX to actually get exactly rid of that persistant ID :-).
03-23-2012 11:34 AM
If that's the case, take a hammer and rip out the Safe Mode switch.
03-23-2012 02:11 PM
Good Guess Rolf!
03-23-2012 02:38 PM - edited 03-23-2012 02:44 PM
@sachsm wrote:
Good Guess Rolf!
Then I do wonder if there is a way to access the S/N programmatically and use that one as ID? Sorry I don't have any cRIO system here to check that.
Seems like "RT Get Target Information" should give you quite a few information pointers that could be used for something in this direction.
03-26-2012 05:02 PM
I checked; rolfk is correct. The output of "RT Get Target Information" when you select "Target Information (All)" definitely includes the serial number, as well as the MAC Address, model name, and model code.
03-26-2012 05:25 PM - edited 03-26-2012 05:25 PM
I would guess that the S/N is stored in a EEPROM on the cRIO backplane and NI will not likely give us a means
to write to it. (It is probably managed in the cRIO BIOS)