Script execution

This commit is contained in:
x07maop
2016-11-17 15:55:36 +01:00
parent 84a8447e9d
commit ff400da558

View File

@@ -108,6 +108,12 @@ def wait_device(dev, value, timeout=-1):
dev.waitValue(value,timeout)
print "Done waiting"
def wait_device_in_range(dev, value, range, timeout=-1):
timeout = int(timeout *1000) if timeout>0 else timeout
print "Waiting " + dev.getName() + " = " + str(value)
dev.waitValueInRange(value, range, timeout)
print "Done waiting"
def convert_file(input_file_name, output_file_name, pol = None):
print "Converting data file: " + input_file_name + " to " + output_file_name
sep = "\t"