Last updated: January 16, 2009
The following information provides additional details on Step 3 of the Programming Flowchart. This information is applicable to all test applications.
In this step you set up the conditions under which the measurements operate. You do this by configuring measurement parameters.
There are two different types of measurement parameters:
The SETup subsystem is used to configure measurement parameters. Each individual measurement parameter can be set and queried using the associated SETup subsystem command. The general hierarchy of the SETup subsystem command structure is as follows:
SETup:<measurement mnemonic>:<measurement parameter> <parameter setting/value>
There are three types of generic measurement parameters:
Measurement Count (used by most measurements)
Measurement Count State
Measurement Count Number
Measurement Timeout (used by all measurements)
Measurement Timeout State
Measurement Timeout Time
Measurement Trigger (used by most measurements)
Trigger Arm (used by all measurements)
Trigger Source (not applicable to analog measurements)
Trigger Delay (not applicable to analog measurements)
The measurement count parameters control measurement averaging. The STATe command turns averaging on or off, and the NUMBer command determines the number of averages. The SNUMber command is a complex command which allows you to turn averaging on and set the number of averages in one command.
Parameter | Command Syntax |
---|---|
Measurement Count State |
SETup:<meas-mnemonic>:COUNt:STATe <ON|1|OFF|0> |
Measurement Count Number |
SETup:<meas-mnemonic>:COUNt:NUMBer <numeric value> |
Measurement timeout parameters control the maximum time that a measurement executes. TIMe sets the amount of time and STATe determines if the timeout is in use. The STIMe command is a complex command which enables you to set both parameters in one command.
Parameters | Command Syntax |
---|---|
Measurement Timeout Time and State |
SETup:<meas-mnemonic>:TIMeout[:STIMe] <numeric value>[<suffix>] |
Measurement Timeout State |
SETup:<meas-mnemonic>:TIMeout:STATe <ON|1|OFF|0> |
Measurement Timeout Time |
SETup:<meas-mnemonic>:TIMeout:TIME <numeric value>[<suffix>] |
There are three measurement trigger parameters. They control the arming of a measurement, the source of the trigger, and the trigger's delay.
The trigger arm parameter determines whether the test set makes one measurement and then stops (single), or automatically re-arms upon completion of one measurement and repeats the process (continuous). The recommended setting when writing a control program is single (CONTinuous OFF).
The trigger source parameter selects the source of the measurement trigger signal. The recommended Trigger Source setting when writing a control program is AUTO.
The trigger delay parameter controls the delay between the trigger event (the point in time at which the trigger signal is received) and the start of sampling. Negative values indicate that the sampling should occur prior to the trigger event.
Parameter | Command Syntax |
---|---|
Trigger Arm | SETup:<meas-mnemonic>:CONTinuous <ON|1|OFF|0> |
Trigger Source | SETup:<meas-mnemonic>:TRIGger:SOURce <AUTO|IMMediate|PROTocol|RISE> |
Trigger Delay | SETup:<meas-mnemonic>:TRIGger:DELay <numeric value>[<suffix>] |
SETup[:ALL]:CONTinuous:OFF
Measurement-specific measurement parameters set up operating conditions for a specific measurement. For example:
Refer to the GPIB syntax listing for the detailed list of measurement parameters for individual measurements.
! Set trigger arm to single for all measurements: ! OUTPUT Test_set;"SET:CONT:OFF" ! ! ***************************************************** ! Configure Modulation Accuracy Measurement: ! OUTPUT Test_set;"SET:MACC:COUN 5" ! Example of using a complex command to set both the ! measurement count state and number at the same time. ! OUTPUT Test_set;"SET:MACC:TRIG:SOUR AUTO" ! Sets trigger source to auto. ! OUTPUT Test_set;"SET:MACC:TIM 15" ! Sets timeout state to ON and time to 15 sec. ! OUTPUT Test_set;"SET:MACC:EVM10:STAT ON" ! Turns the EVM10 State ON ! ! ****************************************************** ! Configure Digital TX Power Measurement: ! OUTPUT Test_set;"SET:DTXP:COUN 5" OUTPUT Test_set;"SET:DTXP:TRIG:SOUR AUTO" OUTPUT Test_set;"SET:DTXP:TIM 5" ! ! ****************************************************** ! Configure Frequency Stability Measurement: ! OUTPUT Test_set;"SET:FST:COUN 3" OUTPUT Test_set;"SET:FST:TIM 10" ! ! ****************************************************** ! Configure Analog TX Power Measurement: ! OUTPUT Test_set;"SET:ATXP:COUN 5" OUTPUT Test_set;"SET:ATXP:TRIG:SOUR AUTO" OUTPUT Test_set;"SET:ATXP:TIM 15"