Script execution

This commit is contained in:
sfop
2017-04-27 10:40:35 +02:00
parent 041f79c1d3
commit 11fed33b74

View File

@@ -136,10 +136,9 @@ class WireScanner(WireScanInfo):
self.wire_sel.put(WireScanner.Selection.index(sel))
#Setting parameters
if start is not None:
if self.scan_rangeis not None:
if sel in ["W1X", "W2X"]: self.start.write(float(self.scan_range[0]))
if sel in ["W1Y", "W2Y"]: self.start.write(float(self.scan_range[2]))
if end is not None:
if sel in ["W1X", "W2X"]: self.end.write(float(self.scan_range[1]))
if sel in ["W1Y", "W2Y"]: self.end.write(float(self.scan_range[3]))