Up | Editing scripts | Script Details | RS232 | TCP/IP | System | Scheduler | HistoryList | ImageView

 

  

 
HistoryList
The HistoryList events is used to add information or manage the historylist elements.

Events Description
New called when new images acquired from camera(s)
Update called after inspection, used for adding/changing comment
AfterInspect called after inspection, used to discard last images from history (overwritten at next image acquisation)
SelectionChange called whenever the selected image(s) changes

Example: Add a result to each comment

def Handle_HistoryList_New(ImageNo,Comment):
#
# ImageNo = VT_INT
# Comment = VT_BSTR
#
# Return modified or unmodified comment
#
return Comment


def Handle_HistoryList_SelectionChange(ImageNo,Comment):
#
# ImageNo = VT_INT
# Comment = VT_BSTR
#
# Return modified or unmodified comment

print ' history list selection change '
commentList = Comment.split(' - ')
return commentList[0]


def Handle_HistoryList_Update(ImageNo,Comment):
#
# ImageNo = VT_INT
# Comment = VT_BSTR
#
# Return modified or unmodified comment
#
d1 = GetValue('D1-Corr.Value')
str0 = '%(d1).2f mm - ' %vars()
return str0 + Comment
 

 

Scorpion Vision Version XV  : Build 764 - Date: 20200529
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2020 Tordivel AS.