This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Set Up Sensors

Requirements

You can stream sensor data to MATLAB® in real-time with a WiFi or cellular connection or you can collect sensor data offline to a log for transferring when you have an available connection.

For instructions about setting up and using sensor data collection, see Getting Started with Sensors in MATLAB Mobile™ Settings or visit the MATLAB Support Package for Android Sensors documentation.

Stream Sensor Data to MATLAB on Cloud

  1. You must have a MathWorks® Account. If you do not have an account, you can set one up in MATLAB Mobile.

  2. Connect to the MathWorks Cloud using the instructions in Connect to the MathWorks Cloud (MATLAB Mobile for Android).

Note

Streaming to the cloud has a one-hour maximum time limit.

Stream Sensor Data to Desktop MATLAB

  1. On your computer, install the MATLAB Support Package for Android™ Sensors in MATLAB.

  2. Connect to your computer using the instructions in Connect to Your Computer (MATLAB Mobile for Android).

Log Sensor Data

  • For logging sensor data when you do not have a WiFi or cellular connection, there are no special requirements.

  • To transfer the log files when you do have a connection, you must be able to connect to MATLAB Drive™. This requires a MathWorks Account. If you do not have an account, you can set one up in MATLAB Mobile.

  • Transferring log files between mobile device and your computer using a USB cable does not require a MathWorks Account.

Sensor Settings

Use the Sensors settings to manage sensor data collection on your device. To view the sensor settings, tap the menu, and then tap Settings.

You can configure the following settings for sensor data collection:

  • Control from MATLAB — Enable this setting to control the sensors and logging of data from MATLAB. This setting is enabled, by default.

  • Acquire Data in Background — Enable this setting to allow the Position sensor to continue sending data to MATLAB or locally to log file while you are using other apps. This setting is disabled, by default.

  • Upload Folder — Specify the MATLAB Drive folder for uploading sensor data.

  • Auto Upload — Select one of the following:

    • Off — Transfer sensor data files manually.

    • WiFi — Sensor data files are uploaded automatically when a WiFi connection is detected.

    • WiFi and Cellular (devices with cellular access only) — Sensor data files are uploaded automatically when a WiFi or cellular connection is detected.

In addition, from Settings, you can view Getting Started with Sensors for instructions on setting up sensor data collection.

Related Topics