Convert python SCPI command to Matlab

조회 수: 10 (최근 30일)
Chiara Pelletti
Chiara Pelletti 2017년 6월 7일
댓글: Chiara Pelletti 2017년 6월 7일
Hi All, I'm trying to convert the followng Python SCPI command to Matlab:
MMEM:LOAD:IQ:STAT 1, 'C:\R_S\Instr\user\data.iq.tar'
The problem is Matlab syntax already has quotes, so I have removed them:
fprintf(visaObj,'MMEM:STOR:STAT1 C:\R_S\INSTR\USER\SPECTRUM');
But it doesn't work. Any input would be much appreciated.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 6월 7일
Possibly
fprintf(visaObj,'MMEM:STOR:STAT1 ''C:\R_S\INSTR\USER\SPECTRUM''');
  댓글 수: 1
Chiara Pelletti
Chiara Pelletti 2017년 6월 7일
Unfortunately this doesn't work, I am getting error: -158,"String data not allowed;MMEM:LOAD:STAT1 'C:\R_S\INSTR\USER\SPECTRUM'"

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

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by