Sending Data from WaveForms SDK to ThingSpeak.com

Overview

ThingSpeak, created by MathWorks, is an online platform for collecting, viewing, and analyzing data in the cloud. This guide runs through the steps required to send data captured by your WaveForms SDK compatible Digilent Test and Measurement Device up to ThingSpeak.


Requirements

The script provided in this guide is compatible with Waveforms SDK compatible devices that have Scope and Wavegen instruments:

  • Analog Discovery Studio
  • Analog Discovery 2
  • Analog Discovery
  • Electronics Explorer

Guide

1.

Go to thingspeak.com and sign in or sign up.

sign up


2.

In the Channels menu select My Channels and create a New Channel.

new channel


3.

Configure the channel settings, name, and fields: edit channel


4.

Under API Keys, note the Write API Key that will be needed to push data to the server from the custom application or script: keys


5.

Download the AnalogImpedance.py script, then edit it and replace the “8C####BU” with the Write API Key, as seen below:

url = "https://api.thingspeak.com/update?api_key=8C############BU"

Run the script on Windows, macOS, Linux desktop, or on an embedded device like Raspberry Pi:

execute


6.

Once the data has been sent to ThingSpeak, the default charts can be seen in the Private View and Public View tabs: view


Next Steps

Now that data can be transferred between the test and measurement device and ThingSpeak, the script can be modified as needed for your project.

For more information on WaveForms SDK, see its Resource Center.

For technical support, please visit the Scopes and Instruments section of the Digilent Forums.