Command reference
R&S
®
ZNL/ZNLE
599
User Manual 1178.5966.02 ─ 19
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 'Q:','Server\ACLRTest'
//Maps drive Q: to the directory 'Server\ACLRTest'
//-----Saving data on the instrument-----
MMEM:MDIR 'C:\R_S\INSTR\USER\Results'
//Creates a directory called 'Results' on drive C:
MMEM:NAME 'C:\R_S\INSTR\USER\Results\Test001.txt'
//Defines a file called 'Test001.txt'
MMEM:COMM 'ACLR test results'
//Creates a comment for the settings to be displayed in gui.
MMEM:DATA 'Test001.txt',#212FileContents
//Creates the file 'Test001.txt'and writes 12 characters to it
//-----Copying the data to another location---
MMEM:COPY 'C:\R_S\INSTR\USER\Results\Test001.txt','Q:'
//Copies the specified file to network drive Q:.
MMEM:DEL 'C:\R_S\INSTR\USER\Results\Test001.txt'
//Deletes the specified file from the instrument hard disk.
//or
//MMEM:MOVE 'C:\R_S\INSTR\USER\Results\Test001.xml','Q:\TestResults.txt'//
//Moves the file 'Test001.txt' to drive Q:, renames it to 'Testresults.txt'
//and removes it from the instrument hard disk.
MMEM:RDIR 'C:\R_S\INSTR\USER\Results'
//Deletes the directory called 'Results' from drive C:, unless it still
//contains any content.
//-----Disconnecting the network drive---
MMEM:NETW:DISC 'Q:'
//Disconnect drive Q:.
Loading data
MMEM:CDIR?
//Returns the path of the current directory.
//e.g.
C:\R_S\Instr\user\
MMEM:CDIR 'C:\R_S\INSTR\USER\Results'
//Changes the current directory.
MMEM:CAT? 'C:\R_S\INSTR\USER\Results\*.xml'
//or
MMEM:CAT? '*.xml'
//Returns a list of all xml files in the directory 'C:\R_S\INSTR\USER\Results'.
MMEM:CAT:LONG? '*.xml'
//Returns additional information about the xml files in the directory
// 'C:\R_S\INSTR\USER\Results'.
Common instrument commands