Convert python SCPI command to Matlab

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일

0 개 추천

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'"

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

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 6월 7일

댓글:

2017년 6월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by