Script execution
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user