Introduction: Using the Data Logger With the Analog Discovery 2
A data logger is similar to an oscilloscope, but is used to register data over relatively long periods of time, typically a minimum of many hours or days, instead of a few microseconds. Data loggers can be standalone devices, with their own built in interface (keypads, displays, etc.), or like the Analog Discovery 2, which connects to your computer to record the data via the Waveforms 2015 software. Either way, they can be powerful data collection tools. They are also very simple tools with very few "moving parts" so to speak, so this I'ble will be short and sweet.
For this Instructable you will need:
-Waveforms 2015 software
- a computer with USB port to run the software
*You may also use the original Analog Discovery or the Electronics Explorer Board with Waveforms 2015. There are some slight differences in functionality between the AD1, AD2, and EEBoard, but nothing that will prevent you from following along if you have one of the other tools.
Step 1: The Data Logger
If you want some help getting your AD2 set up and calibrated, or installing Waveforms 2015, check out this quick start I'ble collection.
Once you have your AD2 and Waveforms 2015 all set up, open the Data Logger by clicking on the "Logger" button.
This will open the Data Logger window.
Along the top you'll see the "File", "Control", and "Window" options.
Under "File" you'll see several options.
You can "Save" the current data logger settings, or "Open" a previously saved project. "Export" lets you save the current data logger preview plot data, either as an image of the window in most common formats, e.g. *.bmp, *.jpg, *.tif, etc., or as a data file with the plot window information in either *.csv, *.txt, or *.tdms formats. "Close Logger" will close the data logger window. This will not clear the current settings as long as you don't close Waveforms 2015 completely. Just click on the "Logger" button again and the window will pop back open with all of the same settings.
Under "Control", you have access to the tool's Run and Stop commands.
"Window" lets you switch between any tool windows currently open, the Waveforms 2015 welcome window, or the Help window.
Below that, you'll find the data logger controls, both for the channel grid as well as for the plot.
All of the channels are loaded into the grid by default, but you can add more instances of the same channels by clicking .
Click to either delete a single highlighted channel or clear the entire grid.
With a channel highlighted, click to edit the channel, which gives you two option tabs. You can change the channel to observe a different data parameter by clicking the "Item" tab.
Clicking on the "Function" tab allows you to set your own math channel using some basic math functions and one of the 6 predefined channels as a starting point.
lets you add minimum and maximum parameters to the grid. These reflect the min/max values currently observable in the data window.
Click to run the data logger. Once the tool is running, this button becomes , which will stop the data logger.
and determine the sample rate, and by extension how much data/time the plot window will display. By adjusting the two parameters, you can vary the data sample rate from 1 sample every 100 ms for a total of 1 s, all the way up to 1 sample every 1 min for a total of 86,400 mins, which comes out to 60 days.
An alternate way to adjust the time/sample rate is provided by clicking . You can adjust the total number of samples, which will use the value in the "Update" box and auto-adjust the time value in the "History" box to fit that many samples at the determined rate. You can also adjust the offset, range, and attenuation for C1 and C2.
provides another way to export the plot window data as mentioned before.
Click to clear all plot data from the window. Unless you save the data first, it will be unrecoverable.
displays the RMS frequency and auto-adjusts according to the value set in the "Update" box.
The Data Logger tool makes use of the same input channels as the Oscilloscope tool. These are labeled "1 +/-" for C1 and "2 +/-" for C2 on the AD2 30-pin header. Use of the Data Logger will lock out the Oscilloscope tool.
Step 2: That's It!
As you can see the Data Logger on the Analog Discovery 2 is a simple to use tool that can collect a significant amount of data, and is also widely adjustable to meet the time requirements of many different systems.
As always, thanks for reading. If you have questions, please ask them in the comments below, though PMs are always welcome as well. You just never know when someone else has the same question and that way we can all learn and help each other get better. Have fun building!
Also, please check out the Digilent blog where I contribute from time to time.
We have a be nice policy.
Please be positive and constructive.