Section 9. Program Control Instructions
9-21
Dim X, Y
'Declare variables.
If Not X = Y Then
'Are they equal
If X > Y Then
Select Case
X
'What is X.
Case
0 To 9
'Must be less than 10.
. . . .
'Run some code.
. . . .
'Run some code.
Case
10 To 99
'Must be less than 100.
. . . .
'Run some code.
. . . .
'Run some code.
Case Else
Must be something else.
. . . .
'Run some code.
End Select
End
If
Else
Select Case
Y
'What is Y.
Case
1, 3, 5, 7, 9
'It's odd.
.
. . .
'Run some code.
Case
0, 2, 4, 6, 8
'It's even.
. . . .
'Run some code.
Case Else
'Out of range.
. . . .
'Run some code.
. . . .
'Run some code.
End Select
End If
. . . .
'Run some code.
. . . .
'Run some code.
Slow Sequence
Allows slower measurements and low priority processing to take place in
background.
Syntax
SlowSequence
Remarks
Ends the main program and begins a low priority program. There must be a
Scan … NextScan loop following SlowSequence.
It is possible to have a scan in the SlowSequence for measurements that are
needed at a slower rate of the primary scan interval. The CR9000 tags on
measurement instructions from the slow sequence scan to the normal scan as
time allows. At least one A/D conversion from the slow sequence scan is
added to each normal scan (the appropriate settling time occurs before the A/D
conversion). Thus, the primary scan interval must be long enough to make the
primary scan measurements plus the longest single measurement fragment
(settling time + A/D conversion) from the scan in the slow sequence. In the
case where the primary scan interval is only long enough to allow one
measurement fragment from the slow sequence per primary scan, the minimum
time for the slow sequence scan interval is the product of the number of slow
sequence measurement segments and the primary scan interval. A
consequence of the way a measurement scan in the slow sequence may be
parceled into several primary scans is that the measurements in a single "scan"
of the slow sequence may be spread over a greater time than if they were in the
primary scan. Also, if integration is used in a measurement that is included in
Summary of Contents for CR9000
Page 6: ...CR9000 Table of Contents iv This is a blank page ...
Page 22: ...CR9000 Overview OV 16 This is a blank page ...
Page 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Page 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Page 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 217: ...This is a blank page ...