I've been working on generating a single cycle 1MHz sine wave using SetSigGenBuiltIn method. I was able to produce a continuous wave at 1MHz using the example provided in the picosdk-python-wrappers repository.
When I change the number of shots to 1, I haven't seen any change in the waveform, it is still continuous. I'm using PicoScope3204B model. I'm not sure whether this model is capable of generating shots.
The code I'm using to generate shot is as below
Code: Select all
# Output a sine wave with peak-to-peak voltage of 2 V and frequency of 10 kHz # handle = chandle # offsetVoltage = 0 # pkToPk = 2000000 # waveType = ctypes.c_int16(0) = PS3000A_SINE # startFrequency = 10000 Hz # stopFrequency = 10000 Hz # increment = 0 # dwellTime = 1 # sweepType = ctypes.c_int16(1) = PS3000A_UP # operation = 0 # shots = 0 # sweeps = 0 # triggerType = ctypes.c_int16(0) = PS3000A_SIGGEN_RISING # triggerSource = ctypes.c_int16(0) = PS3000A_SIGGEN_NONE # extInThreshold = 1 wavetype = ctypes.c_int16(0) sweepType = ctypes.c_int32(0) triggertype = ctypes.c_int32(0) triggerSource = ctypes.c_int32(0) status["SetSigGenBuiltIn"] = ps.ps3000aSetSigGenBuiltIn(chandle, 0, 2000000, wavetype, 1000000,1000000, 0, 1, sweepType, 0, 1,0, triggertype, triggerSource, 1) assert_pico_ok(status["SetSigGenBuiltIn"])