Tutorial#

This chapter describes the basic usage of Motion.

As an example, we will use Motion to acquire acceleration data and send it to the intdash server. Then, check the data in real time with Data Visualizer.

../_images/motion-live-tutorial-sensor-data.png

Fig. 61 Tutorial overview#

To perform this tutorial, you will need the following in addition to an intdash environment, an iOS device, and a PC.

  • 1 user account for sign-in

  • 1 edge for data acquisition (can be created in My Page)

Install Motion#

Install Motion on your iOS device.

  1. Use the QR code below to open the Motion app page on the App Store.

    ../_images/intdash-motion-appstore-qrcode.png

    Alternatively, search for "intdash Motion" in the App Store.

  2. Tap [Get].

Sign in#

  1. Launch the Motion application.

  2. When the sign-in screen appears, enter the URL of your intdash server (varies for each customer, e.g. https://example.intdash.jp) and tap [Next].

    ../_images/sign-in-url.png

    Fig. 62 Enter the URL of the intdash server#

    When you see '"Motion" Wants to Use ... to Sign In', tap [Continue].

  3. Enter your user name (or the email address registered in your user account) and password, then tap [Sign In].

    ../_images/sign-in-edge-password.png

    Fig. 63 Sign in#

    Note

    Use a "user" account to sign in.

  4. When you're prompted for permission to use your location, tap "Allow While Using App". (Please note that if you tap [Don't allow] here, you will not be able to send GPS data.)

  5. When prompted for access to the microphone and camera, tap [OK] for each.

    After successful sign in, the Main screen will be displayed.

    ../_images/start-measurement.jpg

    Fig. 64 Main screen#

  6. If you are using Motion for the first time, instructions will appear on the screen. Follow the instructions to select the project you wish to use.

    Also, select which edge to retrieve and send data as.

    The selected edge is displayed at the top of the Main screen.

    ../_images/selected-edge.png

    Fig. 65 Selected edge (Motion app sends data as this edge)#

Configure settings for data transmission#

Tap [Settings] to configure settings for the data to be acquired.

Here, as an example, we will configure the application to send accelerometer data.

  1. Turn on [Sensors].

    ../_images/sending-sensor-data.jpg

    Fig. 66 GPS setting screen#

  2. Set as follows.

    • Stream to Server: On

    • Save to Server: On

    • Channel: 1

    • Sensor Types > Acceleration: On

Note

When [Save to Server] is turned on, all data sent by the iOS device will be saved on the server. If you do not want to save data to the server, turn [Save to Server] off.

Set up Data Visualizer#

Prepare Data Visualizer to display data.

Sign in to view the Data Visualizer#

  1. Access your URL (e.g. https://example.intdash.jp ) with your web browser.

  2. When the sign-in screen is displayed, enter the user name (or the email address registered in the user account) and password.

    Depending on your environment, the Tenant ID box may also appear on the sign-in screen. If so, enter the Tenant ID as instructed by your administrator. If you leave the Tenant ID box blank, you will be signed in to the default tenant.

    ../_images/sign_in.en.png

    Fig. 67 Sign in to intdash#

    The Project Console is displayed.

  3. Click on [Details] of the project you want to use.

    ../_images/select-project.en.png

    Fig. 68 List of applications#

  4. From the list of applications, select Data Visualizer.

    ../_images/project-apps.en.png

    Fig. 69 List of applications#

Import a data settings (.dat) file#

Get the data settings file from the dedicated download page in order to view data from iOS devices.

  1. Click Links (links) on the left side of the Data Visualizer screen.

  2. Click [Download DAT File]. A list of downloadable DAT files (files in .dat format) is displayed.

    ../_images/dat-files.png

    Fig. 70 List of DAT files#

  3. Download the following DAT file.

    General Sensor > general_sensor_ch001.dat

  4. On the left side of the Data Visualizer screen, click [Data Settings] (data-settings) > [Add Group]> [Import] to import the DAT file.

This completes the import of the data settings file.

Place visual parts on the screen#

  1. Click any empty panel and select [2 x 2].

    ../_images/2x2.png

    Fig. 71 Select a panel#

  2. Select [Line Graph] as the visual part.

    ../_images/select-visual-part.png

    Fig. 72 Select Line Graph#

  1. Select the source (edge) of the data you wish to visualize.

    ../_images/bind-edge.png

    Fig. 73 Select an edge#

  2. Select "1_Gen:AccX" (acceleration in the X-axis direction) as the data to be visualized.

    ../_images/bind-data.png

    Fig. 74 Bind acceleration data#

Start measurement#

After setting up Motion and Data Visualizer, send the data from the iOS device to intdash.

  1. Put the Data Visualizer in live mode for real-time visualization. If you see the pink live mode icon (live-mode), you are currently in live mode. If you see a gray icon (live-mode-inactive), click the icon to switch to live mode.

    ../_images/live-button.png

    Fig. 75 Live mode display#

  2. Tap play in the center of the Motion Main screen to start the measurement.

  3. Click the play button play in Data Visualizer. The data sent from your iOS device is displayed on the dashboard.

    ../_images/dashboard-with-acceleration-data.png

    As you shake or move your iOS device, you can see that the value displayed in the Data Visualizer fluctuate.

  1. Tap ■ in Motion to end the measurement.

    This completes one measurement. The measurement data from tapping play to tapping ■ in Motion is saved in the server as one measurement.

This completes the measurement and visualization of acceleration with Motion.

In addition to acceleration, Motion can acquire various sensor data, video, audio, and GPS data. See Acquire data with Motion for settings to retrieve these data.

Note

Pressing and holding (long tap) the Main screen will lock the screen to prevent accidental operation. To unlock the screen, press and hold the screen again.

../_images/display-locked.png

Fig. 76 Locked screen (Press and hold the screen to unlock.)#