Newer
Older
FIRMWARE_VER = '1.5.2-0-g48a8dc81'
FIRMWARE_VER_CONTROLLER = FIRMWARE_VER
singleCavityStation().useLOGM()
gradientUnit = 'kV' if STATION in ['B1', 'B2'] else 'MV'
powerUnit = 'W' if STATION in ['B1', 'B2'] else 'kW'
timeUnit = 'us'
config_by_station = {'B1': {'slot': 11, 'fwType': 'nc260'},
'B2': {'slot': 10, 'fwType': 'nc1300'},
'SC1_1': {'slot': 9, 'fwType': 'sc1300'},
'SC1_2': {'slot': 8, 'fwType': 'sc1300'},
'SC2_1': {'slot': 7, 'fwType': 'sc1300'},
'SC2_2': {'slot': 6, 'fwType': 'sc1300'}}
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
channels = ['FWD', 'RFL', 'PRB', 'CH3', 'CH4', 'CH5', 'REF', 'VMM']
# A dict 'channelNames', associating channel numbers with names, is required for the start script
channelNames = dict(zip(range(len(channels)), channels))
if STATION == 'B1':
rfFrequency = 260
clockFrequency = 78.0
IQdetectionLength = 12
nSinCosTableSize = 3
phaseStep = 120
sinSign = -1
boardDS8VM1(slot=config_by_station[STATION]['slot'],
firmwareType=config_by_station[STATION]['fwType'],
firmwareProject='llrf_scav_sis8300l_tarla',
channelNames=channelNames,
pllConfig='260MHz_to_78MHz_clock')
else:
rfFrequency = 1300
clockFrequency = 65.0
IQdetectionLength = 36
nSinCosTableSize = 6
phaseStep = 60
sinSign = -1
boardDWC8VM1(slot=config_by_station[STATION]['slot'],
firmwareType=config_by_station[STATION]['fwType'],
firmwareProject='llrf_scav_sis8300l_tarla',
channelNames=channelNames)
SYSTEM_UID = 'doocsadm'
SYSTEM_GID = 'doocsadm'
provideLimiterEnable = 1
nMaxFlattops = 1
ftFromTimeserver = 0
enableStatistics = 1
enablePhaseSetter = 0
MAXIMUM_TRIGGER_INTERVAL = 1100
rawAdcDecimation = 0
enableAutomation = 1

Patrick Nonn
committed
enableMicroDAQ = 0
enableMicroDAQdetails = 0
enableDynamicOVC = 0
TIMING_LOCATION = f'{FACILITY}.RF/TIMER/{socket.gethostname().upper()}.0'