ps5000aSigGen.py example from github doesn't generate custom waveform with a 5444D

Having problems ? let us know the details here
Post Reply
adam_wilkinson
Newbie
Posts: 1
Joined: Thu Feb 01, 2024 9:54 am

ps5000aSigGen.py example from github doesn't generate custom waveform with a 5444D

Post by adam_wilkinson »

Full path: https://github.com/picotech/picosdk-pyt ... aSigGen.py

All of the other parts of the example generate a waveform from the AWG apart from the last section which allegedly generates a custom waveform but doesn't work.

This looks to me like the waveform has an amplitude of 1 or less which might not be good when converted to 16 bit ints:
123 # create a custom waveform
124 awgBuffer = np.sin(np.linspace(0,2*math.pi,1024))
125 awgbufferPointer = awgBuffer.ctypes.data_as(ctypes.POINTER(ctypes.c_int16))

Any corrections available which haven't been put onto github yet?
Post Reply