clear event before switch on

This commit is contained in:
daq 2022-07-15 11:45:45 -05:00
parent ed59e33df7
commit 6be581e528
3 changed files with 3 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
*.csv *.csv
*.dat *.dat
__pycache__ __pycache__
*.pyc

View File

@ -126,6 +126,7 @@ def SwitchOnHV(ch, onOff):
try : try :
int(ch) int(ch)
int(onOff) int(onOff)
SendCmd(1, "outputSwitch.u" + str(ch) + " i " + str(10))
return SendCmd(1, "outputSwitch.u" + str(ch) + " i " + str(onOff)) return SendCmd(1, "outputSwitch.u" + str(ch) + " i " + str(onOff))
except : except :
print("either ch or onOff is not int") print("either ch or onOff is not int")

Binary file not shown.