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 resp onse 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 p erform a stimulus/response
measurement. This program measures the linearityof a voltage
controlled oscillator (VCO). A VCO is a device that outputs a
frequency prop ortional to an input signal level. Figure 1-28 shows
how the hardware is congured.
Figure 1-28. Voltage Controlled Oscillator Test
Program Listing.
20 !
30 INTEGER First,Last,Testpoint,Dummy
40 DIM Id$[70]
50 ASSIGN @Stimulus TO 717
60 ASSIGN @Response TO 718
70 !
80 First=0
90 Last=100
Getting Started Programming 1-77