This commit is contained in:
gobbo_a
2017-04-13 16:31:41 +02:00
parent e4b0111f3c
commit 2bf8cdf177

View File

@@ -3,7 +3,7 @@ is_panel = get_exec_pars().source != CommandSource.ui #Must be checked before c
run("Devices/Elements")
run("Devices/WireScanner")
BPM_SENSORS = [] #[("x","X1"), ("y","Y1"), ("q","Q1")] #(logic name sufix, channel sufix)
BPM_SENSORS = [("x","X1"), ("y","Y1"), ("q","Q1")] #(logic name sufix, channel sufix)
#Paramter parsing
prefix = args[0] if is_panel else "S30CB09-DWSC440"
@@ -32,7 +32,7 @@ if bpms is None:
raise Exception("Cannot determine wire scan bpms: " + prefix)
if bpm3 is not None:
bpms.append(bpm3)
bpms = ["SINDI01-DBPM060", "SINDI02-DBPM010"] #For testing
#bpms = ["SINDI01-DBPM060", "SINDI02-DBPM010"] #For testing
for i in range (len(bpms)):
for sensor in BPM_SENSORS:
channels.append (("bpm" + str(i+1) + "_" + sensor[0], bpms[i] + ":" + sensor[1]))