
Remote Commands in the Receiver Application
R&S
®
ESW
619
User Manual 1177.6298.02 ─ 08
MMEM:MOVE 'C:\R_S\INST\USER\Results\Test001.xml','D:\TestResults.txt'//
//Moves the file 'Test001.txt' to drive T:, renames it to 'Testresults.txt'
//and removes it from the instrument hard disk.
MMEM:RDIR 'C:\R_S\INST\USER\Results'
//Deletes the directory called 'Results' from drive C:, unless it still contains any content.
-----Disconnecting the network drive---
MMEM:NETW:DISC 'T:'
//Disconnect drive T:.
15.8.8.2
Loading Data
MMEM:CDIR?
//Returns the path of the current directory.
//e.g.
C:\R_S\Instr\user\
MMEM:CDIR 'C:\R_S\INST\USER\Results'
//Changes the current directory.
MMEM:CAT? 'C:\R_S\INST\USER\Results\*.xml'
//or
MMEM:CAT? '*.xml'
//Returns a list of all xml files in the directory 'C:\R_S\INST\USER\Results'.
MMEM:CAT:LONG? '*.xml'
//Returns additional information about the xml files in the directory 'C:\R_S\INST\USER\Results'.
15.8.8.3
Storing Instrument Settings
In this example we will store the instrument settings for the "Spectrum" channel.
INST:SEL 'SPECTRUM'
//Selects measurement channel 'SPECTRUM'.
MEMM:STOR:TYPE CHAN
//Specifies that channel-specific data is to be stored.
MMEM:STOR:STAT 1, 'C:\R_S\Instr\user\Spectrum'
//Stores the channel settings from the 'Spectrum' channel
// to the file 'Spectrum.dfl'.
15.8.8.4
Loading Instrument Settings
In this example we will load the hardware settings from the configuration file
Spectrum.dfl
to a new "Spectrum2" channel.
MEMM:LOAD:TYPE NEW
//Specifies that settings will be loaded to a new channel besides the existing
//'Spectrum' channel.
MMEM:SEL:CHAN:HWS ON
//Selects only hardware settings to be loaded.
MMEM:LOAD:STAT 1, 'C:\R_S\Instr\user\Spectrum'
//Loads the channel-specific settings from the file 'C:\R_S\Instr\user\Spectrum.dfl'
//to a new channel. The new channel is named 'Spectrum2' to avoid a naming conflict
Data Management