09-26-2008 09:09 PM
How do I obtain the current PC, on which my Labview application is running, status, such as " Is this PC running on battery? or AC power source?" ?
My goal is to make simple UPS function within my DAQ application, so that I can safely stop app, and store data in case of power down.
LabViewにて作ったアプリケーション内にて、そのアプリケーションを動かしているコンピュータのステータス情報をどのように得られますか?
測定アプリケーションを、長時間無人で動かすために、停電時に対処をしたく思います。
ノートPCでアプリケーションを走らせ、ノートのステータス情報(Windows)を定期チェックし、一定時間バッテリーで稼動している場合は測定をシャットダウンしたいと思っています。
簡易なUPS機能を組み込みたいと考えています。
どのようにしたらいいのでしょうか?
09-27-2008 05:12 AM
Hi Knoda,
try to check this discussion:
http://forums.ni.com/ni/board/message?board.id=170&message.id=206145&requireLogin=False
You can find a vbs script able to do that. Another option can be a DLL calling; I suppose that in Windows DLLs you can find the function you need. Try to find it in MSDN site
Greeetings from Italy
Girella2
09-27-2008 08:32 PM
Thank you for kind reply.
I get the idea, I will try.
from knoda in Japan