19SCPI Programming FundamentalsSCPI Language BasicsParameters in CommandsThere are four basic types of parameters: booleans, keywords, variables and arbitrary block program data.Variable ParametersTypeDescriptionOFF|ON|0|1(Boolean)This is a two state boolean-type parameter. The numeric value 0 is equivalent to OFF. Any numeric value other than 0 isequivalent to ON. The numeric values of 0 or 1 are commonly used in the command instead of OFF or ON. Queries of theparameter always return a numeric value of 0 or 1.keywordThe keywords that are allowed for a particular command are defined in the command syntax description.UnitsNumeric variables may include units. The valid units for a command depend on the variable type being used. See thefollowing variable descriptions. The indicated default units will be used if no units are sent. Units can follow thenumerical value with, or without, a space.VariableA variable can be entered in exponential format as well as standard numeric format. The appropriate range of thevariable and its optional units are defined in the command description.The following keywords may also be used in commands, but not all commands allow keyword variables.•DEFault - resets the parameter to its default value.•UP - increments the parameter.•DOWN - decrements the parameter.•MINimum - sets the parameter to the smallest possible value.•MAXimum - sets the parameter to the largest possible value.The numeric value for the function’s MINimum, MAXimum, or DEFault can be queried by adding the keyword to thecommand in its query form. The keyword must be entered following the question mark.Example query:SENSE:FREQ:CENTER? MAXTypeDescriptionAn integer value with no units.A floating point number with no units.A positive rational number followed by optional units. The default unit is Hertz. Acceptable units include: Hz, kHz, MHz,GHz.A rational number followed by optional units. The default units are seconds. Acceptable units include: ks, s, ms,s, ns.A rational number followed by optional units. The default units are Volts. Acceptable units include: V, mV,V, nVA rational number followed by optional units. The default units are Amperes. Acceptable units include: A, mA,A, nA.A rational number followed by optional units. The default units are W. Acceptable units include: kW, W, mW,W, nW,pW.A rational number followed by optional units. The default units are dBm. Acceptable units include: dBm, dBmV, dBV.A positive rational number followed by optional units. The default units are dB. Acceptable units include: dB.A rational number between 0 and 100. You can either use no units or use PCT.A rational number followed by optional units. The default units are degrees. Acceptable units include: DEG, RAD.