HP 61010A Owner's Manual page 62

Digital i/o
Table of Contents

Advertisement

Example 1
program shell
101.0 LEVEL = 1.36
1020 CALL SET.THRESHOLD(DIG.IN.01,LEVEL)
These statements set the Digital Input's logic threshold level to
1.36 volts.
1030 CALL SET.COMPLEMENT(DIG.IN.01/TWOS)
This statement sets 2's-complemeni data format, meaning
integers in the range of -32768 to 32767 are returned.
1040 CALL MEASURE(DIG.IN.01,ABCD)
1050 PRINT ABCD
These statements program the Digital Input to take a reading of
the input bits. The result is stored in the variable ABCD, which
is then printed out.
1060 STOP
Example 2
program shell
1010 LEVEL = 1.36
1020 CALL SET.THRESHOLD(DIG.IN.01,LEVEL)
1030 CALL SET.COMPLEMENT(DIG.IN.01,TWOS)
1040 CALL ENABLE .HANDSHAKE(DIG .IN.01)
These statements set the Digital Input's threshold, specify 2's-
comphement data format, and enable the handshake mode.
5-14
Programming With BASIC

Advertisement

Table of Contents
loading

Table of Contents