The examples in this folder will walk you through some of the basics of talking to a Go Direct device using Python. Under the hood, they all use the godirect module to communicate with the Go Direct devices. However, to make things a bit simpler, we created a layer to abstract some of the details away and provide cleaner paths to the most common functions. That layer is named
gdx and can be found in the /gdx/ folder. All of the examples in this folder make use of it for a cleaner, simpler entry point into coding with Go Direct devices.
For other ideas and more advanced examples, take a look in the /advanced_examples/ folder.
The gdx_getting_started_1.py example shows you how to use the gdx functions to:
The gdx_getting_started_2.py example shows you how to avoid using prompts (and instead pass arguments) to select the active sensors and set the measurement period:
The gdx_getting_started_3.py 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”.
The gdx_getting_started_4.py example uses a Bluetooth Low Energy (BLE) connection and demonstrates how you can use the gdx functions to:
The gdx_getting_started_5.py example provides some ideas about what you can do with sensor data by using the built-in csv Python module. It shows you how to:
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.