How to save last data if power drop on cRIO?

Updated May 28, 2018

Reported In


  • CompactRIO Chassis


  • LabVIEW

Issue Details

I am processing data in a real time VI and I want to be sure that if the cRIO power drop I can save the last data processed (or received from any type of acquisition). 


Limiting the problem to a software solution you can open a I/O file session and countinuosly write (or override) data in a binary file (is preferred to use a binary file because you are are writing in every cycle of a while loop and you need to write data as fast as possible). Of course you also have to be carefull to how you write data in the binary file, because you will need to recover them by coding (binary file are not comprensible with notepad).
When the power will drop it could occours that the file I/O session will be not closed and the file will be corrupted: unluckily this is unavoidable, if you want to be sure to don't lose any data you need a UPS (Uninterruptible Power Supply).


Not Helpful