Skip to content

Run the Demonstration Standalone (AD7606B)

nnaufel edited this page Sep 7, 2021 · 27 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 AD7606B 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-AD7606B-FMCZ 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-AD7606B-FMCZ 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-AD7606B-FMCZ SMA connectors
  • Ensure that Jumper JP5 is removed, Jumper JP1 is in position A to remove standby, Jumper JP6 is in position B to get internal voltage reference on AD7606B and Jumper JP2 is in position A to get +12V from FMC on the EVAL-AD7606B-FMCZ board, for it to be powered via the FMC connector.
  • Connect the power supply to the DataStorm DAQ
  • Plug the AC-DC adapter into an AC outlet

Signal Source

The Analog Discovery 2 is used as a signal generator to drive the AD7606B input.

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 widow

Click on Channels and select 1
Select Type as Sine
Select Frequency or Period
Set Amplitude to 1V
Set Offset to 1V
Click Run All

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. Right click on axi-ad7606-adc in the Plot Channels window. Select voltage0 and rising edge as the trigger parameters.


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.


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.


Right click in the IIO Oscilloscope plot area. Select Single Tone markers. 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 10 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 ad7606b-fmcz.py to review in the text editor
      - Select your preferred channel to obtain readings from that specific channel
    


  • Run the Python source code

      $ python3 ad7606b-fmcz.py
    


This capture shows a signal source of 10 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 ad7606b-iiostream.c to review in the text editor
      - Select your preferred channel in the CHANNEL_NUMBER constant to obtain readings from that specific channel
    


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

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


  • Run the C executable

      $ ./ad7606b-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 AD7606B Quick Start Guide

Clone this wiki locally