Omega Vehicle Security 1400 CD Player User Manual


 
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