try:
fwheel1 = mechanism('IR:fwheel1?)
fwheel2 = mechanism(?IR:fwheel2')
?
ccd = CCD("IR-EEV42",port3)
...
except InitError:
print "Init failed: call for support"
# provided as part of the "observing package"
#
# multrun (exposure_time)
#
# take multiple over two set of filters
# filters are moved at beginning of readout
# for time optimization
# exception are not caught -> actionError?s will abort the script
#
def multrun (exp_time):
for filter1 in ('K-BAND', 'J-BAND', 'CLEAR'):
for filter2 in ('SHARTMAN-R', 'SHARTMAN-L', 'CLEAR'):
# expose
# wait beginning of readout
# start move wheels to next setup
while fwheel1.busy() || fwheel2.busy() ||. ccd.readingout():# infinite timeout
pythonCA.pend(0.0)
# eg. low-end user script (visiting astronomer)
multrun ( 1.0 )