Appendix A API Command Reference
NetScan Users Manual A-29
I# - Digital Input Stamping
TYPE
System
EXECUTION
Deferred
SYNTAX
I#state
Specify whether or not digital input stamping will be enabled. state may
have either of the following values: The default of 0, which disables digital
input stamping, or 1 to enable digital stamping.
DESCRIPTION
The Digital Input Stamping (I#) command, when enabled, will append the digital input state to the end of each
scan as it occurs in real time.
The digital input state consists of 8 bits (I8 through I1). Each bit has an ass igned binary value of “1” or 0,
where “1” indicates digital input on and “0” indicates digital input off.
In binary mode, 2 bytes will be appended as follows: Byte 2: 00h, I8 - I1
In ASCII mode, 8 bytes will be appended as follows: DXXXD000
Where D = User Terminator, and XXX = the decimal equivalent of I8 - I1.
Note: If Alarm Stamping (A#) is also enabled, the Digital Input Stam p (I#) will be appended after the
Alarm Stamp.
EXAMPLES
Without Digital Input Stamping (default):
PRINT#1, I#0X Disable digital input stamp
Configure and start an acquisition
PRINT#1, R1X Request the next scan in the buffer
LINE INPUT#1, A$
....+0234.20-0019.40+0001.40+0023.60
With Digital Input Stamping:
PRINT#1, I#1X Enable digital input stamping
Configure and start an acquisition
PRINT#1, R1X Request the next scan in the buffer
LINE INPUT #1, A$
....+0234.20-0019.40+0001.40+0023.60 036 000