A SERVICE OF

logo

138
Programming Examples
Example 3 - Measuring and Including the Insertion Loss
530 !
540 OUTPUT Mm;"sour2:pow:stat on"
550 OUTPUT Att;"outp on"
560 !
570 ! Read in the power now (the insertion loss of the attenuat
or)
580 ! and put it into the calibration factor on the attenuator.
590 !
600 OUTPUT Mm;"read1:pow?"
610 ENTER Mm;Insloss
620 OUTPUT Att;"inp:offs "; -Insloss
The ‘-’ sign is here because the value from the attenuator is the insertion gain
630 END