Skip to content

Commit

Permalink
SINQ: Added setup for mobile andor CCD camera and added startup setting
Browse files Browse the repository at this point in the history
polariser

Change-Id: Ic73f1c3b9b67698069424f1dccba2df2d6bef1ec
Reviewed-on: https://forge.frm2.tum.de/review/c/frm2/nicos/nicos/+/35003
Reviewed-by: Jens Krueger <[email protected]>
Tested-by: Jenkins Automated Tests <[email protected]>
  • Loading branch information
smathis authored and Jens Krueger committed Nov 27, 2024
1 parent 32441f8 commit 46c4cf2
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
51 changes: 51 additions & 0 deletions nicos_sinq/amor/setups/andorccd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
description = 'Setup for the ANDOR CCD camera at AMOR using the CCDWWW server without counter box'

excludes = ['detector', 'detector_mon']

devices = dict(
ccdwww_connector = device('nicos_sinq.boa.devices.ccdwww.CCDWWWConnector',
description = 'Connector for CCDWWW',
baseurl = 'http://mpc2704:8080/ccd',
base64auth = 'xxx',
byteorder = 'big',
comdelay = 1.,
comtries = 5,
),
ccdwww = device('nicos_sinq.boa.devices.ccdwww.AndorCCD',
description = 'CCDWWW image channel',
iscontroller = True,
connector = 'ccdwww_connector',
shape = (1024, 1024),
pollinterval = None,
maxage = 30,
),
ccd_cooler = device('nicos_sinq.boa.devices.ccdwww.CCDCooler',
description = 'CCD sensor cooler',
connector = 'ccdwww_connector',
unit = 'state',
pollinterval = None,
maxage = 30,
fmtstr = '%s'
),
cooler_temperature = device('nicos.devices.generic.paramdev.ReadonlyParamDevice',
description = 'Actual temperature reading',
device = 'ccd_cooler',
parameter = 'temperature',
),
andorccd_det = device('nicos.devices.generic.Detector',
description = 'Dummy detector to encapsulate ccdwww',
monitors = [
'ccdwww',
],
timers = [
'ccdwww',
],
images = [
'ccdwww',
],
),
)

startupcode = '''
SetDetectors(andorccd_det)
'''
5 changes: 4 additions & 1 deletion nicos_sinq/amor/setups/polariser.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
readpv = 'SQ:AMOR:pico:FREQ_RBV',
abslimits = (0, 300000),
precision = 1,
target = 140201,
visibility = ('metadata', 'namespace'),
),
spin_selection = device('nicos.devices.generic.switcher.Switcher',
Expand All @@ -60,3 +59,7 @@
visibility = ('devlist', 'metadata', 'namespace'),
),
)

startupcode = '''
spinflipper_freq.start(140200)
'''

0 comments on commit 46c4cf2

Please sign in to comment.