Up | Usage | API | Release Notes

Examples
 

  

 
API

In the text below there are described main Pareto plug-in API functions.

Plug-in creation

Plug-in creation is performed by CreatePlugin function located in ParetoPlugin2 module.

def CreatePlugin(mainHWnd, name = ""):
    """
    The Pareto Graph plug-in is for monitoring distribution of some values.

    Parameter:
        mainHWnd    - window handle for plug-in
        name        - plug-in name

    Returns Pareto plug-in instance.
    """
        

Plug-in instance

Plug-in instance has default Scorpion plug-in functions:

def getConfig(self):
    """
    Return plug-in configuration as string.
    """

def setConfig(self, value):
    """
    Set plug-in configuration from string.
    """

def configure(self):
    """
    Launch plug-in settings dialog,
    return True if configuration changed.
    """

Additional functions:

def DrawPareto(self):
    """
    It takes values from Scorpion tags, recalculates statistics and redraws Pareto chart. 
    Method is called automatically on AfterInspection event and could be called
    as many times as necessary (it will perform same action as called automatically).
    """

def GetParetoModule(self):
    """
    Returns plug-in calculation module. Which can be used for reset via ResetPareto() function.
    """
        

 


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