From a321cd870d057b8b1b4e14aebf9d398492f40ed6 Mon Sep 17 00:00:00 2001
From: kruger <kruger@astron.nl>
Date: Mon, 11 Apr 2022 16:08:14 +0200
Subject: [PATCH] startup timing

---
 config/RECVTR.yaml | 11 ++++++-----
 config/UNB2TR.yaml |  1 +
 pypcc2.py          |  0
 3 files changed, 7 insertions(+), 5 deletions(-)
 mode change 100644 => 100755 pypcc2.py

diff --git a/config/RECVTR.yaml b/config/RECVTR.yaml
index 83d2fba..67c2d66 100644
--- a/config/RECVTR.yaml
+++ b/config/RECVTR.yaml
@@ -853,22 +853,23 @@ methods:
      - HB_UC.waitPPS: 1 #wait for PPS
      - HB_UC.VREF: 0x0C 
 
-
+     - RCU_update: 0
 #     - RCU_GPIO1: Update
 #     - RCU_GPIO2: Update
 #     - RCU_attenuator: [10,10,10]  #Set OPC-UA variable
-     - WAIT: 500         #ms to wait
+#     - WAIT: 500         #ms to wait
      - ADC1_on: 0        #call another opc-ua method
      - ADC2_on: 0
      - ADC3_on: 0
 #     - IO3.GPIO1: 0xD5 #DTH_EN=high -> ADCs disables
 #     - IO3.GPIO2: 0xC7 #
      - RCU_DTH_shutdown : [1,1,1]
-     - WAIT: 500         #ms to wait
+     - WAIT: 100         #ms to wait
      - RCU_DTH_shutdown : [0,0,0]
 #     - IO3.GPIO1: 0x15 #DTH_EN=low -> ADC enabled
 #     - IO3.GPIO2: 0x47 
-     - RCU_update: 0
+     - RCU_DTH_on: Update #check dither while giving ADCs some time to lock
+     - RCU_ADC_locked: Update #disabled for testing
 
 
   - name: RCU_update
@@ -1000,7 +1001,7 @@ methods:
 #     - DTH1.State :    [0,0]
 #     - DTH2.State :    [0,0]
 #     - DTH3.State :    [0,0]
-     - RCU_DTH_on: Update 
+#     - RCU_DTH_on: Update 
 
   - name: RCU_DTH_restart #restart to update frequency
     driver: I2C_RCU
diff --git a/config/UNB2TR.yaml b/config/UNB2TR.yaml
index 3e18a10..e0c7577 100644
--- a/config/UNB2TR.yaml
+++ b/config/UNB2TR.yaml
@@ -501,6 +501,7 @@ methods:
      - UNB2_Front_Panel_LED_colour: 3 #green
      - UNB2_PCB_ID: Update
      - UNB2_PCB_version: Update
+     - WAIT: 18000         
 
   - name: UNB2_off
     mask: UNB2_mask
diff --git a/pypcc2.py b/pypcc2.py
old mode 100644
new mode 100755
-- 
GitLab