Module runscript
source code
Module for executing a runscript
example runscript:
#==============================
this is a file header
it is enclosed by a set of #
this is the place for metadata and instructions
keywords
PRINT
LOG
WAIT
VALVE
PUMP
FOR
#==============================
PRINT start of the runscript
PRINT we can wait
WAIT 1
PRINT we can log a message
LOG we are running a runscript
VALVE I:OPEN
WAIT 2
HEAT 40,10,1
WAIT 2
VALVE H:OPEN
WAIT 1
VALVE H:CLOSE
VALVE A:CLOSE
VALVE I:CLOSE
|
|
RunItem
A thread to process a single run item
|
|
|
Runscript
A runscript thread The runscript class opens and parses runscripts
for each command in the runscript a runitem is spawned to process the
command
|
Imports:
Thread,
Condition,
time,
logging,
add_console