Campbell Scientific CSAT3 CSAT3 3-D Sonic Anemometer - Page 27

Datalogger Programming using SDM

Page 27 highlights

CSAT3 Three Dimensional Sonic Anemometer 10. Datalogger Programming using SDM The CRBasic CSAT3 () and EDLOG SDM-CSAT3 (P107) instructions are Input/Output instructions that control and retrieve data from the CSAT3. These instructions are available on the CR3000, CR1000, CR5000, CR800/850, CR9000(X), and CR23X, 21X (with CSAT3 PROMs), CR10X, and CR10 (with CSAT3 PROMs or library special PROMs). 10.1 CRBasic CSAT3 () Instruction The CSAT3 () instruction is a five parameter CRBasic instruction to control and retrieve data from the CSAT3. The parameters for this instruction are given in TABLE 10-1 and described in Section 10.3. TABLE 10-1. CSAT3 () Instruction Parameters CSAT3 (Dest,Reps,SDMAddress,Command,Option) 10.2 EDLOG SDM-CSAT3 (P107) Instruction The SDM-CSAT3 (P107) is a four parameter instruction. The parameters are given inTABLE 10-2 and described in Section 10.3. TABLE 10-2. SDM-CSAT3 (P107) Instruction Parameters Parameter Number 01: 02: 03: 04: Data Type 2 2 2 4 Default Description Reps SDM Address Option Ux Input Location 10.3 Datalogger Instruction Parameters Dest: The destination variable to store the first of five data values to a CRBasic datalogger. The variable must be declared as a float (default) with at least five elements. The CSAT3 returns the following data after receiving the "Trigger and Get Data" or "Get Data after a Group Trigger" command in the "Command" parameter: ux, uy, uz, c or Ts, and a diagnostic word, where ux, uy, and uz are the wind speeds along the x, y, and z axes defined by the anemometer head (see FIGURE 4-1), c is the speed of sound, and Ts is the sonic virtual temperature. The wind speed and the speed of sound are in units of m s-1, and Ts is in degrees Celsius. If the Reps option is greater than 1, the number of elements required in the destination variable is Reps ∗ 5. Reps: The number of CSAT3s on the SDM bus that will be sequentially addressed with the CSAT3()/SDM-CSAT3 (P107) instruction. 19

  • 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

CSAT3 Three Dimensional Sonic Anemometer
10. Datalogger Programming using SDM
The CRBasic CSAT3 () and EDLOG SDM-CSAT3 (P107) instructions are
Input/Output instructions that control and retrieve data from the CSAT3.
These instructions are available on the CR3000, CR1000, CR5000,
CR800/850, CR9000(X), and CR23X, 21X (with CSAT3 PROMs), CR10X,
and CR10 (with CSAT3 PROMs or library special PROMs).
10.1 CRBasic CSAT3 () Instruction
The CSAT3 () instruction is a five parameter CRBasic instruction to control
and retrieve data from the CSAT3.
The parameters for this instruction are
given in TABLE 10-1 and described in Section 10.3.
TABLE 10-1.
CSAT3 () Instruction Parameters
CSAT3 (Dest,Reps,SDMAddress,Command,Option)
10.2 EDLOG SDM-CSAT3 (P107) Instruction
The SDM-CSAT3 (P107) is a four parameter instruction.
The parameters are
given inTABLE 10-2 and described in Section 10.3.
TABLE 10-2.
SDM-CSAT3 (P107) Instruction Parameters
Parameter
Number
Data
Type
Default
Description
01:
2
Reps
02:
2
SDM Address
03:
2
Option
04:
4
Ux Input Location
10.3 Datalogger Instruction Parameters
Dest:
The destination variable to store the first of five data values to a
CRBasic datalogger.
The variable must be declared as a float (default) with at
least five elements.
The CSAT3 returns the following data after receiving the
“Trigger and Get Data” or “Get Data after a Group Trigger” command in the
“Command” parameter:
u
x
, u
y
, u
z
, c or T
s
, and a diagnostic word, where u
x
, u
y
,
and u
z
are the wind speeds along the x, y, and z axes defined by the
anemometer head (see FIGURE 4-1), c is the speed of sound, and T
s
is the
sonic virtual temperature.
The wind speed and the speed of sound are in units
of m s
-1
, and T
s
is in degrees Celsius.
If the Reps option is greater than 1, the
number of elements required in the destination variable is Reps
5.
Reps:
The number of CSAT3s on the SDM bus that will be sequentially
addressed with the CSAT3()/SDM-CSAT3 (P107) instruction.
19