Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Built-In Frequency Measurement on Oscilloscope?

Status
Not open for further replies.

digi001

Full Member level 5
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:
Frequency is defined as 1/Period. Period is defined as the time between the middle threshold crossings of two consecutive, like-polarity edges. A middle threshold crossing must also travel through the lower and upper threshold levels which eliminates runt pulses.
 
  • Like
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.
 
  • Like
Reactions: digi001

    digi001

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

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top