Campbell CR10 PROM Instruction Manual Page 24

  • Download
  • Add to my manuals
  • Print
  • Page
    / 30
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 23
APPENDIX B. SERIAL COMMUNICATIONS WITH THE CSAT3
B-3
set RTS line low
repeat until finished collecting data
process data
send W or S command
read wind data (W) or long status (S) from serial port
keep checking until there is data on the serial port
check for data serial port
send W or S command
send the An command to acquire signals
until CTS line is high
read CTS line
set RTS line high
FIGURE B-2. CSAT3 as the Trigger Source.
B.2 CSAT3 BINARY DATA OUTPUT FORMAT
Five words are sent by the CSAT3's RS232 output. Words 0 through 3 are 16 bit signed integers and
word 4 is 16 bit unsigned integer. The five words are sent starting with word 0 and ending with word 4.
A description of each word is given in Table B-2.
TABLE B-2. RS-232 Output
Word 0 Word 1 Word 2 Word 3 Word 4
b15 - b0 b15 - b0 b15 - b0 b15 - b0 b15 b14 b13 b12 b11 b10 b09 b08 b07 b06 b05 - b00
u
x
wind u
y
wind u
z
wind c diagnostic flags u
x
range u
y
range u
z
range counter
B.3 WORDS 0 THROUGH 3
The u
x
, u
y
, and u
z
wind speed is reported on one of four different ranges. This range is given by bits b11
through b06 in word 4. In order to decode the wind speed, first look at the wind speed range code, then
decode the data with the appropriate equations given in Tables B-3 through B-6. The data in words 0
through 3 must first be converted into a base 10 representation before applying the equations in Table
B-3 through B-6.
TABLE B-3. Converting u
x
Wind from Word 0
Range Word 4 Range Code Conversion Output Resolution
b11 b10 (mm s
-1
)
01 1
u
x
wind (m s
-1
) = word 0
0.001
0.25
0.25
11 0
u
x
wind (m s
-1
) = word 0
0.001
0.50
0.50
20 1
u
x
wind (m s
-1
) = word 0
0.001
1.00
1.00
30 0
u
x
wind (m s
-1
) = word 0
0.001
2.00
2.00
TABLE B-4. Converting u
y
Wind from Word 1
Range Word 4 Range Code Conversion Output Resolution
b09 b08 (mm s
-1
)
01 1
u
y
wind (m s
-1
) = word 1
0.001
0.25
0.25
11 0
u
y
wind (m s
-1
) = word 1
0.001
0.50
0.50
20 1
u
y
wind (m s
-1
) = word 1
0.001
1.00
1.00
30 0
u
y
wind (m s
-1
) = word 1
0.001
2.00
2.00
Page view 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 30

Comments to this Manuals

No comments