210OUTPUT OStimulus;"*IDN?"

220ENTER OStimulus;Id$

230PRINT Id$

240PRINT

250!

260PRINT "Counter Used . . . II

270OUTPUT OResponse;"*IDN?"

280ENTER QResponse;Id$

290PRINT Id$

300PRINT

310!

320OUTPUT OStimulus;":OUTPUT ON"

330!

340PRINT

350PRINT "INPUT [mvI","OUTPUT [kHz]"

360PRINT II _-__--__-_ II ,I1 ____________ II

370PRINT

380!

390FOR Testpoint=First TO Last

400OUTPUT OStimulus;":SOURCE:VOLT ";VAL$(Testpoint/lOOO);";*OPC?"

410ENTER OStimulus;Dummy

420OUTPUT QResponse;":MEAS:FREQ?"

430ENTER OResponse;Reading

440PRINT Testpoint,Reading/lOOO

450NEXT Testpoint

460!

470OUTPUT QSource;":OUTPUT OFF"

480END

Program Comments. Lines 20 to 70: Declare variables and I/O paths for instruments. I/O paths let you use a name for an instrument in OUTPUT and ENTER statements,instead of a numeric address.

80 to 100: Assign values to the input test limits in mV.

110 to 130: Clear the instrument HP-IB interfaces.

140 to 160: Reset each instrument to a known measurement state.

170 to 190: Print the test report title.

200 to 310: Query measurement instruments’ identifications for test traceability.

320 to 330: Connect the source output signal to the output terminals.

340 to 380: Print results table header.

390 to 460: This is the main measurement loop. Line 400 contains two commands. :SOURce:VOLT sets the output level of the source. *OPC? is used to signal that the preceding command has finished executing. To make an accurate measurement,the source output must be allowed to settle. When the output has settled, *OPC? places

Getting Started Programming 1-77