HP 24A, 83620A Example Program, Figure l-28. Voltage Controlled Oscillator Test Program Listing

Models: 83620A

1 508
Download 508 pages 6.17 Kb
Page 106
Image 106
Example Program

Example Programs The following is an example program using SCPI compatible instruments. The example is written in HP BASIC.

This example is a stimulus and response application. It uses a source and counter to test a voltage controlled oscillator.

Example Program

Description. This example demonstrates how several SCPI instruments work together to perform a stimulus/response measurement. This program measures the linearity of a voltage controlled oscillator (VCO). A VCO is a device that outputs a frequency proportional to an input signal level. Figure l-28 shows how the hardware is configured.

Unit Under Test

c

Stimulus 500mVSource

O-

vco

.

Response

ICounter

Figure l-28. Voltage Controlled Oscillator Test Program Listing.

20 !

30 INTEGER First,Last,Testpoint,Dummy

40 DIM Id$[70]

50ASSIGN @Stimulus TO 717

60ASSIGN @Response TO 718

70!

80First=0

90Last=100

100!

110CLEAR @Stimulus

120CLEAR @Response

130!

140OUTPUT OStimulus;"*RST"

150OUTPUT OResponse;"*RST"

160!

170PRINT "Voltage Controlled Oscillator Test"

180PRINT

190 !

200 PRINT "Source Used . . . 1,

l-78 Getting Started Programming

Page 106
Image 106
HP 24A Example Program, Figure l-28. Voltage Controlled Oscillator Test Program Listing, l-78 Getting Started Programming