From da7cf526259c0309a9db4c25106bd922b954e5ad Mon Sep 17 00:00:00 2001 From: kruger <kruger@astron.nl> Date: Thu, 16 Jun 2022 09:24:50 +0200 Subject: [PATCH] UNB2 on/off time update, reduce logging --- pypcc/config/UNB2TR.yaml | 4 ++-- pypcc/i2cserv/i2c_switch2.py | 2 +- pypcc/opcuaserv/yamlreader.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pypcc/config/UNB2TR.yaml b/pypcc/config/UNB2TR.yaml index e0c7577..7274629 100644 --- a/pypcc/config/UNB2TR.yaml +++ b/pypcc/config/UNB2TR.yaml @@ -501,11 +501,11 @@ methods: - UNB2_Front_Panel_LED_colour: 3 #green - UNB2_PCB_ID: Update - UNB2_PCB_version: Update - - WAIT: 18000 + - WAIT: 5000 - name: UNB2_off mask: UNB2_mask instructions: - UNB2_PWR_on: 1 #inverted - - WAIT: 200 + - WAIT: 500 # - UNB2_Front_Panel_LED_colour: 2 diff --git a/pypcc/i2cserv/i2c_switch2.py b/pypcc/i2cserv/i2c_switch2.py index b8d8fad..16ff3d4 100644 --- a/pypcc/i2cserv/i2c_switch2.py +++ b/pypcc/i2cserv/i2c_switch2.py @@ -16,7 +16,7 @@ class i2c_switch2(i2c): def setI2Cswitch(self,addr,state): res=self.i2csetget(addr,[state]); if not(res): - logging.warning("Error setting switch, switch reset not implemented!"); + logging.info("Error setting switch, switch reset not implemented!"); return res; def SetSW1(self,channelbit): diff --git a/pypcc/opcuaserv/yamlreader.py b/pypcc/opcuaserv/yamlreader.py index 5319e69..cfafea4 100644 --- a/pypcc/opcuaserv/yamlreader.py +++ b/pypcc/opcuaserv/yamlreader.py @@ -172,7 +172,7 @@ class yamlreader(yamlconfig): logging.warn("setvar unsupported type"); return; data2=[d for d in data2] - logging.warning(str(("setvar ",v['name'],data2,mask))); + logging.info(str(("setvar ",v['name'],data2,mask))); self.SetBusy() self.server.setvar(id1,data2,mask) @@ -265,7 +265,7 @@ class yamlreader(yamlconfig): else: data3=data2; # print("OPCset",v['name'],data3[:64],mask) - logging.warning(str(("OPCset",v['name'],data3[:64],mask))) + logging.info(str(("OPCset",v['name'],data3[:64],mask))) # if v['name']=='UNB2_FPGA_POL_ERAM_IOUT': logging.warn(str((data3,data2,mask,var1.get_value(),[hex(d) for d in data]))); if len(data3)==1: data3=data3[0]; var1.set_value(data3,datatype); -- GitLab