필터 지우기
필터 지우기

Can we get Battery laptop indicator in simulink??

조회 수: 1 (최근 30일)
Luhur
Luhur 2011년 6월 24일
hi all
i just wanna ask, can we get battery laptop indicator level in simulink??? how???
thanks

채택된 답변

Kaustubha Govind
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
Luhur
Luhur 2011년 6월 24일
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!! :)
Kaustubha Govind
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
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

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by