-
Notifications
You must be signed in to change notification settings - Fork 1
Run the Demonstration Remotely via Ethernet (AD738x)
In addition to the DataStorm DAQ development kit running in standalone mode, it can also run while connected to computer remotely via an Ethernet cable.
The AD738x® Evaluation Platform in this configuration is comprised of the following components:
- Analog Devices EVAL-AD7380FMCZ or EVAL-AD7381FMCZ data converter board
- DataStorm DAQ (Trenz Intel Cyclone V SoC TEI0022 Development Board) (includes 12VDC power supply)
- Computer with IIO Oscilloscope installed
- Ethernet Cable
- Micro USB cable
- Digilent Analog Discovery 2 Signal Generator with dual outputs
- Digilent Discovery BNC adapter board
- Two (2) BNC male to SMB Female Cable
Select the SD card as the boot source for the processor.
The FMC_VADJ power rails provide power to the EVAL-AD738xFMCZ 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.
Follow the steps in the order shown below.
- Insert the Micro SD card into the SD card slot
- Insert the EVAL-AD738xFMCZ FMC connector into the FMC mating connector on the DataStorm DAQ board
- Attach PC via ethernet cable
- Attach the Micro USB cable
- Connect the Signal Generator to the EVAL-AD738xFMCZ SMA connectors (channel 0)
- Ensure that Jumper LK4 is on position 3,4 for setting external reference to +3.3V, Jumper LK3 is in position 1,2 to to get +12V from FMC on the EVAL-AD738xFMCZ board, Jumper LK5 is in position 3,4 to get onboard vlogic supply on AD738x.Ensure Jumper LK1 & LK2 is in position 1,2.
- Connect the power supply to the DataStorm DAQ
- Plug the AC-DC adapter into an AC outlet
The AD738x requires a Differential signal from a signal source. AD738x accepts input voltage from GND to VCC centered around VCM=(GND-Vref)/2, and differential input full voltage swing equal to Vref, above which ADC conversion will saturate. The AD738x, in its default configuration, is setup with Vcc equal to +3.3V. Vref can be set to +2.5V / +3.3v from onboard supply(jumper LK4) or through internal Vref. Here Vref set to +3.3V external so AD738x requires the input signal to be centered around VCM equal to (Vref/2 i.e +3.3V/2) which can be externally given through VCM input on EVAL-AD738xFMCZ. Connect the Differential signal source to AinA+ and AinA- input of AD738x. Give external noise free variable VCM supply to VCM input & adjust it in range 1V to 2V for better output in FFT plot. A single ended signal generator with 2 outputs can be used to generate the differential signals driving the AD738x inputs by setting second output to track first output in inverted mode on a signal generator.
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 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 Run All
There are a few software components that need to be installed in order to run this demo successfully:
- IIO Oscilloscope™
- A SW terminal like Tera Term VT or Putty
IIO Oscilloscope™ is a tool developed by Analog Devices. It can be downloaded for Windows or Linux from this web site: https://github.com/analogdevicesinc/iio-oscilloscope/releases (Download and install v0.13)
A wired ethernet point-to-point connection between the host PC and the embedded target is required. Use this link for instructions on how to assign a static IP address to the host Ethernet adapter. Set the following values
-
IP address : 192.168.0.1
-
Subnet mask : 255.255.255.0
-
No entries required for the other fields
- A wired Micro USB serial port connection between the host PC and the embedded target is required
- Launch a linux terminal (like Tera Term VT or Putty) and connect using serial port
- Select 115200 baud
- Select the appropriate target COM port
Type the following at the terminal prompt to set the target IP address
- $ ifconfig eth0 192.168.0.2 up
Note: IIO Oscilloscope creates a .osc_profile.ini file in the Users/UserName/Appdata/Local directory. The next time IIO Oscilloscope is opened, the existence of this file delays connection to the target. It is recommended to delete the .osc_profile.ini (if it exists) prior to launching IIO Oscilloscope.
- Select the Discoverable/Scan option and click the Refresh button..
- A successful connection results in discovery of the IIO devices. Press OK to continue.
Note: The snapshot demo images are based on AD7380, But similarly it can be applicable for other AD738x platforms.
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 ad7380 in the Plot Channels window. Select voltage0 and rising edge as the trigger parameters.
Press the Capture / Stop button to begin the capture process.
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 100 kHz with harmonic components.
There are a few software components that need to be installed in order to run this demonstration successfully:
-
Download Python 3.7 and run the installer
-
A typical installation location will be C:\Users\username\AppData\Local\Programs\Python
-
Edit the Windows System PATH environment variable to add the path to the Python directory
-
Edit the Windows System PATH environment variable to add the path to the Python\Scripts directory
- For Linux platforms, use the relevant package managers to install python3 pip packages. For Debian-based distributions, follow this tutorial to install the same.
- For Windows platforms, use the following instructions to install PIP
- For Linux platforms, follow this tutorial to directly install LibIIO dependencies on the host machine.
- For Windows platforms, download and run the LibIIO installer from the GitHub releases page here
-
Open a CMD shell.
> pip install pyadi-iio > python -m pip install -U matplotlib
Note: The snapshot demo images are based on AD7380, But similarly it can be applicable for other AD738x platforms.
-
Download the python source code from the github repository
-
Run the Python source code. Open a CMD shell
$ python3 ad7380fmcz.py
This capture shows a signal source of 100 kHz with harmonic components.
There are a few software components that need to be installed in order to run this demonstration successfully:
- For Windows machines, follow these instructions to install GCC on your windows machine
- For Linux machines, run the relevant commands depending on distribution to install GCC and its related dependencies
- For Linux platforms, follow this tutorial to directly install LibIIO dependencies on the host machine.
- For Windows platforms, download and run the LibIIO installer from the GitHub releases page here
Note: The snapshot demo images are based on AD7380, But similarly it can be applicable for other AD738x platforms.
-
Download the C source code from the github repository
-
Compile the C source code (Use -liio flag to dynamically link the LibIIO libraries)
$ gcc ad7380-iiostream.c -o ad7380-iiostream -liio
-
Run the C executable (use your relevant target IP address here)
$ ./ad7380-iiostream ip:192.168.0.2
NOTE: This demonstration requires a licensed version of MATLAB and Simulink along with the Communication Toolbox installed.
There are a few software components that need to be installed in order to run this demonstration successfully:
- Follow these instructions to install MATLAB and Simulink
- Use Add-On Manager to install Communication Toolbox in MATLAB
- Download and run the LibIIO installer from the GitHub releases page here
Note: The snapshot demo images are based on AD7380, But similarly it can be applicable for other AD738x platforms.
-
Download the MATLAB source from the github repository
-
Open the Simulink model DAQ738x.slx file
- Double click on the system object block of ad738x. Set your relevant target IP Address in the "IP Address".
- Set your preferred stop time and run the simulation to see waveforms.
NOTE: Channels are arranged top-down with channel 0 on top and channel 1 on the bottom.
This capture shows a signal source of 100 kHz in Channel 0 with harmonic components.
-
Power down the target. Type the following at the terminal prompt
$ poweroff
-
Wait until the linux terminal shows
$ reboot : System Halted
-
Close out IIO Oscilloscope and all associated windows
Please click Here to purchase platform boards
Arrow Data Storm DAQ Development Platform
Introduction
Developer Starter Guides
Additional Developer Docs
AD40xx Platform User Guide
AD7768 Platform User Guide
AD7768-1 Platform User Guide
AD7606B Platform User Guide
AD738x Platform User Guide
AD469x Platform User Guide
AD463x Platform User Guide
ADRV9001/2 Platform User Guide