Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.
I'd like to generate at least 2 tones on the AFG3022B that are between 2.00MHz and 2.050 MHz. I've looked at the ArbExpress tool and cant create this signal because tone spacing must be 25kHz. This is likely due to the fixed 250Mhz sample rate a 128K of available memory. Is there another way to do this?
Ideally I'd like to generate 2 tones with the first one at
2.001 MHz and the other ranging from 2.002 to 2.010 MHz.
Is the only way to use a RF combiner and program 2 CWs?
Adding more tones would be a bonus.
for a 1 KHz difference, you'll need a minimum of 1 ms record regardless of the frequency of the tones. you could use the arbexpress equation editor but as you've already discovered, arbexpress fixes the sampling rate. to work around this, you can enter numbers five times the desired or try an awg model which permits a variable sampling rate. different models have different constraints placed on the arbexpress so you may run into other arbitrary rules.
it was faster for me to do this in python. the following creates the sample vector for two tones at 2.001 MHz and 2.002 MHz. the resulting text file is easily imported into arbexpress which i used to create the *.tfw file. I copy my *.tfw to a usb stick for transfer to the afg.
Code: Select all
# dual tone wfm import numpy # http://www.numpy.org/ # variables freq1 = 2.001e6 freq2 = 2.002e6 record_time = 1e-3 sr = 50e6 # derived variables record = record_time * sr # create time vector t = numpy.linspace(0, record_time, record, False) # create sample vector with time vector y = numpy.sin(2*numpy.pi*t*freq1) + numpy.sin(2*numpy.pi*t*freq2) # write to file numpy.savetxt('2tone_50MSps.txt', y)
Who is online
Users browsing this forum: No registered users and 2 guests