Skip to content
Snippets Groups Projects
Commit ed55861c authored by Gijs Schoonderbeek's avatar Gijs Schoonderbeek
Browse files

Small changes after double check

parent 30c79c53
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ VOUT_POLS = {"CTR_LBA" : 8.0,
IOUT_POLS = {"CTR_LBA" : 0.45,
"CTR_RCU2_A" : 0.7,
"CTR_RCU2_D" : 0.36}
"CTR_RCU2_D" : 0.3}
LP_VIN = 0x88 #
LP_VOUT_MODE = 0x20
......
......@@ -355,6 +355,7 @@ class PolClass:
else:
check_ok = False
print(f"POL {self.name:10} Vout not OK, expected {expected_vout} V, measured {self.vout} V")
return check_ok
vin_low = 45
vin_high = 50
if vin_low < self.vin < vin_high:
......@@ -362,16 +363,18 @@ class PolClass:
else:
check_ok = False
print(f"POL {self.name:10} Vin not OK, expected {vin_low} V - {vin_high} V, measured {self.vout} V ")
return check_ok
temp_low = 20
temp_high = 50
if (temp_low < self.temp < temp_high) & check_ok:
if temp_low < self.temp < temp_high:
check_ok = True
else:
check_ok = False
print(f"POL {self.name:10} TEMP not OK, expected {temp_low} C - {temp_high} C, measured {self.temp} C ")
i_low = 0.8*IOUT_POLS[self.name]
i_high = 1.2*IOUT_POLS[self.name]
if (i_low < self.iout < i_high) & check_ok:
return check_ok
i_low = 0.75*IOUT_POLS[self.name]
i_high = 1.25*IOUT_POLS[self.name]
if i_low < self.iout < i_high:
check_ok = True
else:
check_ok = False
......
......@@ -31,11 +31,11 @@ if len(sys.argv)<2:
exit()
apspu = ApspuClass()
#apspu.apspu_on_off(False)
#sleep(5)
#apspu.set_pols()
#apspu.apspu_on_off(True)
#sleep(10)
apspu.apspu_on_off(False)
sleep(5)
apspu.set_pols()
apspu.apspu_on_off(True)
sleep(10)
apspu.read_all()
apspu.print_status()
if apspu.check_apspu():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment