11-23-2015 03:14 PM
I am currently using an Agilent 33120A 15MHZ Function generator and when I change the parameters (amplitude, frequency, etc.), my code does not reflect the changes. What I am doing wrong?
11-23-2015 03:45 PM
11-24-2015 06:49 AM
You ar sampling at 1 Sample/second. Unless you are adjusting a DC offset, you are not going to see any changes.
Nyquist states that in order to see a frequency, you need to sample at more than twice the frequency you want to see. So if you are generating a 1kHz sine wave, you need to sample at least 2kHz. I recommend something more like 5x to 10x. So for the 1kHz wave, I would sample at more like 10kHz.