Appendix A API Command Reference
NetScan Users Manual A-39
The following table summarizes terminator usage with all possible comm ands in ASCII mode (no terminators are
used in binary mode), where X indicates that the terminator is asserted at the end of the respons e, O i ndi c ates
that the terminator is asserted within the response to separate channel and scan readings , and a bl ank cell
indicates that the terminator does not affect the command:
Command
Argument
resp
hll
scan
block
sep
R1X
X
O
R2X
O
X
O
R3X
O
X
O
R#chanX
X
R#first-lastX
O
X
U4X
O
X
U5X
O
X
U13X
O
X
All others
X
EXAMPLE
PRINT#1,"C1-4,1X"
Configure four channels for T/C Type J
PRINT#1,"F0,0X"
Configure engineering units, degrees C
PRINT#1,"Q7,7,0,0,0X"
Set the resp and hll terminators to LF/EOI, and
the scan and block terminators to None
PRINT#1,"Q?X"
Get the current query terminators
LINE INPUT#1,A$
PRINT A$
Screen shows Q07,07,00,00,00
PRINT#1,"U13X"
Request the last readings
INPUT#1,A$
Get reading for channel 1
PRINT A$
Screen shows +0104.20
INPUT#1,A$
Get reading for channel 2
PRINT A$
Screen shows +0010.40
INPUT#1, A$
Get reading for channel 3
PRINT A$
Screen shows -0064.10
INPUT#1,A$
Get reading for channel 4
PRINT A$
Screen shows +0006.30
PRINT#1,"Q7,0,0,0,0X"
Set the resp terminator to LF/EOI and the hll,
scan and block terminators to None
PRINT#1,"U13X"
Request the last readings
LINE INPUT#1, A$
Get readings for channels 1 - 4.
PRINT A$
Screen shows...
+0104.20
+0010.40
-0064.10
+0006.30