post experiment commit, code is operational
This commit is contained in:
@ -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?'))
|
||||
|
Reference in New Issue
Block a user