Table of contents
TOC
Collapse the table of content
Expand the table of content

Testing Sensor Data Retrieval

Last Updated: 1/24/2017

The Sensor Diagnostic Tool lets you test your driver and firmware support for data retrieval by invoking properties in the Sensor API.

Note The Sensor Diagnostic Tool is acceptable for testing on Windows 8.1 and earlier operating systems. The tool is now deprecated for Windows 10, so for sensor driver testing and diagnostics on Windows 10 and later operating systems, please use the SensorInfo App from the Windows Store.

Configuring the Sensor Diagnostic Tool to retrieve a single sensor reading

The following procedure describes how to configure the diagnostic tool to retrieve an accelerometer reading.

  1. Expand the node for the accelerometer in the left Sensors pane and check the CONNECTED box.
  2. Rotate the accelerometer and hold in place.
  3. Click the Refresh Data/Execute button and view the retrieved data in the Data section of the right pane.

The Data section of the right pane contains the updated data for your sensor. This data should correspond to the static position of the accelerometer.

Configuring the Sensor Diagnostic Tool for synchronous polling

The following procedure describes how to configure the diagnostic tool to conduct synchronous polling of the accelerometer.

  1. Expand the node for the accelerometer in the left Sensors pane; check the CONNECTED box and uncheck the SUBSCRIBED box.
  2. In the Automatic Data Request textbox, enter your desired polling interval in milliseconds. (Note that an interval of zero disables synchronous polling.)

The Data section of the right pane will begin displaying the polled data. As you move the accelerometer, you should see new values in this pane.

You can log polled sensor data in a CSV file. See the Testing Sensor Events topic and the "Logging Event Data to a CSV file" section for a description of how to do this.

You can specify which data should appear in the Data section of the tool with the Datafield dropdown that appears in the second row of controls in the right pane.

Testing Sensor Functionality
Testing Sensor Property Support
Testing Sensor Events


Send comments about this topic to Microsoft

© 2017 Microsoft