Up | CameraError | ImageComplete | LoadTools | SaveTools | ToolApply | ToolVariantChange | DataInputApply | Query Events | UpdateResultPanel | UpdateIndicatorPanel | ContextChange | Mouse Events | Timer | LogMsg

 

  

 
CameraError
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

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.