09-19-2006 03:34 AM
09-19-2006 05:04 AM
09-19-2006 06:04 AM
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??
09-19-2006 08:04 AM
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.
09-19-2006 08:22 AM
09-19-2006 10:35 AM