Remote control commands
R&S
®
RTE
1067User Manual 1326.1032.02 ─ 20
CHANnel1:WAV1:HISTory:REPLay OFF
CHANnel1:WAV1:HISTory:PLAY; *OPC? //exports waveforms to defined file location.
//2 files are created: header file *.bin and waveform data file *.Wfm.bin
// --- Put files into output buffer of scope and collect ---
// The following code lines are mostly Pseudo Code.
//Sorting out the binary waveform data is more complex and require additional coding
binaryFormat = '1 byte'
//Pseudo Code, tell your language how to interpret the binary data,
//e.g. 'int8' for MATLAB
MMEM:DATA? "C:\Users\Public\Documents\Rohde-Schwarz\RTx\Temp\DataExpWfm.bin"
//Put header file into output buffer
header = readSCPIBinary(visaInstrument, binaryFormat);
//Pseudo Code, use appropriate command from your programming language,
//e.g. binblockread in MATLAB
MMEM:DATA? "C:\Users\Public\Documents\Rohde-Schwarz\RTx\Temp\DataExpWfm.Wfm.bin"
//Put data file into output buffer
//(your input buffer of the VISA resource might need to be increased)
wfmRaw = readSCPIBinary(visaInstrument, binaryFormat)
//Pseudo Code, use appropriate command from your programming language,
//e.g. binblockread in MATLAB.
//Note: Sort different acquisitions into an array separately after file transfer.
// --- Convert raw ADC values into voltage floating point values ---
// header is assumed to be a struct and the members are accessed via "." syntax.
vertOffsetByPosition = header.VerticalScale * header.VerticalPosition
conversionFactor = (1/header.NofQuantisationLevels) *
header.VerticalScale * header.VerticalDivisionCount
for(i = 0; i<100; i++){
wfmVolt(i) = wfmRaw(i) * conversionFactor +
header.VerticalOffset - vertOffsetByPosition
}
// Note: Depending on settings, the waveform can contain more samples than the
//record length. Remove leading and trailing samples from the waveform.
18.3.5.3 Exporting measurement results to file
See:
●
"Exporting histogram data to file" on page 1059
●
"Transferring histogram data" on page 1059
●
"Exporting long-term measurement data to file" on page 1059
●
"Transferring long-term measurement data" on page 1059
Programming examples