Two demonstration programmes are supplied with the launch kit. One is a general purpose data logging application called DEMO_APP and the other called WIND_APP logs data from a WindSonic ultrasonic wind speed and direction sensor.
In the launch kit the SpaceLogger is supplied with the DEMO_APP application already loaded.
The DEMO_APP program is controlled by a text file DEMO_INI.TXT in the SYSTEM folder on the compact flash card. An example of the contents of this file is as follows:
Log scheme=0
Store rate=1
Log rate=100
ADC chans=15
DIG chans=15
ETX char=3
STX char=2
Baud rate=9600
Protocol=RS232
The order of the lines should not be changed. The parameters can be set as follows
| Log scheme: | set to 0 if sampling is to be initiated by the real time
clock (RTC) set to 1 if sampling is to be initiated by receipt of a message on the serial input |
| Store rate: | If the Log scheme is 1 then this parameter controls how often data is sampled and stored. Set to 1 for every message, 2 for every other message, 3 for every third message etc. |
| Log rate: | If Log scheme is 0 then this parameter determines the time between samples. This is in units of 5ms and must be a multiple of 20 or 100ms intervals. So when set to the minimum 20 the sampling rate will be ten times a second, when set to 200 ones a second, when set to 2000 every 10 seconds etc. |
| ADC chans: | Sets which analogue channels are to be sampled and stored according to the following table |
| ADC chans value | A-In0 | A-In1 | A-In2 | A-In3 |
| 0 | ||||
| 1 | x | |||
| 2 | x | |||
| 3 | x | x | ||
| 4 | x | |||
| 5 | x | x | ||
| 6 | x | x | ||
| 7 | x | x | x | |
| 8 | x | |||
| 9 | x | x | ||
| 10 | x | x | ||
| 11 | x | x | x | |
| 12 | x | x | ||
| 13 | x | x | x | |
| 14 | x | x | x | |
| 15 | x | x | x | x |
| DIG chans: | Sets which digital channels are to be sampled and stored according to the following table |
| DIG chans value | D-I/O 0 | D-I/O 1 | D-I/O 2 | D-I/O 3 |
| 0 | ||||
| 1 | x | |||
| 2 | x | |||
| 3 | x | x | ||
| 4 | x | |||
| 5 | x | x | ||
| 6 | x | x | ||
| 7 | x | x | x | |
| 8 | x | |||
| 9 | x | x | ||
| 10 | x | x | ||
| 11 | x | x | x | |
| 12 | x | x | ||
| 13 | x | x | x | |
| 14 | x | x | x | |
| 15 | x | x | x | x |
| ETX char: | Set to the decimal value of the ASCII character that is used for the end of transmission character on the serial input. |
| STX char: | Set to the decimal value of the ASCII character that is used for the start of transmission character on the serial input. |
| Baud rate: | Sets the baud rate (bits per second) of the serial input. The range is 1200 to 38400baud |
| Protocol: | Equals RS232 or RS485 depending on the required serial interface standard |
Data is stored in a file LOGFILE1.CSV in the DATA folder on the compact flash card. Data is stored as follows:
If the Log scheme=0
D,d0,d1,d2,d3,A,a0,a1,a2,a3,t,s
If the Log scheme=1
t,s,D,d0,d1,d2,d3,A,a0,a1,a2,a3
where
d0, d1, d2 and d3 are 0 or 1 depending on the state of the
digital channel
a0, a1, a2 and a3 are the values of the analogue inputs -5.000 to 5.000
t is the time of day in seconds.
s is a text string received on the serial port.
If a analogue or digital channel is not enabled then the data field for that
channel is omitted.
The WIND_APP program is controlled by a text file INI.TXT in the SYSTEM folder on the compact flash card. It contains two lines as follows:
COMMS=RS232
STORAGE_RATE=1
The order of the lines should not be changed. The parameters can be set as follows
| COMMS: | Equals RS232 or RS485 depending on the required serial interface standard |
| STORAGE_RATE: | This parameter controls how often data stored. Set to 1 for every message, 2 for every other message, 3 for every third message etc. |
The WindSonic sensor should be set to output in the continuous polar default format at 9600 baud with 8 data bits and no parity.
<STX>Q,DDD,SSS.SS,U,AA,<ETX>CC<CR><LF>
Where
Q is the anemometer identifier. Can be set to any character Q to Z
DDD wind direction in degrees relative to sensor axis
SSS.SS wind speed U Units M m/s, N knots, P mph, K km per hour, F ft per min.
AA status 00 ok, 01 axis 1 failed, 02 axis 2 failed, 04 axis 1 & 2 failed,
08 NVM error, 09 ROM error
CC checksum Exclusive OR of all characters between <STX> and <ETX>
as a two character hexadecimal value.
<STX> is the ASCII character with a value of 2
<ETX> is the ASCII character with a value of 3
<CR> is the ASCII carriage return character with a value of 13
<LF> is the ASCII line feed character with a value of 10
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 sales@r-p-r.co.uk
COPYRIGHT © 2001 - 2008 RICHARD PAUL RUSSELL LIMITED
AutoHoot and SpaceLogger are trade marks of Richard Paul Russell Limited