if get_exec_pars().source == CommandSource.ui: prefix = "SARCL02-DWSC270" sel = WireScan.W1X else: prefix = args[0] sel = args[1] run("Devices/Elements") run("Devices/WireScan") print get_wire_scans() wire_scan = WireScan(prefix, sel) print wire_scan.start.read() print wire_scan.end.read() time.sleep(1.0) print wire_scan.current_cycle wire_scan.close()