Script execution
This commit is contained in:
@@ -12,7 +12,8 @@ if controller.state == State.Ready and Scienta.state.isInitialized():
|
||||
#Criteria: first communication after timeout
|
||||
retries = 3
|
||||
for i in range(retries):
|
||||
try:
|
||||
try:
|
||||
print "Reading"
|
||||
Scienta.getImageCounter().read()
|
||||
print "Communication ok"
|
||||
if globals().has_key("scientaTimeOut"):
|
||||
@@ -23,7 +24,7 @@ if controller.state == State.Ready and Scienta.state.isInitialized():
|
||||
except:
|
||||
if i < retries-1:
|
||||
print "Com failure: retrying"
|
||||
else
|
||||
else:
|
||||
print "Scienta timeout"
|
||||
scientaTimeOut = True
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user