Campbell Scientific CR510 CR510 Basic Datalogger - Page 162

Cr510 Measurements, Instruction 24 Calibration

Page 162 highlights

SECTION 13. CR510 MEASUREMENTS table WILL be overrun by the automatic calibration. If an overrun occurs every time calibration is executed, then 1 execution is skipped for every 512 times that the program table is executed. If the measurements are being averaged, the effect of the overrun is negligible. Program table overruns are indicated by the appearance of two decimals on either side of the sixth digit on the CR10KD and are also stored in memory (Section 1.7). INSTRUCTION 24 CALIBRATION The alternative to automatic calibration is the use of Instruction 24, the calibration instruction. Instruction 24 implements a complete calibration which occurs ONLY when EXECUTED by a program table. Instruction 24 calibration is the average of 10 calibrations, and takes approximately 2.8 seconds to complete. Automatic calibration is disabled when a program is compiled that contains Instruction 24. Instruction 24 calibration, as opposed to automatic calibrations, may be advantageous in applications where: 1) the CR510 is exposed to extreme thermal gradients, or 2) automatic calibration would interfere with the desired sampling rate, and the ambient temperature is stable enough to allow calibration at specific points during program execution. Calibration coefficients are replaced each time that Instruction 24 is executed. Unlike automatic calibration, there is no time constant for the coefficients to respond in changes to calibration. Instruction 24 calibration ensures that the coefficients are optimum at the time that the instruction is executed. For example, consider a CR510 mounted under the dash of an automobile, where temperature could easily change 50 degrees. Temperature changes affect the measurement circuitry which must be compensated for by calculating new coefficients. Each time Instruction 24 is executed a new set of calibration coefficients is calculated based on the measurements made at that time. Calibration at a certain point during program execution may be advantageous for some applications. For example, suppose Table 2 has an execution time of 15.6 ms, but only executes when flag 1 is set. Table 1 has a 5 minute execution time which makes a temperature measurement, and sets flag 1 if the temperature exceeds a fixed value. To prevent overrun errors which would occur in Table 2 if the automatic calibration was used, Instruction 24 could be executed before the temperature measurement was made by Table 1. Instruction 24 also has an option to store the results of the automatic calibration in Input Storage. This can be used to detect hardware problems. If -99999 appears in any of the 19 input locations, the CR510 has a hardware problem or needs factory calibration. 13-18

  • 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
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264

SECTION 13.
CR510 MEASUREMENTS
13-18
table WILL be overrun by the automatic
calibration.
If an overrun occurs every time
calibration is executed, then 1 execution is
skipped for every 512 times that the program
table is executed.
If the measurements are
being averaged, the effect of the overrun is
negligible.
Program table overruns are
indicated by the appearance of two decimals on
either side of the sixth digit on the CR10KD and
are also stored in memory (Section 1.7).
INSTRUCTION 24 CALIBRATION
The alternative to automatic calibration is the
use of Instruction 24, the calibration instruction.
Instruction 24 implements a complete calibration
which occurs ONLY when EXECUTED by a
program table.
Instruction 24 calibration is the
average of 10 calibrations, and takes
approximately 2.8 seconds to complete.
Automatic calibration is disabled when a
program is compiled that contains Instruction 24.
Instruction 24 calibration, as opposed to
automatic calibrations, may be advantageous in
applications where:
1) the CR510 is exposed to
extreme thermal gradients, or
2) automatic
calibration would interfere with the desired
sampling rate, and the ambient temperature is
stable enough to allow calibration at specific
points during program execution.
Calibration coefficients are replaced each time
that Instruction 24 is executed.
Unlike
automatic calibration, there is no time constant
for the coefficients to respond in changes to
calibration.
Instruction 24 calibration ensures
that the coefficients are optimum at the time
that the instruction is executed.
For example,
consider a CR510 mounted under the dash of
an automobile, where temperature could easily
change 50 degrees.
Temperature changes
affect the measurement circuitry which must be
compensated for by calculating new
coefficients.
Each time Instruction 24 is
executed a new set of calibration coefficients is
calculated based on the measurements made
at that time.
Calibration at a certain point during program
execution may be advantageous for some
applications.
For example, suppose Table 2 has
an execution time of 15.6 ms, but only executes
when flag 1 is set.
Table 1 has a 5 minute
execution time which makes a temperature
measurement, and sets flag 1 if the temperature
exceeds a fixed value.
To prevent overrun errors
which would occur in Table 2 if the automatic
calibration was used, Instruction 24 could be
executed before the temperature measurement
was made by Table 1.
Instruction 24 also has an option to store the
results of the automatic calibration in Input
Storage.
This can be used to detect hardware
problems.
If -99999 appears in any of the 19
input locations, the CR510 has a hardware
problem or needs factory calibration.