Remote control
R&S
®
QAR50
62
User Manual 1179.4992.02 ─ 02
12.3
Remote control examples
The following examples show a typical sequence of remote commands to perform a
measurement with the R&S
QAR50.
//Initiate SCPI session
>R
//Query system status
SYST:STAT:CODE?
//If result = 0, system is ready for operation
//Define size of evaluation window
MEAS:EVAL:WIND 50,50
//Define settings for automatic result storage
MEAS:RES:SAVE:AUTO 1
MEAS:RES:SAVE:WHAT 1
MEAS:RES:DIR 'c:\qar50\mymeasurements\'
//Run measurement
MEAS:NORM:REFL:REQ?
//If result = 1, normalize reflection measurement
MEAS:NORM:REFL:STAR
MEAS:NORM:TRAN:REQ?
//If result = 1, normalize transmission measurement
MEAS:NORM:TRAN:STAR
MEAS:STAR
MEAS:RES?
//returns, e.g.:
"reflection" : {
"S11" : {
"mean_Band1" : 0.015746,
"mean_Band2" : 0.020094,
"fResponse_mean_Band1" : 0.009148,
"fResponse_mean_Band2" : 0.009332,
"fResponse_minimum_value" : 0.000508,
"fResponse_minimum_frequency" : 75212598424.776474
}
//etc.
//Query location of the measurement results
MEAS:SAVE? 'test'
//Restore the results
MEAS:LOAD 'c:\qar50\mymeasurements\20211111-111111_test'
//End SCPI session
>L
Remote control examples