The CameraError event is called when a Camera Error occurs. The user may try
to reopen the camera in case of camera dropout. Example:
def Handle_System_CameraError(CameraNo,Camera):
#
# CameraNo = VT_I4
# Camera = VT_BSTR
#
global camErrCnt #global variable declared in CentralStart script
print 'CameraError',CameraNo,Camera
camera=GetCamera(Camera)
if camErrCnt<3:
camera.open=0
camera.open=1
if camera.open:
camErrCnt=0
else:
camErrCnt=camErrCnt+1 |