Built-In Frequency Measurement on Oscilloscope?

Status
Not open for further replies.

digi001

Full Member level 5
Joined
Apr 5, 2011
Messages
244
Helped
22
Reputation
44
Reaction score
21
Trophy points
1,298
Activity points
2,904
How does a modern scope with automatic Frequency detection work?

FFT? PLL?
 

It's more trivial. My Agilent 600 manual clarifies:
 
Reactions: digi001

    digi001

    Points: 2
    Helpful Answer Positive Rating
I wrote a matlab script which uses local maxima that seem to work pretty good.



%Script to Find Frequency
%V1 is the Signal

Fs=1e-6; % Sampling Frequency

V1_abs=abs(V1); %rectify
V1_abs_inv=V1_abs*-1; %invert

[pks,locs]=findpeaks(V1_abs_inv,'MINPEAKHEIGHT',-1.5,'MINPEAKDISTANCE',5); %find peaks

figure(1)
plot(time,V1);hold on;
plot(time(locs),0,'k^','markerfacecolor',[1 0 0]);
hold off;


for i=1:length(locs)-1
freq(i)=1/(2*(locs(i+1)-locs(i))*Fs);
end

figure(2)
plot(freq)

min(freq)
max(freq)
mean(freq)
 

It uses a frequency counter.As FVM said, f= no of oscillations per second. So, what it does is, it converts the incoming sine into pulses and gives them as input to a counter and resets the counter every second. If the freq being measured is 10kHz, then it results in 10k pulses per second so the counter will read 10k.
 
Reactions: digi001

    digi001

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…