reworked meanings / aliases
- add rotation_x to the list - allow to configure items creating an alias without entry in envlist
This commit is contained in:
@ -6,12 +6,41 @@ 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'],
|
||||
# T will be either a SECoP module with property meaning=tmperature or one of the keys in the dict
|
||||
temperature = ['T', {'se_ts': 120, 'se_tt': 100}],
|
||||
temperature_regulation = ['Tr', {'se_tm': 110, 'se_tv': 100}],
|
||||
magneticfield = ['B', {'se_mf': 100}],
|
||||
#
|
||||
# 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', # the name 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': 'Tr',
|
||||
'targets': {'se_tt': 20, 'se_tm': 19},
|
||||
},
|
||||
temperature_drivable = {
|
||||
'alias': 'T',
|
||||
'envlist': False,
|
||||
},
|
||||
magneticfield = {
|
||||
'alias': 'B',
|
||||
'targets': {'se_mf': 20},
|
||||
},
|
||||
rotation_z = {
|
||||
'alias': 'stickrot',
|
||||
'envlist': False,
|
||||
'targets': {'se_om': 20},
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user