change the unit for update from ms to sec

This commit is contained in:
dirac 2022-07-13 14:52:41 -04:00
parent 9a6181e527
commit 68db8bdaf4
2 changed files with 5 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.csv
*.dat

View File

@ -150,13 +150,13 @@ outVList = GetAllOutputHV()
outIList = GetAllLC()
nChannel = len(chList)
updateTime = 5000
updateTime = 5 #sec
fileName = ''
layout = [
[
sg.Text("refresh period [ms] :", size = 25, justification = "right"),
sg.Text("refresh period [sec] :", size = 27, justification = "right"),
sg.Input(updateTime, size = 8, justification = "right", enable_events=True, key=("-Refresh-"))
],
[
@ -195,7 +195,7 @@ for i in range(0, nChannel):
# Event Loop to process "events" and get the "values" of the inputs
while True:
event, values = window.read(timeout = updateTime, timeout_key = "_TIMEOUT_") ## this pause for 20 sec and wait for event
event, values = window.read(timeout = updateTime * 1000, timeout_key = "_TIMEOUT_") ## this pause for 20 sec and wait for event
#print(event)
#print(values)
#print(datetime.datetime.now())