From 6be581e5289f857c2e6d0ce1cf934db49c8568d4 Mon Sep 17 00:00:00 2001 From: daq Date: Fri, 15 Jul 2022 11:45:45 -0500 Subject: [PATCH] clear event before switch on --- .gitignore | 2 ++ IsegLibrary.py | 1 + IsegLibrary.pyc | Bin 6554 -> 0 bytes 3 files changed, 3 insertions(+) delete mode 100644 IsegLibrary.pyc diff --git a/.gitignore b/.gitignore index 65b9e35..1b5b813 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.csv *.dat __pycache__ + +*.pyc diff --git a/IsegLibrary.py b/IsegLibrary.py index 9b92df0..a314248 100755 --- a/IsegLibrary.py +++ b/IsegLibrary.py @@ -126,6 +126,7 @@ def SwitchOnHV(ch, onOff): try : int(ch) int(onOff) + SendCmd(1, "outputSwitch.u" + str(ch) + " i " + str(10)) return SendCmd(1, "outputSwitch.u" + str(ch) + " i " + str(onOff)) except : print("either ch or onOff is not int") diff --git a/IsegLibrary.pyc b/IsegLibrary.pyc deleted file mode 100644 index c8bc3c23366627c70cdba8aab1430694a58631cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6554 zcmdT}TW=dx5T0W@7duYUq@|`Ug)JqjOKT?%2$hJUmh_THiBqjh0+kTjcsKDT>$SUQ z-BPK2K&^Py)5{TZ``C&p~mDAbK>Ym0Zwcg@1QdHdnr!t&xbMxknKwt|*Xn!Qmh z-T0zdDwT?*nUYZjC@Fph_?hQN|HkCGfU}*T;35DCiE_^s76vTLnP*Iqmtt35XoQEk)(MzRXDtf^+N!ntB(_BMa+&|N1M!;0^S(dHr zG9f(-;@6v-PH4Dlca263mZj5ipQo0$ZRjgpa;mk4(P)Nl!=E!|jDo?#uNx(1c+_=c zmKk&ofrhR*o~JR<`W1~|h-fB1#C!-+t=lt|FbI>(Ykp_&ZmlEt}z`)ThFU&JXLi8uhP1hQA zXWF(NPcLd`vr=AuaR1vy;g{U?zzUufo6kh%isRe!b;g}Vox~g}t0vk{VlZ(*Rk2n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