AutoProgramming Reference
Low Level Control Tools
25-24 Using the LI-6400
25
IsIrgaMatch Is the match valve in the match position?
Initial: -
Final: Long
location (0=normal, 1=match)
Returns the state of dio_match, but NOTted.
Chamber Fan Control Functions
ChFanState Sets chamber fan speed
Initial: Num speed (0, 1, 2, 3, 4, or 5)
Final: -
0 is off, 5 is fastest. Value is stored in a public, integer variable chFanState. Non zero
values (and values <= 5) will cause digital output dio_fan (0x0006) to be set, and D/A
channel da_chamber_fan (7) to be set to 1000 times the speed. Otherwise, dio_fan is
unset.
Example: Using the Library
As an example of how to use the tools in /Sys/Lib/StdControls, consider the stand-
alone program shown in Figure 25-4. This program prompts the user for a
command voltage, and then sets the lamp accordingly.
:INCLUDE Ò/Sys/Lib/StdControlsÓ
:FCT main
{
0 :FLOAT x
AbdOn /* need flow control board on */
LOOP
Ò\nEnter command signal (0-5000):Ó PRINT
&x Ò%fÓ KBD ENTER NOT BREAKIF
&x 0 MAX 5000 MIN DROP /* range check */
x SetLamp_mv
ENDLOOP
}
Figure 25-4. Listing of a stand alone program to run the lamp.