Can we get Battery laptop indicator in simulink??
Mostrar comentarios más antiguos
hi all
i just wanna ask, can we get battery laptop indicator level in simulink??? how???
thanks
Respuesta aceptada
Más respuestas (1)
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
Categorías
Más información sobre Naming Conventions en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!