Shots using python SDK and SigGenBuiltin

Post general discussions on using our drivers to write your own software here
Post Reply
vsakakarla
Newbie
Posts: 0
Joined: Wed Nov 07, 2018 12:01 am

Shots using python SDK and SigGenBuiltin

Post by vsakakarla » Wed Nov 07, 2018 12:45 am

Hi Guys,

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"])
Can someone explain me why I wasn't able to generate single shot.

Thanks.

Hitesh
PICO STAFF
PICO STAFF
Posts: 2855
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Shots using python SDK and SigGenBuiltin

Post by Hitesh » Wed Nov 07, 2018 11:55 am

Hi vsakakarla,

Please refer to this thread.

Regards,
Hitesh

Software Dev. Engineer

vsakakarla
Newbie
Posts: 0
Joined: Wed Nov 07, 2018 12:01 am

Re: Shots using python SDK and SigGenBuiltin

Post by vsakakarla » Mon Nov 12, 2018 5:06 am

Thankyou. It worked.

Post Reply