Moku pro clipping

Hi,

I’m using the Moku:Pro and the python API with the demo script oscilloscope_deep_memory_mode.py, and I’m looking at a ~2Vpp, 5MHz square wave signal from a signal generator. On the Moku app I see a distorted square wave (expected, with the distortion coming from the bandwidth of the moku 500MHz),
but in the python API the signal looks like it’s clipping at 0.24V:

Is there some setting I need to tweak in the API to get it to reflect the data on the oscilloscope?

Thanks!

Hi @fliou,

It looks like the frontend is still set at the default 400 mVpp range, this is why the signal is clipped around ± 200mV. In the desktop app, the Auto range can handle this easily, but in the API, this needs to be set explicitly. If you set the range to 4Vpp instead, your ~2Vpp signal shouldn’t be clipped anymore:

i.set_frontend(channel=1, impedance="1MOhm", coupling="DC", range="4Vpp")

Here is the API documentation for the command: set_frontend | Oscilloscope | Moku API
Please let me know if this resolves the issue!

Cheers,
Nadia