Command reference
R&S
®
ZNL/ZNLE
600
User Manual 1178.5966.02 ─ 19
Storing instrument settings
In this example we will store the instrument settings for the "Spectrum" channel setup.
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'.
Loading instrument settings
In this example we will load the hardware settings from the configuration file
Spectrum.dfl
to a new "Spectrum2" channel setup.
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
//with the existing 'Spectrum' channel.
INST:REN 'Spectrum2','Spectrum3'
//Renames the loaded channel to 'Spectrum3'.
Printing to a file
//Select bmp as the file format.
HCOP:DEV:LANG BMP
//Select the file name for the printout.
MMEM:NAME 'C:\R_S\INSTR\USER\Screenshot.bmp'
//Select all screen elements for printing
HCOP:ITEM:ALL
//Add a comment to the printout.
HCOP:ITEM:WIND:TEXT 'ACLRResults'
//Store the printout in a file called 'Screenshot.bmp'.
HCOP
//Store another printout in a file called 'Screenshot_001.bmp'.
HCOP:NEXT
Printing on a printer
HCOP:DEST2 'SYST:COMM:PRIN'
//Prints the data on a printer.
SYST:COMM:PRIN:ENUM:FIRS?
SYST:COMM:PRIN:ENUM?
//Returns the available printers, e.g.
//'LASER on LPT1'
//''
Common instrument commands