Note On :8Asic Syntax - HP 98640A Installation And Reference Manual

7-channel analog input interface
Table of Contents

Advertisement

98640A Analog Input Interface
Note on BASIC Syntax
If you're programming an application in BASIC you can use the HP 98645A Measurement Library
routines to access the HP 98640A card and avoid the burden of writing your own routines. If,
however, you need to access the card directly from BASIC, you will have to use READIO and
WRITEIO statements as the system
10
handlers (such as STATUS, CONTROL, OUTPUT, ENTER) do
not recognize this in terf ace.
Remember that the pace and analog data registers on this card are 16 bit registers. To transfer 16 bits
of data to/from the card simply specify a negative select code in the READIO/WRITEIO statement.
The following program segment writes a 16 bit value to the pace register:
10
Isc= '18
!select code
20
Pace_lreg
-=
4
30
WRITEIO -Isc,Pace_reg;12232
!sets pace register for 32 msec
4-13

Advertisement

Table of Contents
loading

Table of Contents