Return data with the timestamp

Hey, I`m doing a measurement and getting its data from (Keysight 34465A). The problem is that I don`t get the timestamp along with the data.I looked at the manual and found the command which should return the data with the time stamp but it doesn`t do so. Can it also be because of device? Please help if you have any ideas. Here is the piece of the code i use:
%code
fprintf(key,'MMEMory:FORMat:READing:INFormation ON'); % command supposed to get data with timestamp
fprintf(key,'TRIGger:SOURce EXT');
fprintf(key,'TRIGger:DELay:AUTO OFF');
fprintf(key,'TRIGger:DELay MIN');
fprintf(key,'SAMP:COUN 100');
fprintf(key,'SAMPle:COUNt:PRETrigger 50');
fprintf(key,'TRIGger:COUNt 1');
fprintf(key,'INIT');
Readings=fopen('testreading.txt','w');
for jj=1:100
fprintf(key,'DATA:REM? 1'); % getting data
dat=fscanf(key);
dat=strread(dat,'%f','delimiter',',');
fprintf(Readings, '%f\t\r\n',dat);
end
fclose(Readings);

댓글 수: 3

Stephen23
Stephen23 2018년 5월 7일
@Pavlo M: please upload a sample file by clicking the paperclip button.
Pavlo M
Pavlo M 2018년 5월 7일
@Stephen Cobeldick there you go.
Stephen23
Stephen23 2018년 5월 30일
@Pavlo M: please upload a sample data file by clicking the paperclip button.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Big Data Processing에 대해 자세히 알아보기

질문:

2018년 5월 7일

댓글:

2018년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by