post experiment commit, code is operational

This commit is contained in:
2024-07-16 09:49:14 +02:00
parent 2bdf9c6542
commit f1bbdec2b3
4 changed files with 148 additions and 176 deletions

View File

@ -115,11 +115,13 @@ class VoltageChannel(HasIO, Drivable):
return self.read_slew_rate()
def read_output_state(self):
return bool(self.communicate(f'OUTP{self.channel}?'))
return int(self.communicate(f'OUTP{self.channel}?'))
def write_output_state(self, output_state):
self.communicate(f'OUTP{self.channel} {int(output_state)};*OPC?')
return self.read_slew_rate()
if not output_state:
self.write_target(0)
return self.read_output_state()
def read_meas_voltage(self):
return float(self.communicate(f'MEAS{self.channel}:VOLT?'))