Can we get Battery laptop indicator in simulink??

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 24 de Jun. de 2011

1 voto

There is no direct way to do this, but you could use an API function provided by the operating system and call it from an S-function. For Windows, I found a related answer on a different forum: Monitor battery charge with Win32 API.

2 comentarios

Luhur
Luhur el 24 de Jun. de 2011
what about wifi signal Kaustubha??? can we get the signal status level in simulink also?? or we us API function also??
anyway, THANKS A LOT FOR THE LINK!! :)
Luhur: Sorry, missed your comment. I think you might need to hunt down an API function for querying the WiFi signal status also. :)

Iniciar sesión para comentar.

Más respuestas (1)

Ken Atwell
Ken Atwell el 1 de Ag. de 2011
Using .NET may be easier than win32:
NET.addAssembly('System.Windows.Forms')
powerStatus = System.Windows.Forms.SystemInformation.PowerStatus
powerStatus.BatteryLifePercent % returns a number between 0 and 1

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by