Virus scan in progress. Please wait to download attachments.
Listens for UPS state changes via .NET and generates a LV Notifier containing the UPS state.
this VI demonstrates how to get the power source status of your computer. It constantly polls the operating system for the power source information. The power source values are an estimate provided by the battery driver. This VI was developed for use in laptop computers, however, it also operates correctly in UPS units with a Windows battery driver. The return values of the call to the Windows DLL are formatted and presented in the front panel.
Steps to Implement or Execute Code
Run the dotNET System Power VI.
LabVIEW Development System 8.0 or later
Windows 98 or later
Additional Images or Video
Registers for the Microsoft.Win32.SystemEvents.PowerModeChanged Event. The included Callback VI performs a "GetSystemPowerStatus" Win32 API call and sends the returned structure as a LV Notification.