Agilent Technologies 86100-90086 Sprinkler User Manual


 
2-2
Sample Programs
Sample Programs
Each program in this chapter demonstrates specific sets of instructions. This chapter shows
you some of those functions, and describes the commands being executed. The sample pro-
gram listings are included at the end of this chapter. Both C and BASIC examples are
included. The header file is:
hpibdecl.h
The C examples include:
•init.c
•gen_srq.c
•srq.c
•learnstr.c
sicl_IO.c
natl_IO.c
multidatabase.c
The BASIC examples include:
•init.bas
•srq.bas
lrn_str.bas
This chapter includes segments of both the C and BASIC sample programs. Each program
includes the basic functions of initializing the interface and analyzer, capturing the data, and
analyzing the data. In general, both the C and BASIC sample programs typically contain the
following fundamental segments:
Segment Description
main program Defines global variables and constants, specifies include files, and
calls various functions.
initialize Initializes the GPIB and analyzer, and sets up the analyzer and the ACQuire subsystem.
acquire_data Digitizes the waveform to capture data.
auto_measurements Performs simple parametric measurements.
transfer_data Brings waveform data and voltage/timing information (the preamble) into the computer.