This is an old revision of the document!


Logging Data to a Flash Drive with Analog Discovery Pro (ADP3450/ADP3250)

This page is under construction.

Overview

This guide demonstrates using the Analog Discovery Pro in Linux mode to automate data logging directly to a USB flash drive. Automation is accomplished using WaveForms SDK and Python 3. Before following this guide, make sure that you run the latest Linux version on your device. Follow this guide to update the Linux on your Analog Discovery Pro: How to Update or Recover Linux Mode on the Analog Discovery Pro (ADP3450/ADP3250).


Inventory


Boot Into Linux Mode

Mode selection can be done through WaveForms using the Device Manager. With the Analog Discovery Pro connected to the host computer by Ethernet, open WaveForms. If the Device Manager hasn't opened yet, then click Settings → Device Manager.

Select the Analog Discovery Pro from the device menu, then click the Boot button. The Boot Mode window should open. By default, Standard Mode which allows the user to communicate with the instrumentation device over USB or Ethernet will be selected.

To change to Linux Mode, select Linux, then click “Apply & Reboot”.

At this time, an audible click should be heard and the Analog Discovery Pro will disconnect from WaveForms. About 10-15 seconds should pass before it reconnects. Confirm that the second column next to the Analog Discovery Pro says “USB Linux”, confirming the mode has successfully been switched.


Connect Through a Terminal Emulator

Find what serial port the Analog Discovery Pro is connected to and note it.

Open a terminal emulator such as PuTTY or TeraTerm and connect to the noted serial port using 115200 Baud, 8 data, 1 stop, and no parity bits.

Login with username: “digilent” and password: “digilent”.


Mount the Flash Drive

Download this package and extract the contents onto the USB drive.

Plug the USB into the back of the Analog Discovery Pro. In the terminal, type

sudo fdisk -l

to find the USB device path. It should look like /dev/sd<drive letter><partition number>. This guide will use /dev/sda1 in its text and images, and care must be taken to match the drive letter and partition number of your USB drive.

Make the drive contents accessible by entering the command

sudo mount /dev/sda1 /mnt

and then

cd /mnt

to navigate into the USB's directory.


Script Overview


Testing


Next Steps

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 Test and Measurement section of the Digilent Forums.