Script execution

This commit is contained in:
gobbo_a
2017-05-04 17:25:05 +02:00
parent 066d1d2909
commit 26153cd075

View File

@@ -146,14 +146,23 @@ class WireScanner(WireScanInfo):
def abort(self):
caputq(self.prefix + ":ABORT.PROC", 1)
def init(self):
def init(self, wait=False):
#if self.selection is not None:
# self.wire_sel.put(WireScanner.Selection.index(self.selection))
caputq(self.prefix + ":INIT.PROC", 1)
if wait:
self.wait_in_selection()
def park(self):
def park(self, wait=False):
caputq(self.prefix + ":GARAGE_SEL.PROC", 1)
caputq(self.prefix + ":INIT.PROC", 1)
if wait:
self.wait_in_selection()
def wait_in_selection(self):
time.sleep(3.0)
scanner.waitValue("At start", 60000)
#time.sleep(0.5)
def scan(self):
self.cycles = self.nb_cycles.get()