Convert python SCPI command to Matlab

4 Ansichten (letzte 30 Tage)
Chiara Pelletti
Chiara Pelletti am 7 Jun. 2017
Kommentiert: Chiara Pelletti am 7 Jun. 2017
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.

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by