30
S:\Hp8960\E1960A GSM Mobile Test Application\A.04 Release\Proguide\Chapters\prog_prog_guide_step3.fm
Step 3: Configure the Measurement Execution Parameters
Configuring Measurement Specific Parameters
Background
Some measurements have parameters that are specific to the measurement. Refer to the GPIB syntax listings
for a detailed list of execution parameters for individual measurements. This section gives you some insight
into the possible programming techniques that can be used to configure these measurement specific execution
parameters.
Sending Comma-Separated Parameter Configuration Lists to the Test Set
High-level measurements in the test application may require numerous parameters to configure the
measurement. For example: the output RF spectrum measurement can require up to 22 frequency offsets for
the modulation part of the measurement and up to 8 frequency offsets for the switching part of the
measurement. The offsets are sent as comma separated lists. There are a variety of techniques that can be
used to send these lists. Some of these techniques are shown below.
1. Include each individual parameter in the command itself. For example:
OUTPUT Test_set;"SET:ORFS:SWIT:FREQ .4MHZ,.6MHZ,-.4MHZ,-.6MHZ"
2. Store the parameter values in a data structure and send the command with the data structure appended to
it. For example:
• Using a string variable:
DIM Swit_offs$[255]
Swit_offs$=”.4MHZ,.6MHZ,-.4MHZ,-.6MHZ,1.2MHZ,-1.2MHZ”
OUTPUT Test_set;”SET:ORFS:SWIT:FREQ “&Swit_offs
• Using numeric arrays:
OPTION BASE 1
REAL Swit_offs(8),Mod_offs(22)
!
DATA 400,-400,600,-600,1200,-1200,1800,-1800
DATA .1,-.1,.2,-.2,.25,-.25,.4,-.4,.6,-.6,.8,-.8
DATA 1,-1,1.2,-1.2,1.4,-1.4,1.6,-1.6,1.8,-1.8
!
READ Swit_offs(*)
READ Mod_offs(*)
!
Swit_img:IMAGE K,7(K,”KHZ,”),K,”KHZ”
Mod_img:IMAGE K,21(K,”MHZ,”),K,”MHZ”
OUTPUT Test_set USING Swit_img;”SET:ORFS:SWIT:FREQ”,Swit_offs(*)
OUTPUT Test_set USING Mod_img;”SET:ORFS:MOD:FREQ”,Mod_offs(*)