> I am wondering what happens when there is a power failure. The
> way things are now, if the power fails at x minutes past the hour,
all
> data collected for the past x minutes is lost. What is the easy
> solution to this problem? The only thing I can think of is to write
> data every second, but does this constant read/write on a file
matter/
> hinder performance/ reduse HDD life?
If your data is too important to risk losing during a power outage, you
should get a UPS. Even an inexpensive "office" UPS will give you minutes to
save your data. Make sure the UPS includes a cord to the computer and
software to shutdown the system automatically.
The event structure allows you to capture (filter) and discard the
application close event. Th
is would give you an opprotunity to save your
data and then close LabVIEW yourself.
My computer didn't finish shutting down when I tested this. You might be
able to have the UPS issue multiple shutdown commands, such as 5 minutes
after the power outage and again when the battery is at 30%.