Convert python SCPI command to Matlab

10 次查看(过去 30 天)
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