def _actuate(self, obj, action): """ obj: valve object action: str, "Open" or "Close" """ if self.simulation: return True cmd = '{} {}'.format(action, get_valve_name(obj)) return self.ask(cmd)
def get_channel_state(self, obj, verbose=True): """ Query the hardware for the channel state """ cmd = 'GetValveState {}'.format(get_valve_name(obj)) return self.ask(cmd, verbose=verbose)
def get_lock_state(self, obj, verbose=False): cmd = 'GetValveLockState {}'.format(get_valve_name(obj)) return self.ask(cmd, verbose=verbose)