Fix power supply control
This commit is contained in:
parent
528ab239dc
commit
58aa7350e6
8
vendor/Owon/owon_psu_quick_demo.py
vendored
8
vendor/Owon/owon_psu_quick_demo.py
vendored
@ -79,15 +79,15 @@ def run_demo() -> int:
|
||||
print(f"IDN: {idn}")
|
||||
print(f"Output status: {psu.output_status()}")
|
||||
if do_set:
|
||||
psu.set_output(True)
|
||||
time.sleep(0.5)
|
||||
# psu.set_output(True)
|
||||
time.sleep(0.8)
|
||||
psu.set_voltage(1, set_v)
|
||||
psu.set_current(1, set_i)
|
||||
time.sleep(1.0)
|
||||
time.sleep(0.75)
|
||||
print(f"Measured V: {psu.measure_voltage()} V")
|
||||
print(f"Measured I: {psu.measure_current()} A")
|
||||
time.sleep(0.5)
|
||||
psu.set_output(False)
|
||||
# psu.set_output(False)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user