Faster readings with Agilent 53181 frequency counter

2 views (last 30 days)
Hello to all,
I have an agilent 53181 and a 53132 frequency counter. I am trying to get fast measurements (as close to 10 readings/second, if possible), with a 0.1 second gate time. However, the closest I've gotten is only 1 reading ever 0.55 seconds. This is the code I'm using:
freqcounter = gpib('NI', 0, 3);
fprintf(freqcounter, '*RST; OPC?'); %%reset instrument
fprintf(freqcounter, ':FREQ:ARM:SOUR IMM; :FREQ:ARM:STOP:SOUR TIM; FREQ:ARM:STOP:TIM .1'); %%arm with 0.1 gate time
fprintf(freqcounter,' :CALC:MATH:STATE OFF'); %%recommendations
fprintf(freqcounter,':CALC2:LIM:STATE OFF'); %%from
fprintf(freqcounter, ':CALC3:AVER:STATE OFF'); %%agilent
fprintf(freqcounter, ':HCOPY:CONT OFF'); %%app
fprintf(freqcounter, ':ROSC:SOUR INT'); %%notes
fprintf(freqcounter, ':ROSC:EXT:CHECK OFF'); %%to improve
fprintf(freqcounter, ':DIAG:CAL:INT:AUTO OFF'); %%sample rate
fprintf(freqcounter, ':DISP:ENABLE off'); %%turn off display
fprintf(freqcounter, 'FREQ:EXP1.38800000'); %%expected frequency
for ii = 1:10
tic
freq = query(freqcounter, 'READ:FREQ?') %%loop to read 10 times
toc;
end
I wrapped the tic/toc around the frequency query to record the time it takes to send/read. Do you guys have any recommendations or past experiences?
Thank you so much!

Answers (0)

Categories

Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!