Can we get Battery laptop indicator in simulink??
조회 수: 1 (최근 30일)
이전 댓글 표시
hi all
i just wanna ask, can we get battery laptop indicator level in simulink??? how???
thanks
댓글 수: 0
채택된 답변
Kaustubha Govind
2011년 6월 24일
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
Kaustubha Govind
2011년 8월 1일
Luhur: Sorry, missed your comment. I think you might need to hunt down an API function for querying the WiFi signal status also. :)
추가 답변 (1개)
Ken Atwell
2011년 8월 1일
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
댓글 수: 0
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!