How do i read android's sensor data in real time within MATLAB PC via the USB cable ?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kiat Nern Yeo
am 7 Jun. 2019
Kommentiert: Sruthi Yenugula
am 10 Jun. 2019
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 !
0 Kommentare
Akzeptierte Antwort
Sruthi Yenugula
am 7 Jun. 2019
Use external mode, to see that sensor data in Simulink or you can directly deploy the app on Android device and see the results on device screen.
To run model in external mode, use this link
0 Kommentare
Weitere Antworten (1)
Kiat Nern Yeo
am 9 Jun. 2019
1 Kommentar
Sruthi Yenugula
am 10 Jun. 2019
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.
Siehe auch
Kategorien
Mehr zu MATLAB Mobile finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!