필터 지우기
필터 지우기

Faster readings with Agilent 53181 frequency counter

조회 수: 2 (최근 30일)
Mihai
Mihai 2012년 12월 12일
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!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by