# retrieve intensity level
level = GetValue('Level.Value')
# read intensity level
light1 = GetValue('LightMeter.Intensity')
count = count +1
increaseExposure = ( count <20 ) and (light1 < level)
SetValue('CalculateExposure.Value',increaseExposure)
if (increaseExposure ) :
print 'count -',count
# set exposure on ieee-1394 camera
ExecuteCmd('SetImageProp','imageno=1;Exposure='+str(count*25))
# camera support Exposure property
else:
count = 0
# reset exposure on ieee-1394 camera
ExecuteCmd('SetImageProp','imageno=1;Exposure=0')
|