Hi all,
I am writing some codes. The idea is the following.
The laptop will be plugged into a UPS, along with the high-V supplies for the detector. In case of a power outage, the UPS will send a flag to be picked up by LabView software. If the flag lasts longer than, say, 5 minutes the software will assume a serious and long-term power outage. Then it can begin to shut down the detector gently, well before depleting the UPS battery.
Does anyone have an example of code?