Chapter 6 - Programming In Turbo Pascal; General - Keithley KM-488-ROM User Manual

Ieee-488 interface board
Table of Contents

Advertisement

Chapter 6
PROGRAMMING IN TURBO PASCAL
While Chapter 3 gives a brief overview of the routines available for programming the KM-
48SROM, this chapter gives instructions for calling the routines from TURBO PASCAL. The
routines appear in alphabetical order and include a sample program for each.
6.1
GENERAL
TURBO PASCAL direct support is currently offered for versions 4.0 and 5.0. The interface for
TURBO PASCAL includes four different files, as follows:
KM488PAS.TPU
"UNIT" file for use with Borland TURBO PASCAL version 5.0.
KM488P4.TPU
"UNIT' file for use with Borland TURBO PASCAL version 4.0.
KM488PASPAS
Source file to be used for m-building TURBO Pascal "UNfT" file.
KM488PAS.OBJ
Object code file to be used for re-building TURBO Pascal "UNIT" file.
The files KM488PASPAS and KM488I'LB.OBJ can be used to create a new "unit" file should
you need to.
Supported Versions
The Envtronment
Turbo PASCAL versions 4.0,5.0 and higher.
Before you begin to develop programs in TURBO PASCAL,
several files must be present in your working directory. Copy
the appropriate files from the KM48EROM Disks to your
working directory:
TURBO PASCAL 4.0
TURBO PASCAL 5.0
\turbopas~488p4.tpu
IntrbopasUtm488pas.tpu
NOTE: km488p4.pas must be renamed km488pas.tpu.
File Header
Compiling
Software
-
Your application program can be compiled in the usual fashion.
Be sure to include the following line in your program:
USES hm6pas;
The KM-488-ROM firmware contains a number of configuration
parameters which govern the default settings of the input and
output message terminator settings, message timeout periods,
PROGRAMMING IN TURBO PASCAL
6 - 1

Advertisement

Table of Contents
loading

Table of Contents