
Remote Commands
R&S
®
FSW
1016
User Manual 1173.9411.02 ─ 19
11.9.6.1
Storing Data
MMEM:MSIS 'C:'
//Selects drive C: as the default storage device.
-----Connecting a network drive--------
MMEM:NETW:USED?
//Returns a list of all drives in use in the network.
MMEM:NETW:UNUS?
//Returns a list of free drive names in the network.
MMEM:NETW:MAP 'T:','Server\ACLRTest'
//Maps drive T: to the directory 'Server\ACLRTest'
-----Saving data on the instrument-----
MMEM:MDIR 'C:\R_S\INST\USER\ACLRTest'
//Creates a directory called 'ACLRTest' on drive C:
MMEM:NAME 'C:\R_S\INST\USER\Test001.txt'
//Creates a file called 'Test001.txt'
MMEM:COMM 'ACLR test results'
//Creates a comment for the file.
MMEM:DATA 'Test001.txt',#212FileContents
//Writes 12 characters to the file 'Test001.txt'
-----Copying the data to another location---
MMEM:COPY 'C:\R_S\INST\USER\Results\Test001.txt','T:'
//Copies the specified file to network drive T:.
MMEM:DEL 'C:\R_S\INST\USER\Results\Test001.txt'
//Deletes the specified file from the instrument hard disk.
//or
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:.
11.9.6.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'.
Managing Settings and Results