
2000-OSM, F1
10-11
FOR...NEXT Statements
Description:
Does an iteration loop.
Syntax:
FOR variable = x TO y [STEP z]
NEXT
[variable[,variable]....]
Comments:
variable
is an integer used as a counter.
x
is the initial value of the counter.
y
is the final value of the counter.
z
is the increment for the counter.
Example:
0010 FOR I = 100 TO -100 STEP -2
.
.
0020 NEXT I
Executes loop 101 times with loop counter values of 100, 98, 96, ..., 0, ...,
-96,
-98,
and
-100.
GET ACTUAL RETENTION TIME Function
Description:
Returns the component’s actual retention time.
Syntax:
GET_ACTUAL_RT(method%,component%)
Comments:
method%
is the method table (1-8).
component%
is the component number for which the actual retention time
is to be retrieved.
Example:
0010 A! = GET_ACTUAL_RT(1,2)
Gets the actual retention time of component two from analysis method one
and assigns it to floating point variable A!.
GET ASTM Function
Description:
Returns the setting for the Sim Dis ASTM parameter in the Sim Dis Setup
Screen (Sim Dis analyzers only).
Syntax:
GET_ASTM
Comments:
0
is returned when the ASTM parameter is set to ASTM-2887.
1
is returned when the ASTM parameter is set to ASTM-3710.
Example:
0010 IF GET_ASTM = 0 THEN END
0020 FOR I = 1 TO 10
0030 D86!(I) = 0.0
0040 NEXT I
Checks Sim Dis Setup screen parameter ASTM. When ASTM 3710 is not
selected the program ends. Otherwise, program variables are set to zero.
GET BENCHMARK CONCENTRATION Function
Description: Returns
the
component’s benchmark concentration.
Syntax:
GET_BENCH_CONC(method%,component%)
Comments:
method%
is the method table (1-8).
component%
is the component number from which the benchmark
concentration is to be retrieved.
Example:
0010 A! = GET_BENCH_CONC(1,2)
Gets the benchmark concentration of component two from analysis method
one and assigns it to floating point variable A!.
GET BLEND Function
Description:
Returns the setting for the Sim Dis Blend Number parameter in the Stream
Table (Sim Dis analyzers only).