AutoProgramming Reference
Some AutoProgram Listings
25-6 Using the LI-6400
25
Prompt for user input. defaultFile user LPPrompts2 IF RETURN THEN
LPPrep /* Must be done */
/* Loop over the lamp values
*/
1 :INT i
Loop over lamp values. lampVals READY LPRegLoop NLOOP LPLoopStat
lampVals i PICK VAL LPSetLamp /* set lamp */
Wait for min time, then for
stability.
stable minWaitTime maxWaitTime LPMeasureTilStable
lpAbort BREAKIF
Match (fct is below). MatchFct
Log. LPLog /* log the data */
&i 1 + DROP /* increment */
ENDLOOP LPDeregLoop
LPCleanup /* must be done */
}
MatchFct
{
co2_diff_um ABS matchIf < IF
LPMatch
10 LPMeasure
THEN
}
ÒA-CiCurveÓ
/*
This program is described
on page 9-21.
A-Ci Curve
rev 2 3/16/95
960822 - Tech Note 14 modification
970502 - remembers last time defaults
980309 - delta-based matching
*/
:CHAR defaultFile[] ÒA-CiCurve DfltsÓ
:FLOAT co2Vals[20] {400 300 200 100 50 400 400 600}
stable 1.0
matchIf 20
:INT minWaitTime 60
maxWaitTime 300
pmWait 10
:PTR user[]
{