rotation_z will be automatically assigned to one of a list
of aliases ('unique' entry in frappy_config) but will complain
when this is not unique.
58 lines
2.4 KiB
Python
58 lines
2.4 KiB
Python
description = 'frappy'
|
|
group = 'optional'
|
|
|
|
modules = ['nicos_sinq.frappy_sinq.commands']
|
|
|
|
devices = dict(
|
|
frappy_config = device(
|
|
'nicos_sinq.frappy_sinq.devices.FrappyConfig',
|
|
# frappy_config does not need to be visible
|
|
visibility = [],
|
|
# the possible SECoP connections
|
|
nodes = ['se_main', 'se_stick', 'se_addons'],
|
|
#
|
|
# now follows a list of main SE devices, where an alias is
|
|
# generated, if such a device is present, and automatically
|
|
# added to the environment list
|
|
# remarks: the SECoP meaning should be given from the description
|
|
# retrieved from the remote SEC node. if targets is given,
|
|
# the devices with the names given by key are added to determine the
|
|
# device, using the given importance number, with similar values as
|
|
# given by the SECoP standard (10: instrument, 20: cryostat, 30: insert)
|
|
temperature = { # the SECoP meaning
|
|
'alias': ['Ts', 'temperature'], # the name(s) to be given to the alias
|
|
'targets': # possible devices in addition with importance
|
|
{'se_ts': 20, 'se_tt': 19, 'se_tm': 18},
|
|
},
|
|
temperature_regulation = {
|
|
'alias': 'T',
|
|
'targets': {'se_ts': 20, 'se_tt': 19, 'se_tm': 18, 'se_T_stat': 17},
|
|
'drivable_only': True,
|
|
},
|
|
magneticfield = {
|
|
'alias': ['B', 'magfield'],
|
|
'targets': {'se_mf': 20},
|
|
},
|
|
rotation_z = {
|
|
'unique': ['a3', 'om'],
|
|
'alias': 'dom',
|
|
'targets': {'se_om': 20, 'se_stickrot': 19},
|
|
'envlist': False,
|
|
}
|
|
)
|
|
)
|
|
|
|
startupcode = '''
|
|
printinfo("=======================================================================================")
|
|
printinfo("Welcome to the NICOS frappy secnode setup!")
|
|
printinfo(" ")
|
|
printinfo("Usage:")
|
|
printinfo(" frappy('<main cfg>') # change main SE configuration (e.g. cryostat)")
|
|
printinfo(" frappy('<main cfg>', '<stick cfg>') # change main and stick cfg")
|
|
printinfo(" frappy(stick='') # remove stick")
|
|
printinfo(" frappy('') # remove main SE apparatus")
|
|
printinfo(" frappy() # show the current SE configuration")
|
|
printinfo("=======================================================================================")
|
|
set_se_list()
|
|
'''
|