LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Still trying to Communicate with APC Smartups

Just Microsoft Composite Battery.

0 Kudos
Message 21 of 33
(2,591 Views)

Hi Phillip and Fellow LabView users.

 

Just want to say this example works nicely with Win 7 64 bit. ( we had to un-install the APC PowerChute as mentioned the earlier post)

 

Huge thanks for this. you have saved a lot of hassle

 

Regards

 

Chuck

0 Kudos
Message 22 of 33
(2,538 Views)

Nickleback, or anyone else who can help,

 

Which version of the VIs did you use with Win7, 64-bit?  Were you using LabVIEW 2012? I have tried all three with no success in 2012.  I have checked everything mentioned in this thread (no APC software, never was installed,; correct battery listed; etc).  I tried running them in their original form, saving in 2012, even creating a project and copying the files out of the library.  All with no success.  Nothing changes except the 'Charging' LED (which seems to work correctly.

Here is my system:

 

DELL Latitude E6420 Laptop

Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz   2.50 GHz

Windows 7 Enterprise 64-bit

LabVIEW Developers Suite 2012

0 Kudos
Message 23 of 33
(2,397 Views)
RoyA,
I'm running W7x64 on a Latitude E6510. Haven't tested my code on this platform. Will try tonight or tomorrow (when I can) and get back to you.

Dave
David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 24 of 33
(2,394 Views)

RoyA,

 

I don't see any issues on my aforementioned Dell E6410, running W7 x64 - my code still works.  However, I'm running under the LV2011 development enironment - not 2012.  I don't have 2012 installed on this machine at present.

 

So it could be:

- a LV 2012 vs 2011 issue

- a rights/UAC issue (I am logged in with local admin rights)

- a problem with your .NET installation

- a problem with calling GetSystemPowerStatus from kernel32.dll on your platform

- something else I haven't thought of

 

Can you confirm what LV code you have and/or from where you got it?  My code is still saved in 8.2.

 

It registers a .NET callback to get PowerModeChanged from Microsoft.Win32.SystemEvents

The actual callback VI calls GetSystemPowerStatus from kernel32, then posts the results to a LV user event.

 

Let me know what else I can try to diagnose this for you.

 

Dave

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 25 of 33
(2,385 Views)

Dave,

 

Wow! Thanks for the quick response.  Here is where I got the three versions of code I have tried:

First, most simple - http://sine.ni.com/devzone/cda/epd/p/id/439

Second, Notifier version - https://decibel.ni.com/content/docs/DOC-1154

Third, Events version - https://decibel.ni.com/content/docs/DOC-9256

 

All three work, somewhat, on my DELL Latitude D830 running WXP Pro with most recent patches, and LV 2011 SP1 f2.

 

By somewhat I mean the tank and the High, Low, Critical, and No Battery LEDs never change.  The Power BOOLEAN and the Charging LED change properly.  The Estimated Time updates, but has 'strange' numbers (like the following sequence 336:54:37 / 00:00:00, 848:55:14, 298:36:24 / 00:00:00,  298:36:12 / 00:00:00, 296:33:04 / 00:00:00, ...)  Second number never changes.

Akso, when the UPS dies completely the Power BOOLEAN goes back to AC Power.

 

Thanks again.

 

Roy

0 Kudos
Message 26 of 33
(2,379 Views)