Open jseibert575 opened 4 years ago
@jseibert575 for the first plot, did you double the amplitude, or the frequency? What's the third plot? Could you please paste recipe for reproducing? Also, what exactly are you looking at here - is this playing a sine on the bias of a superconducting TES while you read it out? If yes, what was the sample rate?
FYI there is a known issue that you may also run into (which I don't think is what you're seeing, may be related) https://github.com/slaclab/pysmurf/issues/425.
@swh76 The first plot is doubling the frequency and fixing amplitude, second plot is doubling amplitude and fixing frequency, I think I mixed up the order I pasted. The third plot is doubling the amplitude of a square wave.
I have since deleted the code used to generate those plots, but this was the general idea. very basic: doubling frequency, fixing amp:
datfile = S.stream_data_on()
time.sleep(1)
S.play_sine_tes(1,0.004,10)
time.sleep(2)
S.stop_tes_bipolar_waveform(1)
time.sleep(1)
S.play_sine_tes(1,0.004,20)
time.sleep(2)
S.stop_tes_bipolar_waveform(1)
S.stream_data_off()
@jseibert575 Mitch found one of the problems. I enable before loading the LUT tables, see here:
Will submit a PR to fix this soon.
When I play an arbitrary waveform using
S.play_tes_bipolar_waveform
(or some sinusoid usingS.play_sine_tes
), I get some strange behavior from the last played waveform as well. See plot below, which was a result of playing a sine wave of fixed frequency, stopping the waveform usingS.stop_tes_bipolar_waveform
, and then doubling the amplitude after waiting a short time. This happened repeatably, whether it was a sinusoid of differing frequency or differing amplitude, and for square waves as well.I've also had issues using the
continuous = False
flag onS.play_tes_bipolar_waveform
, and I wonder if that is related to this same problem.