Run the Demonstration Standalone (AD40xx) - ArrowElectronics/data-storm-daq GitHub Wiki

The DataStorm DAQ development kit can be run as a standalone desktop computer. This hardware configuration requires a keyboard, mouse, and HDMI monitor.

Configuration for local IIO Oscilloscope access

The AD40xx Evaluation Platform in this configuration is comprised of the following components:

Configure BOOTSEL DIP Switches

Select the SD card as the boot source for the processor.

Configure FMC_VADJ DIP Switches

The FMC_VADJ power rails provide power to the EVAL-AD4020FMCZ via the FMC interface. This is an adjustable voltage. It must be set to 3.3V. Modify the VID_SW DIP switch settings to select 3.3V.

Assemble the Hardware

Follow the steps in the order shown below.

  • Insert the Micro SD card into the SD card slot
  • Insert the EVAL-AD4020FMCZ FMC connector into the FMC mating connector on the DataStorm DAQ board
  • Attach the monitor to the DataStorm DAQ using an HDMI cable
  • Attach the keyboard and mouse to the DataStorm DAQ using any of the 4 USB ports
  • Connect the Signal Generator to the EVAL-AD4020FMCZ SMA connectors
  • Connect the power supply to the DataStorm DAQ
  • Plug the AC-DC adapter into an AC outlet

Signal Source

The AD4020 requires a Differential signal from a signal source. The EVAL-AD4020FMCZ, in its default configuration, requires the input signal to be centered around VCM=2.5V (as in yellow tag #5 below). Connect the Differential signal source to VIN+ and VIN- input of EVAL-AD4020FMCZ.

Install (if not already done) the Digilent WaveForms App.

Open the WaveForms App and Click on Wavegen in the left margin which opens a waveform window

Click on Channels and select 2
Select Type as Sine
Select Frequency or Period
Set Amplitude to 2V
Set Offset (Common Mode Voltage) to 2.5V
For Channel 2, Match the Channel 1 settings
Select the Phase to 180 degrees for Inverse signal
Click on No synchronization and select Synchronized
Click Run All

Run the demonstration standalone

Power up the unit and wait approximately 60 seconds for the unit to be fully functional.

IIO Oscilloscope automatically launches during the Linux boot process. No further configuration is required, however the application also has a desktop icon in case the user needs to launch the application on demand.

Enable voltage0 ADC channel

Select a Plot Channel to be displayed in IIO Oscilloscope. Click on the check box in the Plot Channel window adjacent to voltage0

Capture Time Domain Signals

Select an appropriate number of Time Domain samples in the Plot Type window. Press the Capture / Stop button to begin the capture process. After viewing the waveform press the button again to stop the capture.

Capture Frequency Domain Signals with Frequency Markers enabled

Change the capture mode to Frequency Domain. Select an FFT Size and Average. Press the Capture / Stop button to begin the capture process. An FFT is continuously plotted. Note that larger FFT sizes provide a higher resolution but the screen updates more slowly. The x-axis is labeled “MHz” in the top right corner and the maximum frequency depends on the sampling frequency which is independent of the selected FFT size. After viewing the FFT press the button again to stop the capture.

Enable Frequency Markers

Right click in the IIO Oscilloscope plot area. Select a marker option. Press the Capture / Stop button to begin the capture process with markers.

Note the information in the Marker window. This capture shows a signal source of 100 kHz with harmonic components.

Run the Example Applications

The LibIIO library API enables access to the converter data from C code, Python code, or MATLAB. A small sample of C and Python codes are provided for the reader and can be run natively on the DataStorm DAQ.

Review the Python source code

  • Open a Terminal. To do this, either double click on the 'Terminal Emulator' icon on the Desktop or type CTRL + T.

      $ cd examples/python-examples
      $ thunar
    

  • Review the Python source code

      Double click on the file ad4020evb.py to review in the text editor
    

  • Run the Python source code

      $ python3 ad4020evb.py
    

This capture shows a signal source of 100 kHz with harmonic components.

Review the C source code

  • Open a Terminal. To do this, either double click on the 'Terminal Emulator' icon on the Desktop or type CTRL + T.

      $ cd examples/c-examples
      $ thunar
    

  • Review the C source code

      Double click on the file ad4020-iiostream.c to review in the text editor
    

  • Compile the C source code (Use -liio flag to dynamically link the LibIIO libraries)

      $ gcc ad4020-iiostream.c -o ad4020-iiostream -liio
    

  • Run the C executable

      $ ./ad4020-iiostream
    

Shutting down the demo

  • Power down the target. Launch a Root Terminal. Type the following

      $ poweroff  
    
  • Wait 30 seconds and then you can safely power down the DataStorm DAQ


Return to AD40XX Quick Start Guide