I have resolved this problem. I compared the current source code with Problem using offset to capture long traces and found that two lines were missing.
scope.adc.offset = 0
wave = np.array([])
After I added them, the program ran very well.
I have resolved this problem. I compared the current source code with Problem using offset to capture long traces and found that two lines were missing.
scope.adc.offset = 0
wave = np.array([])
After I added them, the program ran very well.