With the Picoscope 6 software I am able to see the expected double-peak structure of the channel C signal. Image 1: https://ibb.co/5KJfttR
However, when I try to replicate this with the python wrappers using a modified ps3000aBlockAdvancedTriggerExample, I only see one peak in channel C. Image 2: https://ibb.co/r4TTzKN
I think this has something to do with the number of samples and the sample rate as I believe the timebase is set correctly to 2ns using:
I am not sure what the issue is and any help or suggestion would be appreciated, thanks!
Code: Select all
preTriggerSamples = 10 postTriggerSamples = 90 maxsamples = preTriggerSamples + postTriggerSamples timebase = 1 # 2 ns timeIntervalns = ctypes.c_float() returnedMaxSamples = ctypes.c_int16() status["GetTimebase"] = ps.ps3000aGetTimebase2(chandle, timebase, maxsamples, ctypes.byref(timeIntervalns), 1, ctypes.byref(returnedMaxSamples), 0)