def __init__(self): Regulator.__init__(self, 'Two Level Regulator') self.inputs['value'] = RegulatorProperty(0, '') self.inputs['setpoint'] = RegulatorProperty(0, '') self.constants['uh'] = RegulatorProperty(1, 'Upper Hysteresis') self.constants['lh'] = RegulatorProperty(1, 'Lower Hysteresis') self.outputs['inc'] = RegulatorProperty(0, 'Increment output') self.outputs['dec'] = RegulatorProperty(0, 'Decrement output') self.state = 'OK'
def __init__(self): Regulator.__init__(self, 'Delayed PI Regulator') self.inputs['value'] = RegulatorProperty(0, 'Value') self.inputs['setpoint'] = RegulatorProperty(0, 'Setpoint') self.inputs['activate'] = RegulatorProperty(0, 'Pulse activation signal') self.outputs['output'] = RegulatorProperty(0, 'Pulsed output signal') self.constants['t_off'] = RegulatorProperty(60, 'Output low period (seconds)') self.constants['P'] = RegulatorProperty(10, 'Proportional constant') self.last_change = None self.state = 'ready'
def __init__(self): Regulator.__init__(self, 'PI Regulator') self.inputs['diff'] = RegulatorProperty(0, 'difference between output and setpoint') self.constants['K_p'] = RegulatorProperty(1, 'Proportional constant') self.constants['K_i'] = RegulatorProperty(0.1, 'Integral constant') self.constants['T_i'] = RegulatorProperty(1, 'Sampling time interval') self.constants['min'] = RegulatorProperty(0, 'Minimum Output value') self.constants['max'] = RegulatorProperty(100, 'Maximum Output value') self.outputs['result'] = RegulatorProperty(0, 'Regulator output') self.esum = 0
def __init__(self): Regulator.__init__(self, 'PI Regulator') self.inputs['diff'] = RegulatorProperty( 0, 'difference between output and setpoint') self.constants['K_p'] = RegulatorProperty(1, 'Proportional constant') self.constants['K_i'] = RegulatorProperty(0.1, 'Integral constant') self.constants['T_i'] = RegulatorProperty(1, 'Sampling time interval') self.constants['min'] = RegulatorProperty(0, 'Minimum Output value') self.constants['max'] = RegulatorProperty(100, 'Maximum Output value') self.outputs['result'] = RegulatorProperty(0, 'Regulator output') self.esum = 0
def __init__(self): Regulator.__init__(self, 'Root Humidifier') self.inputs['T_i'] = RegulatorProperty(0, 'Inside Air Temperature') self.inputs['T_i_sp'] = RegulatorProperty(0, 'Inside Air Temperature Setpoint') self.inputs['H_i'] = RegulatorProperty(0, 'Inside Air Humidity') self.inputs['H_i_sp'] = RegulatorProperty(0, 'Inside Air Humidity Setpoint') self.outputs['pump'] = RegulatorProperty(0, 'Fog Pump') self.outputs['t_off'] = RegulatorProperty(0, 'Calculated Off Time') self.constants['t_on'] = RegulatorProperty(30, 'Pump on time') self.constants['t_off_min'] = RegulatorProperty(60, 'Pump min off time') self.constants['t_off_max'] = RegulatorProperty(180, 'Pump max off time') self.last_change = None self.pump_value = 0
def __init__(self): Regulator.__init__(self, 'Root Humidifier') self.inputs['T_i'] = RegulatorProperty(0, 'Inside Air Temperature') self.inputs['T_i_sp'] = RegulatorProperty( 0, 'Inside Air Temperature Setpoint') self.inputs['H_i'] = RegulatorProperty(0, 'Inside Air Humidity') self.inputs['H_i_sp'] = RegulatorProperty( 0, 'Inside Air Humidity Setpoint') self.outputs['pump'] = RegulatorProperty(0, 'Fog Pump') self.outputs['t_off'] = RegulatorProperty(0, 'Calculated Off Time') self.constants['t_on'] = RegulatorProperty(30, 'Pump on time') self.constants['t_off_min'] = RegulatorProperty( 60, 'Pump min off time') self.constants['t_off_max'] = RegulatorProperty( 180, 'Pump max off time') self.last_change = None self.pump_value = 0
def __init__(self): Regulator.__init__(self, 'P Regulator') self.inputs['diff'] = RegulatorProperty( 0, 'difference between output and setpoint') self.constants['K_p'] = RegulatorProperty(1, 'Proportional constant') self.outputs['result'] = RegulatorProperty(0, 'Regulator output')
def __init__(self): Regulator.__init__(self, 'Difference') self.inputs['a'] = RegulatorProperty(0, 'input 1') self.inputs['b'] = RegulatorProperty(0, 'input 2') self.outputs['result'] = RegulatorProperty(0, 'Result (a-b)')
def __init__(self): Regulator.__init__(self, 'P Regulator') self.inputs['diff'] = RegulatorProperty(0, 'difference between output and setpoint') self.constants['K_p'] = RegulatorProperty(1, 'Proportional constant') self.outputs['result'] = RegulatorProperty(0, 'Regulator output')