Jump to content

daanwielens

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

daanwielens's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hi @JColvin, Thanks for your quick reply. I didn't know what MTE meant, so I googled the BNC adapter PCB to see if it'd be related to that one. There, I came across the AC/DC coupling text which indicated that there are jumpers on the PCB. I completely missed this, and unfortunately my PCB's jumper was set to AC. After changing this one, the signal is as expected. Best, Daan
  2. Hi, For an experiment I need to send a 20 Hz triangle wave and measure the response of a DUT. I plan to generate and measure the signals both with the AD2. I noticed that the measured signal was not purely triangular, but a bit curved, which reminds me of AC/DC coupling issues on a classical scope. Hence, I switched to a 20 Hz 2Vpp square wave. Here, the measured signal shows even more features resembling DC rejection. Nevertheless, the scope settings are configured to DC coupling. Why is my square wave not 'really square'?
  3. Hi, I wrote a piece of code based on the python wrapper of the WaveForms SDK (https://github.com/Digilent/WaveForms-SDK-Getting-Started-PY) to control the Analog Discovery 2 (btw, I opened an issue there because of the dwfconstants file). I reshuffled the commands into something that fits within our modular measurement framework code (source file for the AD2 https://github.com/ICE-QTM/QTMtoolbox/blob/master/instruments/DigiAD2.py). My first test was to generate a waveform on channel 1, trigger and read it with the scope. I wrote the following code snippet: # Load module from instruments.DigiAD2 import * # Bind to instrument a = DigiAD2(1) # Open scope first a.open_scope(20e6, 10e3) # Set up trigger a.trigger(True, 'analog', 0, 3, edge_rising=False, level=0.25) # Write waveform a.set_wav1(constants.funcTriangle, offset=0, frequency=3e3, amplitude=1) # Measure 10 times and plot a.trigger(True, 'analog', 0, 3, edge_rising=False, level=0.25) plt.figure() for i in range(10): t, y = a.get_wav1() plt.plot(t, y) What I would expect to see is 10 traces that perfectly (up to drift, etc.) overlap. What I get is attached in the file: it seems that the code triggers on both positive and negative edges. However, following the example code in the SDK, the system should only trigger on positive edges. What is happening and how can I solve this? Thanks, Daan
×
×
  • Create New...