Campbell Scientific AVW200 AVW200-series Vibrating Wire Interfaces - Page 91

Appendix G. CR10X Programming Example

Page 91 highlights

Appendix G. CR10X Programming Example Although this example is for the CR10X, the CR23X is programmed similarly. ;{CR10X} ; ; ; *Table 1 Program 01: 900 Execution Interval (seconds) 1: Do (P86) 1: 42 Set Port 2 High 2: Beginning of Loop (P87) 1: 0000 Delay 2: 16 Loop Count 3: Do (P86) 1: 73 Pulse Port 3 4: Excitation with Delay (P22) 1: 1 Ex Channel 2: 0000 Delay W/Ex (0.01 sec units) 3: 10 Delay After Ex (0.01 sec units) 4: 0000 mV Excitation 5: SDI-12 Recorder (P105) 1: 0 SDI-12 Address 2: 1 Start Measurement (aM1!) 3: 1 Port 4: 91 Loc [ VW ] 5: 1.0 Multiplier 6: 0.0 Offset 6: Z=X (P31) 1: 91 2: 1 X Loc [ VW ] -- Z Loc [ Freq_1 ] ;Write Freq to inlocs 1-16 7: Z=X (P31) 1: 92 2: 17 X Loc [ Amplitude ] -- Z Loc [ Amp_1 ] ;Write Amp to inlocs 17-32 8: Z=X (P31) 1: 93 2: 3 X Loc [ Sig2Noise ] -- Z Loc [ S2Noise_1 ] ;Write Signal to Noise ratio to inlocs 33-48 9: Z=X (P31) 1: 94 2: 49 X Loc [ NoiseFreq ] -- Z Loc [ NsFreq_1 ] ;Write Frequency of Noise to inlocs 49-64 G-1

  • 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
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112

Appendix G. CR10X Programming
Example
Although this example is for the CR10X, the CR23X is programmed similarly.
;{CR10X}
;
;
;
*Table 1 Program
01: 900
Execution Interval (seconds)
1:
Do (P86)
1:
42
Set Port 2 High
2:
Beginning of Loop (P87)
1:
0000
Delay
2:
16
Loop Count
3:
Do (P86)
1:
73
Pulse Port 3
4:
Excitation with Delay (P22)
1:
1
Ex Channel
2:
0000
Delay W/Ex (0.01 sec units)
3:
10
Delay After Ex (0.01 sec units)
4:
0000
mV Excitation
5:
SDI-12 Recorder (P105)
1:
0
SDI-12 Address
2:
1
Start Measurement (aM1!)
3:
1
Port
4:
91
Loc [ VW
]
5:
1.0
Multiplier
6:
0.0
Offset
6:
Z=X (P31)
;Write Freq to inlocs 1-16
1:
91
X Loc [ VW
]
2:
1
-- Z Loc [ Freq_1
]
7:
Z=X (P31)
;Write Amp to inlocs 17-32
1:
92
X Loc [ Amplitude ]
2:
17
-- Z Loc [ Amp_1
]
8:
Z=X (P31)
;Write Signal to Noise ratio to inlocs 33-48
1:
93
X Loc [ Sig2Noise ]
2:
3
-- Z Loc [ S2Noise_1 ]
9:
Z=X (P31)
;Write Frequency of Noise to inlocs 49-64
1:
94
X Loc [ NoiseFreq ]
2:
49
-- Z Loc [ NsFreq_1
]
G-1