Agilent Technologies 8156A manual 137

Models: 8156A

1 289
Download 289 pages 37.75 Kb
Page 137
Image 137

Programming Examples

Example 3 - Measuring and Including the Insertion Loss

Listing

10!-----------------------------------------

20!

30! Programming Example 3

40!

50! Measuring the Insertion Loss and using it as a Cal factor

60!

70!-----------------------------------------

80!

90! Definitions and Initializations

100!

110Att=728

120Mm=722

130!

140OUTPUT Mm;"*rst;*cls"

150OUTPUT Att;"*rst;*cls"

160!

170! Setup the instruments, with the output of the source connected

180! to the input of the sensor and wait for the ENTER key to

190! be pressed before continuing

200!

210CLEAR SCREEN

220PRINT TABXY(4,17);""

230INPUT "Connect the Source to the Sensor and then press ENTER",Inp$

240!

250! Set the sensor wavelength to that of the source

260!

270OUTPUT Mm;"sour2:pow:wave?"

280ENTER Mm;Wvl

290OUTPUT Mm;"sens1:pow:wave ";Wvl

300!

310! Activate the source

320!

330OUTPUT Mm;"sour2:pow:stat on"

340!

350! Set the instrument to measure in dB, and take the current power

360! as the reference.

370!

380OUTPUT Mm;"sens1:pow:ref:stat on"

390WAIT 2

Let everything settle before making a reading

400OUTPUT Mm;"sens1:pow:ref:disp"

410!

420! Switch off the source and prompt for the next hardware se

tup

430!

440OUTPUT Mm;"sour2:pow:stat off"

450PRINT TABXY(4,17);""

460INPUT "Connect the Attenuator into the setup and press ENTE R to continue:,Inp$

470!

480! Set the wavelength on the attenuator

490!

500OUTPUT Att;"inp:wave ";Wvl

510!

520! Switch on the source, enable the attenuator

137

Page 137
Image 137
Agilent Technologies 8156A manual 137