Remote control commands
R&S
®
RTE
1066User Manual 1326.1032.02 ─ 20
EXPort:WAVeform:NAME 'C:\Data\DataExportWfm_analog.xml'
EXPort:WAVeform:RAW OFF
EXPort:WAVeform:INCXvalues OFF
EXPort:WAVeform:DLOGging ON
*OPC?
MMEM:DEL 'C:\Data\DataExportWfm_analog.*'
ACQuire:COUNt 5 //Acquire 5 waveforms
RUNSingle;*OPC?
CHANnel1:WAV1:HISTory:STATe ON
CHANnel1:WAV1:HISTory:STARt -4
CHANnel1:WAV1:HISTory:STOP 0
CHANnel1:WAV1:HISTory:REPLay OFF
CHANnel1:WAV1:HISTory:PLAY
*OPC?
MMEM:DATA? 'C:\Data\DataExportWfm_analog.xml'
MMEM:DATA? 'C:\Data\DataExportWfm_analog.wfm.xml'
Exporting and reconstructing multiple raw acquisitions of the history file
This example captures and exports 100 waveforms acquired in fast segmentation
mode (minimize blind time). The data is transferred in blocks using SCPI commands.
In the following example *OPC prevents overlapping execution of asynchronous com-
mands.
// --- Set data format to signed integers, 1 byte
FORMat:DATA INT,8
// --- Create history data (assuming on channel 1) ---
CHANnel1:WAVeform1:STATe 1 //turn on channel 1
ACQuire:COUNt 100 //acquire 100 waveforms
ACQuire:SEGMented:STATe ON; *OPC?
//turn on fast segmentation, acquisition is started and data is stored in the memory
// --- Set Export variables and export data ---
EXPort:WAVeform:SOURce C1W1 //specify source for data export
EXPort:WAVeform:SCOPe WFM //specify range: complete acq. time
MMEM:DEL "C:\Users\Public\Documents\Rohde-Schwarz\RTx\Temp\DataExportWfm_analog.*"
//delete data from previous runs of this script
EXPort:WAVeform:NAME "C:\Users\Public\Documents\Rohde-Schwarz\RTx\Temp\DataExpWfm.bin"
//store data in this path and filename
EXPort:WAVeform:RAW ON
//export as raw ADC integer values (saves memory) --> data needs to be converted later
EXPort:WAVeform:INCXvalues OFF
//disable time values in data file. Time can be constructed from the header file
CHANnel1:WAV1:HISTory:STATe ON //switch to history view
EXPort:WAVeform:DLOGging ON //enable data logging & history
EXPort:WAVeform:TIMestamps ON //enable relative time stamp for each acq.
CHANnel1:WAV1:HISTory:STARt -99 //oldest waveform of n acq. has index =(-1)*(n-1)
CHANnel1:WAV1:HISTory:STOP 0 //newest waveforms has index 0
Programming examples