Testing Sensor Data Retrieval
The Sensor Diagnostic Tool lets you test your driver and firmware support for data retrieval by invoking properties in the Sensor API.
The following procedure describes how to configure the diagnostic tool to retrieve an accelerometer reading.
- Expand the node for the accelerometer in the left Sensors pane and check the CONNECTED box.
- Rotate the accelerometer and hold in place.
- 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.
The following procedure describes how to configure the diagnostic tool to conduct synchronous polling of the accelerometer.
- Expand the node for the accelerometer in the left Sensors pane; check the CONNECTED box and uncheck the SUBSCRIBED box.
- 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.
Build date: 11/29/2012