Download Print this page

Keithley ADC-16 User Manual page 32

Analog input board

Advertisement

CHAPTER 6
THE CALL DRIVER
6.1 GENERAL
The Call Driver is a comprehensive set of functions you may incorporate into your own application
programs. These functions provide a high-level interface to the ADC-16 and perform all required
register-level reads and writes.
The Call Driver is compatible with most BASIC programming languages. Specifically, the Driver
supports the following:
Interpreted BASIC (GWBASIC, BASICA, BASIC)
-
Section 6.2.
QuickBASIC Versions 4.0 and 4.5
-
Section 6.3.
Quick/Professional BASIC Version 7.0 and above
-
Section 6.3.
QBASIC
-
Section6.4
Example programs for each of the supported languages are included in the Distribution Software.
You may find it helpful to refer to one or more of these example programs while reading this chapter.
Since the syntax and application of the BASIC languages are different, this chapter describes
programming in each language separately.
Section 6.5 includes a listing of Calls available in the ADC-16 driver. This section is a quick-reference
only. Detailed descriptions of the Calls are in Chapter 7.
6.2 GWBASIC, BASICA, & BASIC
Program Flow
A typical programming sequence is as follows:
1. Initialize the entry pointers to the driver.
*
2. Load the driver.
*
3. Declare and dimension all variables to be used in the program.
*
NOTE: Failure to declare all variables before opening the driver will cause program pointers to
be shifted
and
the program to fail.
4.
Load the ADC-16 hardware configuration, and open the driver.
*
5. Initialize the driver and board, and establish communications between the driver and the
program. *
6 - 1

Advertisement

loading