From 99bf434a6e227ddeb0d4e1ea7c4305798316bc8b Mon Sep 17 00:00:00 2001
From: Gijs Schoonderbeek <schoonderbeek@astron.nl>
Date: Fri, 24 Feb 2023 14:22:13 +0100
Subject: [PATCH] Used for testing 3 L2TS boards

---
 production_apsct.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/production_apsct.py b/production_apsct.py
index a55d7de..e74fc0a 100644
--- a/production_apsct.py
+++ b/production_apsct.py
@@ -16,6 +16,7 @@ Check APSCT_CLK
 """
 import apsct_lib
 import sys
+import time
 
 READ_ALL = False  # True
 
@@ -33,6 +34,7 @@ for mode in modi:
     print(f"Check APSCT in {mode} mode")
     apsct.frequency = mode
     apsct.set_apsct()
+    time.sleep(1)
     if mode == "200MHz":
         state = state & apsct.pll_200.read_lock()
     if mode == "160MHz":
@@ -40,6 +42,7 @@ for mode in modi:
 
 apsct.frequency = "200MHz"
 apsct.set_apsct()
+time.sleep(1)
 apsct.pll_200.read_lock()
 apsct.sensors.apsct_sensors()
 state = state & apsct.check_apsct()
@@ -55,6 +58,7 @@ if state:
     rw_ok = apsct.eeprom.wr_rd_eeprom(apsct_id, address=0)
     if rw_ok:
         rw_ok = apsct.eeprom.wr_rd_eeprom(serial, address=0x20)
+        print("APSCT tested successfully ")
     if not rw_ok:
         print("EEPROM Error")
 else:
-- 
GitLab