I am using the Analog Discovery 2 and Analog Discovery Pro. I have a very long sequence of a square wave pulses at a constant frequency with notches. The current method I use to generate these square wave sequences is with a script that creates a sequence of 1s and 0s. A small sample of my output array would be something like this: [0,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0] (notch 3 cycles, square 3 cycles, notch 2 cycles, square 3 cycles). I currently sample at 660kHz to get a cycle frequency of 330kHz.
This works as expected with the pattern generator, but I need a larger output buffer (32kS) so I am attempting to use the wavegen output on the ADP. Unfortunately, even with a smaller test sequence (first and second img below) the output as measured by the oscilloscope is inconsistent (last img below).
Is there a difference in the way these signals are generated that can explain the difference in results? Is it possible to get the behavior I want with this sequence on the ADP wavegen? I am open to different ways of creating this sequence, but wanted to keep my first post broad instead of diving into my strange requirements.
Thanks in advance for any help!