Campbell Scientific CR10X CR10X Measurement and Control System - Page 37

Functional Modes

Page 37 highlights

SECTION 1. FUNCTIONAL MODES 1.1 DATALOGGER PROGRAMS - ∗1, ∗2, ∗3, AND ∗4 MODES Data acquisition and processing functions are controlled by user-entered instructions contained in program tables. Programming can be separated into 2 tables, each having its own user-entered execution interval. A third table is available for programming subroutines which may be called by instructions in Tables 1 or 2 or by a special interrupt. The ∗1 and ∗2 Modes are used to access Tables 1 and 2. The ∗3 Mode is used to access Subroutine Table 3. The ∗4 Mode Table is a table of values used in the program that someone can change while the rest of the program is protected. These values may be used for sensor calibrations or to select optional sensors. The ∗4 Table is only available when a special program created by EDLOG is loaded in the CR10X. When a program table is first entered, the display shows the table number in the ID field and 00 in the data field. Keying an "A" will advance the editor to the execution interval. If there is an existing program in the table, keying an instruction location number prior to "A" will advance directly to the instruction (e.g., 5 will advance to the fifth instruction in the table). 1.1.1 EXECUTION INTERVAL The execution interval is entered in units of seconds as follows: 1/64 ...1 seconds, in multiples of 1/64 (0.015625) 1 ......31.875 seconds, in multiples of 1/8 (0.125) 32 .....8191 seconds, in multiples of 1 second Execution of the table is repeated at the rate determined by this entry. The table will not be executed if 0 is entered. Entries less than 32 seconds will be rounded to a valid interval if they are within 1/512 (0.00195) second of a valid interval, otherwise error E41 will be displayed. Entries greater than 32 seconds are rounded to the nearest second. The sample rate for a CR10X measurement is the rate at which the measurement instruction can be executed (i.e., the measurement made, scaled with the instruction's multiplier and offset, and the result placed in Input Storage). Additional processing requires extra time. The throughput rate is the rate at which a measurement can be made and the resulting value stored in Final Storage. The maximum throughput rate for fast single-ended measurements with standard software is 192 measurements per second (12 measurements repeated 16 times per second). If the specified execution interval for a table is less than the time required to process that table, the CR10X finishes processing the table and waits for the next occurrence of the execution interval before again initiating the table (i.e., when the execution interval has elapsed and the table is still executing, that execution is skipped). Since no advantage is gained in the rate of execution with this situation, it should be avoided by specifying an execution interval adequate for the table processing time. NOTE: Whenever the processing time of the user's program exceeds a table's execution interval, an error is logged in memory. The number of overrun errors can be displayed and reset in the ∗B mode (Section 1.6) or using the Telecommunications A command (Section 5.1). An overrun will also cause decimal points to appear on both sides of the sixth digit of the CR10KD. The decimal points will not appear around the G in LOG if the ∗0 Mode is entered before the overrun occurs. In some cases, the processing time may exceed the execution interval only when the Output Flag is set and extra time is consumed by final Output Processing. This may be acceptable. For example, suppose it is desired to sample some phenomena every 0.125 seconds and output processed data every 10 minutes. The processing time of the table which does this is less than 0.125 seconds except when output occurs (every 10 minutes). With final output the processing time is 1 second. With the execution interval set at 0.125 seconds, and a one second lag between samples once every 10 minutes, 8 measurements out of 4800 (.17%) are missed: an acceptable statistical error for most populations. 1-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
  • 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
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362

1-1
SECTION 1.
FUNCTIONAL MODES
1.1
DATALOGGER PROGRAMS -
1,
2,
3, AND
4 MODES
Data acquisition and processing functions are
controlled by user-entered instructions
contained in program tables.
Programming can
be separated into 2 tables, each having its own
user-entered execution interval.
A third table is
available for programming subroutines which
may be called by instructions in Tables 1 or 2 or
by a special interrupt.
The
1 and
2 Modes
are used to access Tables 1 and 2.
The
3
Mode is used to access Subroutine Table 3.
The
4 Mode Table is a table of values used in
the program that someone can change while
the rest of the program is protected.
These
values may be used for sensor calibrations or to
select optional sensors.
The
4 Table is only
available when a special program created by
EDLOG is loaded in the CR10X.
When a program table is first entered, the
display shows the table number in the ID field
and 00 in the data field.
Keying an "A" will
advance the editor to the execution interval.
If
there is an existing program in the table, keying
an instruction location number prior to "A" will
advance directly to the instruction (e.g., 5 will
advance to the fifth instruction in the table).
1.1.1
EXECUTION INTERVAL
The execution interval is entered in units of
seconds as follows:
1/64 ...1 seconds, in multiples of 1/64 (0.015625)
1
......
31.875 seconds, in multiples of 1/8 (0.125)
32
.....
8191 seconds, in multiples of 1 second
Execution of the table is repeated at the rate
determined by this entry.
The table will not be
executed if 0 is entered.
Entries less than 32
seconds will be rounded to a valid interval if
they are within 1/512 (0.00195) second of a
valid interval, otherwise error E41 will be
displayed.
Entries greater than 32 seconds are
rounded to the nearest second.
The sample rate for a CR10X measurement is
the rate at which the measurement instruction
can be executed (i.e., the measurement made,
scaled with the instruction's multiplier and
offset, and the result placed in Input Storage).
Additional processing requires extra time.
The
throughput rate is the rate at which a
measurement can be made and the resulting
value stored in Final Storage.
The maximum
throughput rate for fast single-ended
measurements with standard software is 192
measurements per second (12 measurements
repeated 16 times per second).
If the specified execution interval for a table is
less than the time required to process that
table, the CR10X finishes processing the table
and waits for the next occurrence of the
execution interval before again initiating the
table (i.e., when the execution interval has
elapsed and the table is still executing, that
execution is skipped).
Since no advantage is
gained in the rate of execution with this
situation, it should be avoided by specifying an
execution interval adequate for the table
processing time.
NOTE:
Whenever the processing time of
the user's program exceeds a table's
execution interval, an error is logged in
memory.
The number of overrun errors
can be displayed and reset in the
B mode
(Section 1.6) or using the Telecommunica-
tions A command (Section 5.1).
An overrun
will also cause decimal points to appear on
both sides of the sixth digit of the CR10KD.
The decimal points will not appear around
the G in LOG if the
0 Mode is entered
before the overrun occurs.
In some cases, the processing time may exceed
the execution interval only when the Output Flag is
set and extra time is consumed by final Output
Processing.
This may be acceptable.
For
example, suppose it is desired to sample some
phenomena every 0.125 seconds and output
processed data every 10 minutes.
The processing
time of the table which does this is less than 0.125
seconds except when output occurs (every 10
minutes).
With final output the processing time is
1 second.
With the execution interval set at 0.125
seconds, and a one second lag between samples
once every 10 minutes, 8 measurements out of
4800 (.17%) are missed:
an acceptable statistical
error for most populations.