53220A/53230A Math, Graphing, and Data Logging 6
Keysight 53220A/53230A User’s Guide 213
For ease in identifying readings from the front panel, a user-defined “units string” 
can be assigned to any scale function. The user string replaces the 
instrument-assigned measurement units (Hz, pct, ppm, ...). The unit prefix (μ, m, 
k, M) remains. 
The units string is displayed on the counter and defined using the commands: 
CALCulate[1]:SCALe:UNIT:STATe {OFF|ON}
CALCulate[1]:SCALe:UNIT:STATe? (query form)
CALCulate[1]:SCALe:UNIT "<units>"
CALCulate[1]:SCALe:UNIT? (query form)
ON - displays user-defined units on the front panel. OFF - turns off the 
user-defined units.
units are one to four characters. Double quotes enclosing the string are 
included in the command. The assigned units appear in the counter display only. 
Following a reset (*RST) or instrument preset (SYSTem:PRESet) user-defined 
units are disabled.
From the front panel, units are entered by pressing the User Units softkey, enabling 
the units (On), and using the rotary knob and arrows to enter and select the 
character position.
Scaling example
The following example is a typical sequence of scaling commands from the SCPI 
CALCulate[1] subsystem. 
//Scale 500 readings (M/x-B) and assign reading units
CONF:FREQ (@1)  // frequency measurement
SAMP:COUN 500 // 500 readings/trigger
SENS:FREQ:GATE:TIME .010 // set minimum gate time
CALC:STAT ON  // enable CALCulate1 subsystem
 CALC:SCAL:STAT ON  // enable scaling operation
CALC:SCAL:FUNC SCAL  // set scaling function = Mx-B
CALC:SCAL:INV ON  // invert readings (M/x-B)
CALC:SCAL:GAIN 100  // set gain (M)
CALC:SCAL:OFFS 0  // set offset (B)
CALC:SCAL:UNIT:STAT ON  // enable user-defined units