コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
 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
コード例 #5
0
ファイル: __init__.py プロジェクト: keithrowe1/Instrumentino
 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
コード例 #6
0
ファイル: __init__.py プロジェクト: david-kooi/Instrumentino
 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
コード例 #7
0
ファイル: __init__.py プロジェクト: CyclngChick/instrumentino
 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
コード例 #8
0
ファイル: __init__.py プロジェクト: kevinc333/Instrumentino
 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
コード例 #9
0
ファイル: __init__.py プロジェクト: taiwofasae/Instrumentino
 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
コード例 #10
0
 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