Program not pulling data off oscilloscope
이전 댓글 표시
I cannot get my program to give me data back from a Tektronix TDS oscilloscope.
My commands are as follows:
g=instrfind('name',sprintf('GPIB0-%d',1));
fclose(g);
set(g,'outputbuffersize',1000000)
set(g,'inputbuffersize',1000000)
g.Timeout = 120;
fopen(g);
fprintf(g,sprintf(':data:start 1');
fprintf(g,sprintf(':data:stop %d',1000));
fprintf(g,':CURV?');
data=fscanf(g)
Which returns the follwing instead of data:
data = :CURVE #42000
Has anyone ever experienced this before or know a possible solution?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Oscilloscopes에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!