General

#==========================================================
def main():
    info('this is an info message')
    acquire('pipette')
    info('aquired resourece - pipette')
    sleep(15)
    release('pipette')
    begin_interval(120)
    #do some stuff ...
    complete_interval() #wait until 120 seconds have passed
#===============================================================

functions

info(msg)

add info msg to the log

acquire(resource)

reserve the resource for use. blocks other scripts from using resource until release() is called.

release(resource)

release resource so other scripts can use it.

sleep(seconds)

sleep for seconds. if seconds>5 a timer will appear. decimal seconds are allowed e.g sleep(0.5)

gosub(path_to_script)

execute a pyscript located at path_to_script. path_to_script is relative to the current script. e.g gosub(commonscripts/fuse.py). commonscripts must be a directory in the same directory this script is saved in.

begin_interval(timeout)

start an interval. if timeout>5 a timer will appear.

complete_interval()

wait unit timeout has elapsed