02-04-2020 09:30 PM
how to make windows10 fault tolerant to power off when using LabVIEW
Solved! Go to Solution.
02-04-2020 10:41 PM - edited 02-04-2020 10:41 PM
What exactly to you mean by fault tolerant?
Lots of questions, but no details in your message to go by.
02-05-2020 01:30 AM
I mean make windows10 tolerant to power loss,so it doesn't corrupt its discs and labview returns as normal when power is restored. using battery backup is not an option.
02-05-2020 01:49 AM
Some ideas here
02-05-2020 03:18 AM
@ggregson wrote:
I mean make windows10 tolerant to power loss,so it doesn't corrupt its discs and labview returns as normal when power is restored. using battery backup is not an option.
From the LabVIEW PoV, everything you save should be redundant and have a validity check. So, when the system crashes during a save, the check will fail and the other file is used. So the storage should alternate between the two files. Always write to the oldest file, and always start opening the newest file. If the newest file is corrupt, use the other (and save it over the newest).
That doesn't prevent Windows from getting corrupt though...
02-05-2020 09:31 AM - edited 02-05-2020 09:32 AM
@ggregson wrote:
I mean make windows10 tolerant to power loss,so it doesn't corrupt its discs
LOL Good luck with that.
People have been trying to figure out how to stop Windows from corrupting it's HDD on a bad shutdown since the 1990's.
BTW: The only real solution would be to run something like Windows Embedded.
02-05-2020 10:11 AM - edited 02-05-2020 10:13 AM
@RTSLVU wrote:
@ggregson wrote:
I mean make windows10 tolerant to power loss,so it doesn't corrupt its discs
LOL Good luck with that.
People have been trying to figure out how to stop Windows from corrupting it's HDD on a bad shutdown since the 1990's.
BTW: The only real solution would be to run something like Windows Embedded.
Actually while Windows Embedded is supposed to be a bit more robust in that respect it is no guarantee that the flash disk won't get corrupted somehow when the power goes down at the moment when important files were updated.
The real solution is to use an Uninterruptible Power Supply (UPS), and maintain it. the battery in there won't live forever!
It has an internal battery storage and monitors the mains line. When it detects a power fail it will switch over to battery operation and send a signal to the PC that it needs to properly shutdown. Depending on the UPS (and the money you throw against it) you can get a few minutes of operation to safely shutdown the system to several hours of backup operation before the system has to be shutdown.
02-05-2020 10:29 AM - edited 02-05-2020 10:31 AM
@rolfk wrote:
@RTSLVU wrote:
@ggregson wrote:
I mean make windows10 tolerant to power loss,so it doesn't corrupt its discs
LOL Good luck with that.
People have been trying to figure out how to stop Windows from corrupting it's HDD on a bad shutdown since the 1990's.
BTW: The only real solution would be to run something like Windows Embedded.
The real solution is to use an Uninterruptible Power Supply (UPS),
Yes, but the original poster also stated:
@ggregson wrote:
using battery backup is not an option.
Also doesn't Windows Embedded use a write protected system disk, so the base OS can not be corrupted?
02-05-2020 10:39 AM
@RTSLVU wrote:
@rolfk wrote:
The real solution is to use an Uninterruptible Power Supply (UPS),
Yes, but the original poster also stated:
@ggregson wrote:
using battery backup is not an option.
Sounds like a case of:
Patient: Doctor it hurts when I push on this spot!
Doctor: Then don't push on that spot!
Also doesn't Windows Embedded use a write protected system disk, so the base OS can not be corrupted?
I'm sure you can set it up like that. But that requires you to have either two flash disks or at least partitions. Windows without anywhere to write registry and other file changes is pretty unworkable.
02-05-2020 12:16 PM
I worked as IT on a trading floor where UPS was not an option, also. (Presumably because the traders didn't want their computers down for even five minutes, but I never got an official reason.) Then a power glitch took out 2/3 of the computers on the trading floor and they decided maybe it was time to go the UPS route.