![IOtech Digital488/80A User Manual Download Page 63](http://html1.mh-extra.com/html/iotech/digital488-80a/digital488-80a_user-manual_2088030063.webp)
EXAMPLE 1: Data Format
F0
- ASCII Hexadecimal
PRINT#1,"CLEAR08"
Line 1:
Reset the Digital488/80A.
PRINT#1,"OUTPUT08;R0P0C2G2X"
Line 2:
Configure Ports 1 and 2 as output.
PRINT#1,"OUTPUT08;F0X"
Line 3:
Select ASCII hexadecimal format.
PRINT#1,"OUTPUT08;D4E6BZX"
Line 4:
Output ASCII hexadecimal data
4E6B
to Ports 1 and 2.
PRINT#1,"ENTER08",
INPUT#2,A$
Line 6:
Read data from the Digital488/80A.
PRINT A$
Line 7:
Display shows:
4E6B
EXAMPLE 2: Data Format
F1
- ASCII Character
PRINT#1,"CLEAR08"
Line 1:
Reset the Digital488/80A.
PRINT#1,"OUTPUT08;C5G2R0P0X"
Line 2:
Configure all 5 ports as output; select all 5 ports.
PRINT#1,"OUTPUT08;F1X"
Line 3:
Select ASCII character format.
PRINT#1,"OUTPUT08;D4>6ZX"
Line 4:
Send ASCII character data
4>6
to the Digital488/80A.
PRINT#1,"ENTER08",
INPUT#2,A$
Line 6:
Read data from the Digital488/80A.
PRINT A$
Line 7:
Display shows:
00000004>6
PRINT#1,"OUTPUT08;D1??2ZX"
Line 8:
Send ASCII character data
1??2
to the Digital488/80A.
PRINT#1,"ENTER08",
INPUT#2,A$
Line 10:
Read data from the Digital488/80A.
PRINT A$
Line 11:
Display shows:
0000001??2
EXAMPLE 3: Data Format
F2
- ASCII Binary
PRINT#1,"CLEAR08"
Line 1:
Reset the Digital488/80A.
PRINT#1,"OUTPUT08;C5G2R0P1X"
Line 2:
Configure all 5 ports as output; select Port 1 only.
PRINT#1,"OUTPUT08;F2X"
Line 3:
Select ASCII binary format.
PRINT#1,"OUTPUT08;D1;1011ZX"
Line 4:
Send ASCII binary data
1;1011
to the Digital488/80A.
PRINT#1,"ENTER08",
INPUT#2,A$
Line 6:
Read data from the Digital488/80A.
PRINT A$
Line 7:
Display shows:
0001;1011
EXAMPLE 4: Data Format
F3
- ASCII Decimal
PRINT#1,"CLEAR08"
Line 1:
Reset the Digital488/80A.
PRINT#1,"OUTPUT08;C5G2R0P0X"
Line 2:
Configure all 5 ports as output; select all 5 ports.
PRINT#1,"OUTPUT08;F3X"
Line 3:
Select ASCII decimal format.
PRINT#1,"OUTPUT08;D240;165ZX"
Line 4:
Send ASCII decimal data to the Digital488/80A.
PRINT#1,"ENTER08",
INPUT#2,A$
Line 6:
Read data from the Digital488/80A.
PRINT A$
Line 7:
Display shows:
000;000;000;240;165
EXAMPLE 5: Data Format
F5
- High-Speed Binary
PRINT#1,"OUTPUT08#3F5X"
Line 1:
Select high-speed binary format.
Note:
The
#3
tells Driver488 to send only the 3-byte command
string
F5X
without terminators. If this was not done, the
first data bytes to appear at the output of the
Digital488/80A would be
CR LF
or whatever terminators
were selected.
PRINT#1,CHR$(255),CHR$(125)
Line 2:
Send high-speed binary data to the Digital488/80A.
56 Digital488/80A Commands
967695
Digital488/80A User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com