Files Data Loss During Power Failure With NI Hardware

Updated Dec 19, 2023

Reported In

Hardware

  • CompactRIO Controller
  • PXI Controller

Software

  • LabVIEW

Issue Details

My application (created in LabVIEW) was reading/writing from/to files in my cRIO controller when a power failure occurred. After my system rebooted, I got some corrupted files. How can fix or prevent this?

Solution

In general, no matter where your application is running (PC, cRIO controller, PXI controller, sbRIO, etc) the OS is typically not designed to protect data being written/read at power failure. Even if you do not suffer any data loss for a specific power failure event, you shouldn't rely on that will still happen in further events. To prevent this kind of issues, we recommend you to backup your systems with UPS