Remote Control Commands
R&S
®
SMA100B
342
User Manual 1178.3834.02 ─ 03
12.11.1 Programming Examples
Example: Store a hard copy of the display
The following example lists commands to configure and execute a hard copy to an
automatic named file.
// ******************************************************************
// Hard copy settings
// ******************************************************************
:HCOPy:DEVice:LANGuage PNG
:HCOPy:FILE:NAME:AUTO:STATe 1
// defines the output format
// sets the instrument to automatically create output file names
// ******************************************************************
// Configure hard copy options, set automatic naming rules
// An automatically generated file name consists of:
// <Prefix><YYYY><MM><DD><Number>.<Format>
// ******************************************************************
:HCOPy:DEVice:LANGuage BMP
// defines output format *.bmp
:HCOPy:REGion DIALog
// selects the region to be copied
:HCOPy:FILE:AUTO:DIR "usb/HCopy"
// sets destination directory of automatic named file to "/usb/HCopy"
:HCOPy:FILE:NAME:AUTO:FILE:PREFix:STATe 1
:HCOPy:FILE:NAME:AUTO:FILE:PREFix:"hardcopy"
:HCOPy:FILE:NAME:AUTO:FILE:YEAR:STATe 1
:HCOPy:FILE:NAME:AUTO:FILE:MONTh:STATe 1
// uses automatic naming prefix
// sets automatic naming prefix to "hardcopy"
// uses automatic naming date parameters year and month
// ******************************************************************
// Execute and transfer the hard copy
// ******************************************************************
:HCOPy:EXECute
:HCOPy:DATA
// generates a hard copy
// transfers the hard copy to the remote client
:HCOPy:FILE:AUTO:FILE?
// queries the automatic file name
// response: "hardcopy1607001.bmp"
:HCOPy:FILE:AUTO:NUMBer?
// queries the number in the automatic file name
// response: "001"
:HCOPy:FILE:AUTO?
HCOPy Subsystem