Appendix A
API Command Reference
NetScan User’s Manual
A-39
The following table summarizes terminator usage with all possible commands in ASCII mode (no terminators are
used in binary mode), where X indicates that the terminator is asserted at the end of the response, O indicates
that the terminator is asserted within the response to separate channel and scan readings, and a blank 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
Summary of Contents for OMB-NETSCAN 1500
Page 6: ...iv NetScan User s Manual...
Page 18: ...1 12 Configuring and Starting NetScan NetScan User s Manual Notes...
Page 38: ...3 8 General Information and Specifications NetScan User s Manual Notes...
Page 82: ...4 44 ChartView Software Reference NetScan User s Manual Notes...
Page 118: ...6 20 Calibration NetScan User s Manual...
Page 140: ...A ii NetScan User s Manual...
Page 192: ...API Command Reference Appendix A A 52 NetScan User s Manual Notes...
Page 237: ...Appendix D Registers Data Formats Queries NetScan User s Manual D 13...
Page 244: ...NetScan Program Examples Appendix E E 2 NetScan User s Manual...
Page 248: ...ASCII Code Summary Appendix F F 4 NetScan User s Manual Notes...
Page 250: ...NetScan Error Messages Appendix G G 2 NetScan User s Manual Notes...
Page 252: ...Abbreviations Appendix H H 2 NetScan User s Manual Notes...
Page 254: ...NetScan User s Manual...