Source code for AFL.automation.loading.DigitalOutPressureController

from AFL.automation.loading.PressureController import PressureController

[docs] class DigitalOutPressureController(PressureController):
[docs] def __init__(self,digital_out,pressure_to_v_conv): ''' Initializes a DigitalOutPressureController Params: digital_out (AFL.automation.DigitalOut): pressure_to_v_conv (float): pressure units per volt ''' self.digital_out = digital_out self.pressure_to_v_conv = pressure_to_v_conv
[docs] def set_P(self,pressure): self.digital_out.write(pressure / self.pressure_to_v_conv)