Skip to content

Commit 57153af

Browse files
authored
Update pacq.py
1 parent 3694ea3 commit 57153af

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

nintan/pacq.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,16 @@ def acq():
7373
scommand.sendall(b'set runmode run')
7474
time.sleep(tsamp)
7575
scommand.sendall(b'set runmode stop')
76+
7677
# Suggestion from Adrian at Intan 4/21/22
7778
t1 = time.perf_counter()
79+
time.sleep(0.04)
7880
scommand.sendall(b'get runmode')
7981
commandReturn = str(scommand.recv(COMMAND_BUFFER_SIZE), "utf-8")
8082
isStopped = commandReturn == "Return: RunMode Stop"
8183
while not isStopped:
84+
time.sleep(0.01)
85+
print('Wait')
8286
scommand.sendall(b'get runmode')
8387
commandReturn = str(scommand.recv(COMMAND_BUFFER_SIZE), "utf-8")
8488
isStopped = commandReturn == "Return: RunMode Stop"

0 commit comments

Comments
 (0)