Skip to content

Conversation

PetteriAimonen
Copy link

First of all, thanks for sharing the script!

I've added an option to download the screen data and perform Fourier transform on it. This way the amplitude and phase are averaged over all samples, giving more accurate results than an 8-bit ADC would normally allow. It's a bit slower than scope's built-in measurements, so I added it as a separate option.

Here are some examples of an RC filter, first with traditional Vpp measurement method:

vpp_amplitude
vpp_phase

And then with DFT method:

dft_amplitude
dft_phase

Instead of using the scope's built-in Vpp measurement,
fetch the 1200 point screen display data and do a Fourier
transform on it. This way the phase and amplitude is
averaged over all samples, which allows more precise
measurements than an 8-bit ADC would normally give.
awg.setfrequency(AWG_CHANNEL, float(freq))
time.sleep(TIMEOUT)

if not args.NORMALIZE:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might i ask why you got rid of the normalize option? just curious

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was moved below to line 134 to avoid duplicating it.

Copy link

@vizkoze vizkoze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, i'll definitly try this on my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants