Startup
This commit is contained in:
@@ -5,12 +5,13 @@ import ch.psi.pshell.epics.ControlledVariable as ControlledVariable
|
||||
|
||||
#CAMERA = "S10DI01-DSCR020" #"simulation"
|
||||
#CAMERA = "SINDI02-DLAC055" #"simulation"
|
||||
#CAMERA = "S10BD01-DSCR030" #"simulation"
|
||||
CAMERA = "S10BD01-DSCR030" #"simulation"
|
||||
#CAMERA = "SINDI01-DSCR080" #"simulation"
|
||||
CAMERA = "SINEG01-DSCR190" #"simulation"
|
||||
#CAMERA = "SINEG01-DSCR190" #"simulation"
|
||||
#QUADRUPOLE = "S10CB02-MQUA230" # quadrupole for the scan with S10DI01-DSCR020: S10CB02-MQUA230
|
||||
CHARGE_BPM = "SINDI01-DBPM060:Q1"
|
||||
CHARGE_ICT = "S10DI01-DICT025:B1_CHARGE-OP"
|
||||
WirePos = "SINDI01-DWSC090:MOTOR_1.RBV"
|
||||
#RANGE = (-3.0, 0.0)
|
||||
#STEPS = 100
|
||||
#SETTLING_TIME = 1
|
||||
@@ -51,7 +52,7 @@ set_device_alias(m,"image")
|
||||
|
||||
bpm = Channel(CHARGE_BPM, 'd', alias = "Charge BPM")
|
||||
ict = Channel(CHARGE_ICT, 'd', alias = "Charge ICT")
|
||||
|
||||
wcs = Channel(WirePos, 'd', alias = "Wire position")
|
||||
#Metadata
|
||||
|
||||
try:
|
||||
@@ -79,8 +80,8 @@ try:
|
||||
#readables.remove(camtool.stream.getChild("image"))
|
||||
#readables.insert(0,m)
|
||||
# lscan(quad, readables, RANGE[0], RANGE[1], STEPS, latency=SETTLING_TIME)
|
||||
mscan(camtool.stream, (m, x_profile, y_profile, x_axis, y_axis), 1)
|
||||
|
||||
#tscan((m, x_profile, y_profile, x_axis, y_axis, bpm, wcs), 10, 1.0) #Saves 10 samples waiting 1.0 s between them
|
||||
tscan((m, x_profile, y_profile, x_axis, y_axis, bpm, wcs), 20, 0.11)
|
||||
finally:
|
||||
# quad.close()
|
||||
camtool.stop()
|
||||
|
||||
Reference in New Issue
Block a user