add timestamp and ppms setups
This commit is contained in:
26
setups/ppms.py
Normal file
26
setups/ppms.py
Normal file
@ -0,0 +1,26 @@
|
||||
from os import environ
|
||||
description = 'frappy main setup'
|
||||
group = 'optional'
|
||||
|
||||
devices = {
|
||||
'se_main':
|
||||
device('nicos_sinq.frappy_sinq.devices.FrappyNode',
|
||||
uri='pc12694:5000',
|
||||
description='main SEC node', unit='',
|
||||
prefix=environ.get('SE_PREFIX', ''), auto_create=True, service='main',
|
||||
),
|
||||
'timestamp': device('nicos_linse.common.lab.Timestamp', description='time, a dummy detector'),
|
||||
}
|
||||
|
||||
startupcode = '''
|
||||
printinfo("=======================================================================================")
|
||||
printinfo("Welcome to the NICOS frappy secnode setup for PPMS!")
|
||||
printinfo(" ")
|
||||
printinfo("Usage:")
|
||||
printinfo(" frappy(stick='<stick cfg>') # change sample-stick configuration")
|
||||
printinfo(" frappy(addons='<addon1 cfg>,<addon2 cfg> ...') # change SE addons")
|
||||
printinfo(" frappy(stick=None) # remove stick")
|
||||
printinfo(" frappy(addons=None) # remove addons")
|
||||
printinfo("=======================================================================================")
|
||||
SetDetectors(timestamp)
|
||||
'''
|
9
setups/timestamp.py
Normal file
9
setups/timestamp.py
Normal file
@ -0,0 +1,9 @@
|
||||
description = 'timestamp dummy detector for offline measurements'
|
||||
group = 'optional'
|
||||
|
||||
devices = {
|
||||
'timestamp': device('nicos_linse.common.lab.Timestamp', description='time, a dummy detector'),
|
||||
}
|
||||
|
||||
startupcode = 'SetDetectors(timestamp)'
|
||||
|
Reference in New Issue
Block a user