28 lines
834 B
Python
28 lines
834 B
Python
# Map short names to the corresponding variable names
|
|
motor_short_names = {
|
|
"ap_s_w": APERTURE_SLOPE_WIDTH_NAME,
|
|
"ap_s_h": APERTURE_SLOPE_HEIGHT_NAME,
|
|
"ap_o_w": APERTURE_OFFSET_WIDTH_NAME,
|
|
"ap_o_h": APERTURE_OFFSET_HEIGHT_NAME,
|
|
}
|
|
|
|
# Loop to define and configure the motors
|
|
for short_name, full_name in motor_short_names.items():
|
|
dev = EpicsMotor(short_name, full_name) # Create the motor
|
|
dev.monitored = True # Enable monitoring
|
|
add_device(dev, True) # Add the device to the system
|
|
# show_panel(dev)
|
|
|
|
|
|
# define reference screen
|
|
dev = DiscretePositioner("camera_screen", SCREEN_PROBE)
|
|
dev.monitored = True
|
|
add_device(dev, True)
|
|
|
|
|
|
|
|
dev = Positioner("att", "SARFE10-OATT053:UsrRec.TD", "SARFE10-OATT053:UsrRec.TR1")
|
|
dev.monitored = True
|
|
add_device(dev, True)
|
|
|