Script execution
This commit is contained in:
@@ -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"}
|
||||
BPM_SENSORS = [("x","X1"), ("y","Y1"), ("q","Q1")] #(logic name sufix, channel sufix)
|
||||
|
||||
#Paramter parsing
|
||||
if is_panel:
|
||||
@@ -43,8 +43,8 @@ if bpm3 is not None:
|
||||
bpms.append(bpm3)
|
||||
bpms = ["SINDI01-DBPM060", "SINDI02-DBPM010"] #For testing
|
||||
for i in range (len(bpms)):
|
||||
for sensor in BPM_SENSORS.keys():
|
||||
channels.append (("bpm" + str(i+1) + "_" + sensor, bpms[i] + ":" + BPM_SENSORS[sensor]))
|
||||
for sensor in BPM_SENSORS:
|
||||
channels.append (("bpm" + str(i+1) + "_" + sensor[0], bpms[i] + ":" + sensor[1]))
|
||||
|
||||
#Stream creation
|
||||
print "Starting stream..."
|
||||
|
||||
Reference in New Issue
Block a user