Appendix A
API Commands
ChartScan User’s Manual
A-37
I#
- Digital Input Stamping
TYPE
System
EXECUTION
Deferred
SYNTAX
I#state
Specifies digital input stamping as
enabled
,or
disabled
.
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 assigned 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 Stamp (
I#
) will be appended
after
the
Alarm Stamp.
EXAMPLES
Without Digital Input Stamping (default):
PRINT#1, “OUTPUT07;I#0X”
‘ Disable digital input stamp
‘ Configure and start an acquisition
PRINT#1, “OUTPUT07;R1X”
‘ Request the next scan in the buffer
PRINT#1, “ENTER07”
‘ Retrieve it
INPUT A$
‘
....+0234.20-0019.40+0001.40+0023.60
With Digital Input Stamping:
PRINT#1, “OUTPUT07;I#1X”
‘ Enable digital input stamping
‘ Configure and start an acquisition
PRINT#1, “OUTPUT07;R1X”
‘ Request the next scan in the buffer
PRINT#1, “ENTER07”
‘ Retrieve it
INPUT A$
....+0234.20-0019.40+0001.40+0023.60 036 000
Summary of Contents for OMB-CHARTSCAN 1400
Page 1: ...August 2002 OMB CHARTSCAN 1400 Portable Data Recorder p n OMB 483 0901 Rev 3 1...
Page 6: ...iv ChartScan User s Manual...
Page 24: ...ChartScan User s Manual...
Page 32: ...2 8 General Information ChartScan User s Manual Notes...
Page 56: ...3 24 ChartScan User s Manual Notes...
Page 124: ...6 20 Calibration ChartScan User s Manual...
Page 126: ...A ii ChartScan User s Manual...
Page 136: ...API Commands Appendix A A 10 ChartScan User s Manual Notes...
Page 176: ...API Commands Appendix A A 50 ChartScan User s Manual...
Page 230: ...Appendix C Registers Data Formats Queries ChartScan User s Manual C 13...
Page 237: ...Registers Data Formats Queries Appendix C C 20 ChartScan User s Manual Notes...
Page 257: ...E 2 ChartScan User s Manual Notes...
Page 265: ...ASCII Code Summary Appendix F F 8 ChartScan User s Manual Notes...
Page 269: ...Abbreviations Appendix H H 2 ChartScan User s Manual Notes...
Page 271: ...ChartScan User s Manual...