Remote control commands
R&S
®
SMM100A
877
User Manual 1179.1341.02 ─ 05
Example: Fill user correction data with sensor
The following example shows a command sequence to fill a user correction list auto-
matically supported by a connected R&S NRP.
// Fill a user correction list with the level values
// measured by an R&S NRP,
// store the data in a file and enable user correction.
*RST; *CLS
SOURce1:CORRection:CSET:SELect "/var/user/Ucor1_AutoFill.uco"
SOURce1:CORRection:CSET:DATA:FREQuency 100MHz,110MHz,120MHz,130MHz,140MHz,150MHz
SOURce1:CORRection:ZERoing:STATe 1
SOURce1:CORRection:CSET:DATA:SENSor1:POWer:SONCe
// Query the number of automatically filled correction level values
SOURce1:CORRection:CSET:DATA:POWer:POINTs?
// 6
SOURce1:CORRection:STATe 1
// Query the correction value at a certain frequency
FREQ 120000000
SOURce1:CORRection:VALue?
// -52.13
Example: User correction data exchange
The following example shows a command sequence to export a user correction list
(here the list created with the example before) into an ASCII file. Further hardware set-
tings are not considered.
// Select a user correction file for exporting to file in ASCII format
// Set ASCII data parameters
// Set the ASCII file extension, the decimal separator
// and the column separator for the ASCII data
SOURce1:CORRection:DEXChange:AFILe:CATalog?
// my_ucor
SOURce1:CORRection:CSET:CATalog?
// ucor1,Ucor1_AutoFill
SOURce1:CORRection:CSET:SELect "/var/user/Ucor1_AutoFill.uco"
SOURce1:CORRection:DEXChange:AFILe:EXTension CSV
SOURce1:CORRection:DEXChange:AFILe:SEParator:DECimal DOT
SOURce1:CORRection:DEXChange:AFILe:SEParator:COLumn COMMa
// Select source and destination
SOURce1:CORRection:DEXChange:AFILe:SELect "/var/user/ucor2ASCII"
// Export the user correction data into the ASCII file
SOURce1:CORRection:DEXChange:MODE EXPort
SOURce1:CORRection:DEXChange:EXECute
SOURce subsystem