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

 

  

 
DataInputApply
The DataInputApply event is called when the user press Apply in a DataInput page

Example:

def Handle_System_DataInputApply(Source):
  #
  # Source = VT_BSTR
  #
  # Source identifies name of DataInput page
  #
  if Source == 'Product selection':
    if GetBoolValue('GlobalInput.CD340Active'):
      p='CD340'
      SetValue('ProductType.Value' , p)
    elif GetBoolValue('GlobalInput.C314Active'):
      p='C314'
      SetValue('ProductType.Value' , p)
      
  if GetBoolValue('System.CameraSimulation'):
    try:
      ExecuteCmd('Image','path=images\\'+str(p))
      ExecuteCmd('GrabExecute','')
    except:
      print "No images available"

 

 

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