Skip to content

Run the no OS Demonstration Standalone

skravats edited this page Aug 5, 2021 · 2 revisions

The DataStorm DAQ development kit is designed to run as a standalone desktop computer. Connect a keyboard, mouse and HDMI display to operate in this mode.

Configuration for local IIO Oscilloscope access

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

  • Analog Devices EVAL-AD400x-FMCZ data converter board
  • Trenz Intel® Cyclone® V SoC TEI0022 Development Board (includes 12VDC power supply)
  • Signal Generator with dual outputs capable of channel tracking and inversion for differential outputs
  • Two (2) BNC to SMA Cables
  • Monitor with HDMI input
  • HDMI cable
  • Keyboard and Mouse with USB connectors

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-ADRV9002NP/W1/PCBZ 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.

  1. Insert the Micro SD card into the SD card slot
  2. Insert the EVAL-AD400x-FMCZ FMC connector into the FMC mating connector on the Trenz TEI0022 board
  3. Attach the monitor to the TEI0022 using an HDMI cable
  4. Attach the keyboard and mouse to the TEI0022 using any of the 4 USB ports
  5. Connect the Signal Generator to the EVAL-AD400x-FMCZ SMA connectors
  6. Connect the power supply to the TEI0022
  7. Plug the AC-DC adapter into an AC outlet

Signal Source

A signal generator with 2 outputs is used to generate the differential signals driving the AD40xx inputs. The AD4020, in its default configuration, requires the input signal to be centered around 2.5V.

  • Set up the first channel to generate the desired signal
  • Set up the second channel for tracking the first channel
  • Set up the Second channel for signal inversion.

Run the demonstration standalone

Power up the unit using this hardware configuration. Wait approximately 60 seconds for the unit to be fully functional.

IIO Oscilloscope will be automatically launched on the system desktop. No configuration is required.


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

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.

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 Emulator. Double click on the 'Terminal Emulator' icon on the Desktop

      $ 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 25 kHz with harmonic components.


Review the C source code

  • Open a Terminal Emulator. Double click on the 'Terminal Emulator' icon on the Desktop

      $ 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


Clone this wiki locally