09-16-2013 01:27 AM
I have a test application which needs to run continously for several months. To allow this I plan to add a UPS which allows to overcome power failures for up to about 10 minutes. Typically the UPS show up as battery in windows, so there should be a way to monitor the battery status. How to do this in LabVIEW?
Two principal ideas:
Notes:
Any Ideas? Thanks in advance!
09-16-2013 01:47 AM
09-16-2013 01:47 AM
09-16-2013 02:01 AM
Thanks to both, this is at least a good thing to start with.
This will work fine on desktop PC's but it still does not solve the need to know when the external UPS will be drained on notebooks. But maybe I find some extension to this interface to monitor a specific battery (the UPS will most likely show up as battery #2 - I will be able to test this later this day if it arrived).
09-16-2013 02:09 AM
Why dont you run your PC on UPS only then see the behaviour of VI?
09-16-2013 02:20 AM
As already mentioned in my first post the user might not want to remove the notebook's battery or won't be able to do so at all (e.g. my Toshiba ultrabook has a built in battery which can't be removed).
While this ultrabook is a great thing even for development use (1.2 kg of weight, i7 processor, 256 GByte SSD and up to 8 hours running on battery if you do not need the processing power provided, e.g. surfing on the web) the posted solution would completely disable use of up to date notebooks like this with the software.
09-16-2013 02:27 AM
I am not asking you to remove battery of your laptop as this is worst way to test your code. We are not intersted in your laptop configuration. What I mean to say is first understand the working of systempower.vi and modify accordingly . In all cases it is accessing dll file and providing information.
Nice laptop configuration.
09-16-2013 10:33 AM
Bad news trying this VI on my (older) Win7 notebook.
Of course I don't know which part of the misfunction is caused by Windows and/or the UPS monitoring software installed.
I've now tried to contact APS, hopefully one of the DLL's they installed with their monitoring software will allow to read the estimated time status left and input AC directly.
I will also try to get more information on the installed batteries using the functions in the powrprof.dll as used in the example below. It looks like providing access to the batteries installed, so if the UPS shows up as second battery or AC adapter it might work (have to check this in device manager).
https://decibel.ni.com/content/docs/DOC-19540