Skip to content
Snippets Groups Projects
Commit 75072a37 authored by Jens Georg's avatar Jens Georg
Browse files

Add flashsd4dbc3

Also split up config a bit
parent 0b34fa46
No related branches found
No related tags found
No related merge requests found
...@@ -11,88 +11,58 @@ else: ...@@ -11,88 +11,58 @@ else:
def makeDoocsArray(values: typing.Iterable) -> str: def makeDoocsArray(values: typing.Iterable) -> str:
return " ".join(map(str, values)) return " ".join(map(str, values))
TOROID_LOCATION = { # Names of the properties for the different flattops on the Toroid server
'203.B1' : 'TORA.203.B1' TOROID_FT = {
'XFEL' : ['SAMPLE.SA1', 'SAMPLE.SA2', 'SAMPLE.SA3'],
'FLASH' : ['SAMPLE.FLASH1', 'SAMPLE.FLASH2']
} }
# Lab is part of XFEL but has different location
TOROID_FT['LAB'] = TOROID_FT['XFEL']
MLO_DEVICE = { #
'203.B1' : 'LASER.LOCK.XLO' # Settings which are filled by the accelerator-specific files
} #
MLO_LOCATION = { TOROID_LOCATION = dict()
'203.B1' : 'XTIN.MLO1'
}
LINK_LOCATION = { MLO_DEVICE = dict()
'203.B1' : 'XTIN.AMC6.CONTROLLER'
}
LINK_LOCK_NUMBER = { MLO_LOCATION = dict()
'203.B1' : 1
}
TOROID_FT = { LINK_LOCATION = dict()
'XFEL' : ['SAMPLE.SA1', 'SAMPLE.SA2', 'SAMPLE.SA3'],
'FLASH' : ['SAMPLE.FLASH1', 'SAMPLE.FLASH2']
}
# Lab is part of XFEL but has different location LINK_LOCK_NUMBER = dict()
TOROID_FT['LAB'] = TOROID_FT['XFEL']
TIMER_LOCATION = { TIMER_LOCATION = dict()
'203.B1' : 'SD205B1'
}
TOROID_DATA_THREESHOLD = { TOROID_DATA_THRESHOLD = dict()
'203.B1' : 5e-3
}
MOTOR_CONVERSION_FACTOR = { MOTOR_CONVERSION_FACTOR = dict()
'203.B1' : [4.981200e-01, 4.974300e-01, 4.974300e-01, 4.974300e-01],
}
MOTOR_CONVERSION_REFLECTION = { MOTOR_CONVERSION_REFLECTION = dict()
'203.B1' : [1, 1, 1, 1]
}
MOTOR_CONVERSION_TRANSLATION_OFFSET = { MOTOR_CONVERSION_TRANSLATION_OFFSET = dict()
'203.B1' : [0, 0, 0, 0]
}
DELTAT_MOTOR_SIGN = { DELTAT_MOTOR_SIGN = dict()
'203.B1' : [1, 1, 1]
}
DELTAT_SIGN = { DELTAT_SIGN = dict()
'203.B1' : [1e-3, 1e-3, 1e-3]
}
MODULATION_SIGN = { MODULATION_SIGN = dict()
'203.B1' : [-1, -1]
}
START_ARRAY_VALUE_ACCURACY = { START_ARRAY_VALUE_ACCURACY = dict()
'203.B1' : 1
}
N_SAMPLE_ACCURACY = { N_SAMPLE_ACCURACY = dict()
'203.B1' : '255'
}
FEEDBACK_THRESHOLD_CHARGE = { FEEDBACK_THRESHOLD_CHARGE = dict()
'203.B1' : [0,0,0]
}
ARRIVAL_TIME_OFFSET = { ARRIVAL_TIME_OFFSET = dict()
'203.B1' : [-1.300000e+05, -1.300000e+05, 0.0]
}
#### ####
# Common hardware settings # Common hardware settings
#### ####
BAM_DEVNO = 3 BAM_DEVNO = 3
MOTOR_DEVNO = 8 MOTOR_DEVNO = 'devs8'
# #
# Generic configuration # Generic configuration
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# flash # flash
#flashcpusdbc2.desy.de D flash BAM/3DBC2 BAM/1UBC2/1UBC2 #flashcpusdbc2.desy.de D flash BAM/3DBC2 BAM/1UBC2/1UBC2
#flashcpusd4dbc3.desy.de D flash BAM/4DBC3 flashcpusd4dbc3.desy.de D flash BAM/4DBC3
#flashcpusd1sfelc.desy.de D flash BAM/1SFELC #flashcpusd1sfelc.desy.de D flash BAM/1SFELC
#flashcpusd8fl2burn.desy.de D flash BAM/8FL2BURN #flashcpusd8fl2burn.desy.de D flash BAM/8FL2BURN
#flashcpusd7flfmaff.desy.de D flash BAM/7FLFMAFF #flashcpusd7flfmaff.desy.de D flash BAM/7FLFMAFF
......
MOTOR_DEVNO='unis6'
TOROID_LOCATION.update({
'4DBC3' : '5DBC3'
})
MLO_DEVICE.update({
'4DBC3' : 'LASER.LOCK.XLO'
})
MLO_LOCATION.update({
'4DBC3' : 'FLASH.MLO1'
})
LINK_LOCATION.update({
'4DBC3' : 'FLASH.AMC7.CONTROLLER'
})
LINK_LOCK_NUMBER.update({
'4DBC3' : 3
})
TIMER_LOCATION.update({
'4DBC3' : 'SD4DBC3'
})
TOROID_DATA_THRESHOLD.update({
'4DBC3' : 1e-2
})
MOTOR_CONVERSION_FACTOR.update({
'4DBC3' : [1.042700e+00, 1.042700e+00, 1.042700e+00, 1.042700e+00],
})
MOTOR_CONVERSION_REFLECTION.update({
'4DBC3' : [1, 1, 1, 1]
})
MOTOR_CONVERSION_TRANSLATION_OFFSET.update({
'4DBC3' : [0, 0, 0, 0]
})
DELTAT_MOTOR_SIGN.update({
'4DBC3' : [1, 1, 1]
})
DELTAT_SIGN.update({
'4DBC3' : [1e-3, 1e-3, 1e-3]
})
MODULATION_SIGN.update({
'4DBC3' : [-1, -1]
})
START_ARRAY_VALUE_ACCURACY.update({
'4DBC3' : 1
})
N_SAMPLE_ACCURACY.update({
'4DBC3' : '200'
})
FEEDBACK_THRESHOLD_CHARGE.update({
'4DBC3' : [0,0,0]
})
ARRIVAL_TIME_OFFSET.update({
'4DBC3' : [-1.300000e+05, -1.300000e+05, 0.0]
})
TOROID_LOCATION.update({
'203.B1' : 'TORA.203.B1'
})
MLO_DEVICE.update({
'203.B1' : 'LASER.LOCK.XLO'
})
MLO_LOCATION.update({
'203.B1' : 'XTIN.MLO1'
})
LINK_LOCATION.update({
'203.B1' : 'XTIN.AMC6.CONTROLLER'
})
LINK_LOCK_NUMBER.update({
'203.B1' : 1
})
TOROID_FT.update({
'XFEL' : ['SAMPLE.SA1', 'SAMPLE.SA2', 'SAMPLE.SA3'],
'FLASH' : ['SAMPLE.FLASH1', 'SAMPLE.FLASH2']
})
# Lab is part of XFEL but has different location
TOROID_FT['LAB'] = TOROID_FT['XFEL']
TIMER_LOCATION.update({
'203.B1' : 'SD205B1'
})
TOROID_DATA_THRESHOLD.update({
'203.B1' : 5e-3
})
MOTOR_CONVERSION_FACTOR.update({
'203.B1' : [4.981200e-01, 4.974300e-01, 4.974300e-01, 4.974300e-01],
})
MOTOR_CONVERSION_REFLECTION.update({
'203.B1' : [1, 1, 1, 1]
})
MOTOR_CONVERSION_TRANSLATION_OFFSET.update({
'203.B1' : [0, 0, 0, 0]
})
DELTAT_MOTOR_SIGN.update({
'203.B1' : [1, 1, 1]
})
DELTAT_SIGN.update({
'203.B1' : [1e-3, 1e-3, 1e-3]
})
MODULATION_SIGN.update({
'203.B1' : [-1, -1]
})
START_ARRAY_VALUE_ACCURACY.update({
'203.B1' : 1
})
N_SAMPLE_ACCURACY.update({
'203.B1' : '255'
})
FEEDBACK_THRESHOLD_CHARGE.update({
'203.B1' : [0,0,0]
})
ARRIVAL_TIME_OFFSET.update({
'203.B1' : [-1.300000e+05, -1.300000e+05, 0.0]
})
##mako ##mako
BAM_DEVICE (pci:pcieunis${BAM_DEVNO}?map=sdiag_bam_fmc25_${BAM_REVISION}.mapp) BAM_DEVICE (pci:pcieunis${BAM_DEVNO}?map=sdiag_bam_fmc25_${BAM_REVISION}.mapp)
MOTOR_DEVICE (pci:pciedevs${MOTOR_DEVNO}?map=sync_pzt4_md22_md22_fmc20_6s45_${MOTOR_REVISION}.mapp) MOTOR_DEVICE (pci:pcie${MOTOR_DEVNO}?map=sync_pzt4_md22_md22_fmc20_6s45_${MOTOR_REVISION}.mapp)
TOROID_RAW (doocs?facility=${ACCELERATOR}.DIAG&device=TOROID&location=${TOROID_LOCATION[STATION]}) TOROID_RAW (doocs?facility=${ACCELERATOR}.DIAG&device=TOROID&location=${TOROID_LOCATION[STATION]})
TOROID (logicalNameMap?map=toroid.xlmap) TOROID (logicalNameMap?map=toroid.xlmap)
MLO_RAW (doocs?facility=${ACCELERATOR}.SYNC&device=${MLO_DEVICE[STATION]}&location=${MLO_LOCATION[STATION]}) MLO_RAW (doocs?facility=${ACCELERATOR}.SYNC&device=${MLO_DEVICE[STATION]}&location=${MLO_LOCATION[STATION]})
......
...@@ -40,7 +40,7 @@ BUNCH_POSITION.1: ...@@ -40,7 +40,7 @@ BUNCH_POSITION.1:
BUNCH_POSITION.1.ZMQNAME: "${timer}/BUNCH_POSITION.1" BUNCH_POSITION.1.ZMQNAME: "${timer}/BUNCH_POSITION.1"
TOROID_DATA: TOROID_DATA:
TOROID_DATA.ZMQNAME: "${ACCELERATOR}.DIAG/TOROID/${TOROID_LOCATION[STATION]}/CHARGE.TD" TOROID_DATA.ZMQNAME: "${ACCELERATOR}.DIAG/TOROID/${TOROID_LOCATION[STATION]}/CHARGE.TD"
TOROID_DATA_THREESHOLD: ${TOROID_DATA_THREESHOLD[STATION]} TOROID_DATA_THREESHOLD: ${TOROID_DATA_THRESHOLD[STATION]}
TOROID_ADDRESS: "${ACCELERATOR}.DIAG/TOROID/${TOROID_LOCATION[STATION]}" TOROID_ADDRESS: "${ACCELERATOR}.DIAG/TOROID/${TOROID_LOCATION[STATION]}"
TIMERMQ_SERVER.ZMQNAME: "${timer}/MACRO_PULSE_NUMBER" TIMERMQ_SERVER.ZMQNAME: "${timer}/MACRO_PULSE_NUMBER"
SET_PEAK_BASE_LOW_CHARGE_CHANNEL: 0 SET_PEAK_BASE_LOW_CHARGE_CHANNEL: 0
...@@ -53,4 +53,5 @@ DELTAT_SIGN: ${makeDoocsArray(DELTAT_SIGN[STATION])} ...@@ -53,4 +53,5 @@ DELTAT_SIGN: ${makeDoocsArray(DELTAT_SIGN[STATION])}
MODULATION_SIGN: ${makeDoocsArray(MODULATION_SIGN[STATION])} MODULATION_SIGN: ${makeDoocsArray(MODULATION_SIGN[STATION])}
START_ARRAY_VALUE_ACCURACY: ${START_ARRAY_VALUE_ACCURACY[STATION]} START_ARRAY_VALUE_ACCURACY: ${START_ARRAY_VALUE_ACCURACY[STATION]}
N_SAMPLE_ACCURACY: ${N_SAMPLE_ACCURACY[STATION]} N_SAMPLE_ACCURACY: ${N_SAMPLE_ACCURACY[STATION]}
FEEDBACK_THREESHOLD_CHARGE: ${makeDoocsArray(FEEDBACK_THRESHOLD_CHARGE[STATION])}
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
%else: %else:
<redirectedRegister name="SASE.${i}"> <redirectedRegister name="SASE.${i}">
<targetDevice>TOROID_RAW</targetDevice> <targetDevice>TOROID_RAW</targetDevice>
<targetRegister>${TOROID_FT[ACCELERATOR][i]}</targetRegister> <targetRegister>${TOROID_FT[ACCELERATOR][i]}</targetRegister>
</redirectedRegister> </redirectedRegister>
%endif %endif
%endfor %endfor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment