LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain the current PC status?

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機能を組み込みたいと考えています。

どのようにしたらいいのでしょうか?

0 Kudos
Message 1 of 3
(3,001 Views)

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

0 Kudos
Message 2 of 3
(2,983 Views)

Thank you for kind reply.

I get the idea, I will try.

 

from knoda in Japan

0 Kudos
Message 3 of 3
(2,955 Views)