godirect-examples

Official examples for Vernier Go Direct® Sensors in both Python and JavaScript

This project is maintained by VernierST

Using JavaScript with Go Direct® Devices

If you are new to JavaScript, you may want to visit our Go Direct FAQ page for some tips and troubleshooting ideas.

The examples in this folder will walk you through some of the basics of talking to a Go Direct® device using JavaScript.

For other ideas and more advanced examples, take a look in the /advanced_examples/ folder.

Example 1: Showing Sensor Information

The gdx_getting_started_1.html example shows how you can use the gdx functions to list information on all of the sensor channels on a Go Direct device. This includes sensor channel number, sensor description, units, and “incompatible sensors”.

Example 2: Using Defaults and Collecting Data

The gdx_getting_started_2.html example uses a Bluetooth Low Energy (BLE) connection and demonstrates how you can use the gdx functions to:

Example 3: User Prompts and Collecting Data

The gdx_getting_started_3.html example shows you how to use the library:

Example 4: Setting Defaults and Passing Arguments

The gdx_getting_started_4.html example shows you how to avoid using prompts (and instead pass arguments) to select the active sensors and set the measurement period:

Example 5: Export Sensor Data as CSV

The gdx_getting_started_5.html example shows you how to store data in global array and download it as a csv file. It shows you how to:

License

All of the content in this repository is available under the terms of the BSD 3-Clause License.

Vernier products are designed for educational use. Our products are not designed nor are they recommended for any industrial, medical, or commercial process such as life support, patient diagnosis, control of a manufacturing process, or industrial testing of any kind.