DSP Tuner - Is this correct for freq offset?

AI Thread Summary
Calculating frequency offset after the ADC with a 1,048,576 FFT while only having 1,040,000 IQ samples raises questions about the appropriate FFT method. Using a non-power of two FFT may be necessary, but the proposed method of frequency correction using the existing samples could work if the unused locations are filled with zeros. Adding zeros at both ends of the data after applying a window function is suggested to optimize the process. The choice of sample rate should consider whether the focus is on frequency resolution or aligning the data length with a fundamental multiple. Ultimately, the solution hinges on the specific application of the DFT.
cutesteph
Messages
62
Reaction score
0
Say I already calculated the frequency offset after the ADC, which was calculated using a 1,048,576 FFT, but I only have 1,040,000 IQ samples. Do I need to use a non power of two FFT method or will the follow work?

freq corrected IQdata = sum of iqData(i)*[exp(i*2*pi* n*freq_offset*(diff )/(freq_sampling_rate)]

for n = 1,...1,400,000

where diff = 1,048,576/1,400,000
 
Engineering news on Phys.org
Have you considered filling the 8,576 unused locations at the end of the data with zeros?
You might put 4288 zeros at each end of the data after multiplying the shorter data record by the window function.

Your solution will depend on why you are using the DFT.
Is the sample rate chosen for frequency resolution, or is the data length a multiple of a fundamental?
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...

Similar threads

Back
Top