SpaceLogger
®
.S10
User Manual
©2012-13 Richard Paul Russell Limited, New Harbour Building, Bath Road, Lymington SO41 3SE United Kingdom
Tel +44 (0) 1590 679755 Fax +44 (0) 1590 688577 e-mail [email protected] web www.r-p-r.co.uk
- 9 -
017SL167/3 04/09/13
5.2
To Define the Data Sample(s) to be Recorded
The SpaceLogger.S10 is capable of being used with any sensors that output their information in
ASCII sentences. The format of the data must be 8 bits and no parity. It is also a requirement that
each data record has identifying start and end characters to define the data sequence to be sampled.
Up to two different data samples may be defined. By default just one sample is recorded, defined
by STX (start) and ETX (end) identifiers.
The start and end identifiers may be defined in one of two ways; either a single ASCII character
specified by its decimal value (0-255) or by a string of up to 31 characters contained by quote
marks.
The SpaceLogger.S10’s default start character is <STX> (2) and end character is <LF> (10).
The SpaceLogger.S10 may be set to recognise any other start and end characters using the
following SETUP.TXT command lines:
STX=x
or
STX=“cc…”
ETX=x
or
ETX=“cc…”
Where:
o
x is the decimal value (0-255) of the ASCII character that indicates the start (STX)
or end (ETX) of the data string that is to be stored. Default value for STX is 2.
Default value for ETX is 10. *
o
cc… is a string of up to 31 ASCII characters
Note:
The string is case sensitive.
Question marks (?) may be used to denote any character i.e. as wildcards.
The following escape codes may be included in the STX and ETX strings:
\n = 0x0A
LF
\r = 0x0D
CR
\" = 0x22
"
\' = 0x27
'
\\ = 0x5C
\
\1 = 0x01
SOH
\2 = 0x02
STX
\3 = 0x03
ETX
\4 = 0x04
EOT
\5 = 0x05
ENQ
\6 = 0x06
ACK
\7 = 0x07
BEL
\a = 0x07
BEL
\b = 0x08
BS
\f = 0x0C
FF
\t = 0x09
HT
\v = 0x0B
VT
* For table of ASCII characters and their decimal values, refer to the Appendix A2.