beautypg.com

Campbell Scientific CR7 Measurement and Control System User Manual

Page 89

background image

SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES

8-7

TABLE 8.6-2. Example Outputs and Input Storage Locations

LEVEL 1 OUTPUTS

MEANS LOC

VARIANCES LOC

COVARIANCES LOC

CORRELATIONS LOC

M(W1)

20

V(W1)

25

CV(W1,U1)

30

CR(W1,U1)

34

M(U1)

21

V(U1)

26

CV(W1,V1)

31

CR(W1,V1)

35

M(V1)

22

V(V1)

27

CV(W1,Tal)

32

M(Tal)

23

V(Tal)

28

CV(W1,e1)

33

M(e1)

24

V(e1)

29

LEVEL 2 OUTPUTS

MEANS LOC

VARIANCES LOC

COVARIANCES LOC

M(W2)

36

V(W2)

41

CV(W2,U2)

46

M(U2)

37

V(U2)

42

CV(W2,V2)

47

M(V2)

38

V(V2)

43

CV(W2,Ta2)

48

M(Ta2)

39

V(Ta2)

44

CV(W2,e2)

49

M(e2)

40

V(e2)

45

CV(U2,V2)

50

CV(U2,Ta2)

51

CV(U2,e2)

52

CV(V2,Ta2)

53

CV(V2,e2)

54

Table 8.6-3 lists the input channel configuration
and Input Storage allocation for the measured
values. After reading the new input samples,
the Level 2 measurements are relocated using
the Block Move Instruction 54, then Ta1 is
relocated through a separate move and e1 is
positioned by specifying the destination location
in the Wet/Dry-Bulb Instruction. The CV/CR
Instruction must be entered twice, once for each
level.

In addition to ordering Level 1 and Level 2 in
locations 1-5 and 11-15 respectively, two more

locations are required. Converting the wet-/dry-
bulb measurements to vapor pressure using
Instruction 57 requires atmospheric pressure.
We'll use the standard atmosphere for the site
elevation and key the value into Location 17
using the C command in the *6 Mode. The
reference junction temperature obtained by
Instruction 17 is stored in Location 16.

This example requires that 54 locations be
allotted to Input Storage and 79 to Intermediate
Storage (35 for the 1st CV/CR Instruction, 43
for the second, and 1 for Instruction 92).

TABLE 8.6-3. Example Input Channel and Location Assignments

INPUT

INPUT

INPUT

INPUT

PARAM

CHAN

LOC

PARAM

LOC

PARA LOC

W1

1

1

W1

1

W1

1

U1

2

2

U1

2

U1

2

V1

3

3

V1

3

V1

3

W2

4

4

Ta1

9 ----------------------- Ta1

4

U2

5

5

Tw1

10 Separate moves e1

5

V2

6

6

W2

11

W2

11

Ta2

7

7

->Block->

U2

12

U2

12

Tw2

8

8

move

V2

13

V2

13

Ta1

9

9

Ta2

14

Ta2

14

Tw1

10

10

Tw2

15

e2

15