Can we get Battery laptop indicator in simulink??
Show older comments
hi all
i just wanna ask, can we get battery laptop indicator level in simulink??? how???
thanks
Accepted Answer
More Answers (1)
Ken Atwell
on 1 Aug 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
Communities
More Answers in the Power Electronics Control
Categories
Find more on Naming Conventions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!