How do i read android's sensor data in real time within MATLAB PC via the USB cable ?
이전 댓글 표시
Hello all
How do i read android's sensor data in real time within MATLAB Simulink PC via the USB cable ?
For example, i would like to be able to see the accelerometer, gyroscope and orientation data within Simulink's data display and scope blocks.
Below is an example of what i am trying to do. I want to capture the real time output from my Android sensor block, as well as read the output of my transfer function in the scope.
However i only get blanks in the scopes and the displays

Any help is greatly appreciated.
Thank you very much !
채택된 답변
추가 답변 (1개)
Kiat Nern Yeo
2019년 6월 9일
0 개 추천
댓글 수: 1
Sruthi Yenugula
2019년 6월 10일
To see the results in Simulink, you should run the model in external mode, make sure the simulation time is set to inf by default it is 10s. Use display block(not android data display ) of Simulink block is see the data in Simulink.
카테고리
도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!