def __init__(self, name, range, pinAnalIn, pinPwmOut=None, SetPolarityPositiveFunc=None, GetPolarityPositiveFunc=None, compName='', helpLine='', units='', PreSetFunc=None, highFreqPWM=False, pinOutVoltsMax=5, pinInVoltsMax=5, pinOutVoltsMin=0, pinInVoltsMin=0, PostGetFunc=None, I2cDac=None): showEditBox = (pinPwmOut != None) or (PreSetFunc != None) or (I2cDac != None) SysVarAnalog.__init__(self, name, range, Arduino, compName, helpLine, showEditBox, units, PreSetFunc, PostGetFunc) self.pinIn = pinAnalIn self.pinOut = pinPwmOut self.SetPolarityPositiveFunc = SetPolarityPositiveFunc self.GetPolarityPositiveFunc = GetPolarityPositiveFunc self.highFreqPWM = highFreqPWM self.pinOutVoltsMax = pinOutVoltsMax self.pinInVoltsMax = pinInVoltsMax self.pinOutVoltsMin = pinOutVoltsMin self.pinInVoltsMin = pinInVoltsMin self.I2cDac = I2cDac
def __init__(self, name, range, pidVar, windowSizeMs, kp, ki, kd, pinAnalIn, pinDigiOut, compName='', helpLine='', units='', PreSetFunc=None, pinInVoltsMax=5, pinInVoltsMin=0, PostGetFunc=None): SysVarAnalog.__init__(self, name, range, Arduino, compName, helpLine, True, units, PreSetFunc, PostGetFunc) self.pinAnalIn = pinAnalIn self.pinDigiOut = pinDigiOut self.pinInVoltsMax = pinInVoltsMax self.pinInVoltsMin = pinInVoltsMin self.range = range self.pidVar = pidVar self.windowSizeMs = windowSizeMs self.kp = kp self.ki = ki self.kd = kd
def __init__(self, _name, _rangeCount, _key, _compName='', _helpline='', _units='', _PreSetFunc=None, _PostGetFunc=None): showEditBox = (_PreSetFunc is not None) SysVarAnalog.__init__(self, _name, _rangeCount, WETLabs, _compName, _helpline, showEditBox, _units, _PreSetFunc, _PostGetFunc) self.m_key = _key
def __init__(self, name, range, pinAnalIn, pinPwmOut=None, SetPolarityPositiveFunc=None, GetPolarityPositiveFunc=None, compName='', helpLine='', units='', PreSetFunc=None, highFreqPWM=False, pinOutVoltsMax=5, pinInVoltsMax=5, pinOutVoltsMin=0, pinInVoltsMin=0, PostGetFunc=None): SysVarAnalog.__init__(self, name, range, Arduino, compName, helpLine, pinPwmOut != None, units, PreSetFunc, PostGetFunc) self.pinIn = pinAnalIn self.pinOut = pinPwmOut self.SetPolarityPositiveFunc = SetPolarityPositiveFunc self.GetPolarityPositiveFunc = GetPolarityPositiveFunc self.highFreqPWM = highFreqPWM self.pinOutVoltsMax = pinOutVoltsMax self.pinInVoltsMax = pinInVoltsMax self.pinOutVoltsMin = pinOutVoltsMin self.pinInVoltsMin = pinInVoltsMin
def __init__(self, name, manifoldPort, units, range, helpLine='', editable=False): SysVarAnalog.__init__(self, name, range, LabSmithEIB, helpLine=helpLine, editable=editable, units=units) self.sensorManifold = None self.manifoldPort = manifoldPort
def __init__( self, name, compName, comp, units="%", range=[0, 100], helpLine="", editable=True, showInSignalLog=True ): SysVarAnalog.__init__( self, name, range, LabSmithEIB, compName, helpLine=helpLine, editable=editable, units=units, showInSignalLog=showInSignalLog, ) self.comp = comp self.cache = 0
def __init__(self, name, compName, comp, units='%', helpLine='', editable=True, showInSignalLog=True): SysVarAnalog.__init__(self, name, [0, 100], LabSmithEIB, compName, helpLine=helpLine, editable=editable, units=units, showInSignalLog=showInSignalLog) self.comp = comp self.cache = 0
def __init__(self, name, compName, comp, units='%', helpLine='', editable=True, showInSignalLog=True): SysVarAnalog.__init__(self, name, [0,100], LabSmithEIB, compName, helpLine=helpLine, editable=editable, units=units, showInSignalLog=showInSignalLog) self.comp = comp self.cache = 0