Remove PSU control from spectrometer.py — machine handles it
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import time
|
|
||||||
|
|
||||||
from hpcs6500 import HPCS6500, find_hpcs_port
|
from hpcs6500 import HPCS6500, find_hpcs_port
|
||||||
|
|
||||||
@@ -17,11 +16,8 @@ def measure():
|
|||||||
dev = HPCS6500(port)
|
dev = HPCS6500(port)
|
||||||
try:
|
try:
|
||||||
dev.identify()
|
dev.identify()
|
||||||
dev.psu_on()
|
|
||||||
time.sleep(0.5)
|
|
||||||
reading = dev.take_reading(psu=False)
|
reading = dev.take_reading(psu=False)
|
||||||
finally:
|
finally:
|
||||||
dev.psu_off()
|
|
||||||
dev.close()
|
dev.close()
|
||||||
|
|
||||||
if reading is None:
|
if reading is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user