LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I see status of my laptop battery with Labview?

Hallo, i want to display the status of Battery with Labview.
I searched in Discussionforum  but i found some information that must be programmed with C or C++.
Is it possible to read the status of Battery with labview instead of writing C-Code?
Thanks..
Hakan
0 Kudos
Message 1 of 6
(4,208 Views)


@hakan_s wrote:
 
I searched in Discussionforum  but i found some information that must be programmed with C or C++.

Well, that's already a start. If you had searched a little deeper, you should have found this.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(4,202 Views)

Thank you very much for your reply. As you see, DLL is used, and i couldn not see how it is programmed. I can copy taht, and use in my VI but i dont want to use DLL.

Can it be done without using dll??

0 Kudos
Message 3 of 6
(4,192 Views)

In any case, you can't get the battery information in LabVIEW. You will have to use some external resource to get it. The DLL which Rolf called in his example is a Windows DLL, so it will be on every computer where you have Windows. Any reasonable C programmer who would want to get that information would also go and call that DLL function instead of attempting to get the data using code written from scratch.

As suggested in the other thread, you can probably do this with .Net as well, but that will still mean that you use a Windows resource to find out the data - you won't be able to write code in LV which will do this. If you want to use .Net, you will need to search the web to find out which class is the one which exposes the battery information and how to call it. You can then call it in LV and get the data.


___________________
Try to take over the world!
Message 4 of 6
(4,170 Views)
Thanks for Info..
0 Kudos
Message 5 of 6
(4,160 Views)