Campbell Scientific CSAT3B CSAT3B Three-Dimensional Sonic Anemometer - Page 62

CRBasic Instructions

Page 62 highlights

CSAT3B Three-Dimensional Sonic Anemometer The following sections give specifics about CRBasic instructions. Examples of common CRBasic programs for the CSAT3B are shown in Appendix C, Example CRBasic Datalogger Programs. 8.4.1 CRBasic Instructions 8.4.1.1 CSAT3B() The CSAT3B() instruction is the primary instruction used to retrieve anemometer data from the CSAT3B. This will set the operating mode of the anemometer and retrieve the wind, sonic temperature, and diagnostic information. The instruction requires four parameters which are further described in the following sections: 1) Destination 2) Bus 3) Address 4) OperatingMode The CSAT3B() instruction should appear in the main scan of the CRBasic program operating in pipeline mode. Destination: This variable will store the values returned by the anemometer. The destination variable must be declared as a float (default) with at least five elements. The CSAT3B returns the following data in response to a measurement trigger: 1) ux - x-axis wind speed in meters per second (m·s-1) 2) uy - y-axis wind speed in meters per second (m·s-1) 3) uz - z-axis wind speed in meters per second (m·s-1) 4) Ts - Sonic Temperature in degrees Celsius (°C) 5) Diagnostic word Bus: This parameter determines whether the communications to the CSAT3B are done via the SDM or CPI bus. A '0' indicates SDM and a '1' indicates CPI. This parameter must be a constant. Address: This parameter identifies the unique address of the CSAT3B on the communication bus. For SDM, this number may be in the range of 1 to 14. For CPI, this number may be in the range 1 to 120. This parameter must be a constant. OperatingMode: This parameter controls the trigger source and the application of filters to the anemometer data. This parameter must be a constant. 8.4.1.2 CSAT3BMonitor() The CSAT3BMonitor() instruction provides auxiliary information pertaining to the physical condition of the anemometer. This retrieves the internal temperature and relative humidity of the electronics enclosure, and also the inclination of the anemometer. The instruction requires three parameters: Destination; Bus; and Address. The CSAT3BMonitor() instruction should appear in a slow sequence of the CRBasic program operating in pipeline mode. 52

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

CSAT3B Three-Dimensional Sonic Anemometer
The following sections give specifics about CRBasic instructions.
Examples
of common CRBasic programs for the CSAT3B are shown in Appendix C,
Example CRBasic Datalogger Programs
.
8.4.1 CRBasic Instructions
8.4.1.1
CSAT3B()
The
CSAT3B()
instruction is the primary instruction used to retrieve
anemometer data from the CSAT3B.
This will set the operating mode of the
anemometer and retrieve the wind, sonic temperature, and diagnostic
information.
The instruction requires four parameters which are further
described in the following sections:
1)
Destination
2)
Bus
3)
Address
4)
OperatingMode
The
CSAT3B()
instruction should appear in the main scan of the CRBasic
program operating in pipeline mode.
Destination:
This variable will store the values returned by the anemometer. The destination
variable must be declared as a float (default) with at least five elements.
The
CSAT3B returns the following data in response to a measurement trigger:
1)
u
x
– x-axis wind speed in meters per second (m·s
-1
)
2)
u
y
– y-axis wind speed in meters per second (m·s
-1
)
3)
u
z
– z-axis wind speed in meters per second (m·s
-1
)
4)
T
s
– Sonic Temperature in degrees Celsius (°C)
5)
Diagnostic word
Bus:
This parameter determines whether the communications to the CSAT3B are
done via the SDM or CPI bus. A ‘
0
’ indicates SDM and a ‘
1
’ indicates CPI.
This parameter must be a constant.
Address:
This parameter identifies the unique address of the CSAT3B on the
communication bus. For SDM, this number may be in the range of
1
to
14
.
For CPI, this number may be in the range
1
to
120
. This parameter must be a
constant.
OperatingMode:
This parameter controls the trigger source and the application of filters to the
anemometer data.
This parameter must be a constant.
8.4.1.2
CSAT3BMonitor()
The
CSAT3BMonitor()
instruction provides auxiliary information pertaining
to the physical condition of the anemometer.
This retrieves the internal
temperature and relative humidity of the electronics enclosure, and also the
inclination of the anemometer.
The instruction requires three parameters:
Destination
;
Bus
; and
Address
. The
CSAT3BMonitor()
instruction should
appear in a slow sequence of the CRBasic program operating in pipeline mode.
52