Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beamlinetools_1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
HZB
Bluesky
beamlines_endstations
MySpot
source
beamlinetools_1
Commits
769c7692
Commit
769c7692
authored
1 year ago
by
Simone Vadilonga
Browse files
Options
Downloads
Patches
Plain Diff
use new dcm
parent
28a40e36
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beamlinetools/BEAMLINE_CONFIG/beamline.py
+27
-24
27 additions, 24 deletions
beamlinetools/BEAMLINE_CONFIG/beamline.py
with
27 additions
and
24 deletions
beamlinetools/BEAMLINE_CONFIG/beamline.py
+
27
−
24
View file @
769c7692
# Workarounds/patches
from
ophyd.signal
import
EpicsSignalBase
EpicsSignalBase
.
set_defaults
(
timeout
=
10
.0
,
connection_timeout
=
10
.0
)
EpicsSignalBase
.
set_defaults
(
timeout
=
2
.0
,
connection_timeout
=
2
.0
)
from
bessyii_devices.ring
import
Ring
...
...
@@ -9,7 +9,7 @@ from beamlinetools.devices.ophydMFLibrary import keithley6485
from
beamlinetools.devices.au
import
AUmySpot
from
beamlinetools.devices.dcm_mySpot
import
DCMmySpot
from
beamlinetools.devices.dcm_mySpot
import
DCMmySpot
,
DCMmySpotNew
from
ophyd
import
EpicsMotor
...
...
@@ -31,37 +31,40 @@ from beamlinetools.devices.mca import xMap
# Ring
print
(
"
Loading Accelerator
"
)
accelerator
=
DetailedAccelerator
(
""
,
name
=
"
accelerator
"
)
next_injection
=
TopUpMonitoring
(
""
,
name
=
"
next_injection
"
)
accelerator
.
wait_for_connection
()
next_injection
.
wait_for_connection
()
#
print("Loading Accelerator")
#
accelerator = DetailedAccelerator("", name="accelerator")
#
next_injection = TopUpMonitoring("", name="next_injection")
#
accelerator.wait_for_connection()
#
next_injection.wait_for_connection()
# Keithleys
print
(
'
Connecting to Amperomenters
'
)
ks
=
'
K64851MF102L:
'
kth00
=
keithley6485
(
ks
+
'
12
'
,
name
=
'
myspot_keithley0
'
,
read_attrs
=
[
'
readback
'
],
labels
=
{
'
detectors
'
})
kth00
.
wait_for_connection
()
kth01
=
keithley6485
(
ks
+
'
14
'
,
name
=
'
myspot_keithley1
'
,
read_attrs
=
[
'
readback
'
],
labels
=
{
'
detectors
'
})
kth01
.
wait_for_connection
()
#
print('Connecting to Amperomenters')
#
ks = 'K64851MF102L:'
#
kth00 = keithley6485(ks + '12', name='myspot_keithley0', read_attrs=['readback'], labels={'detectors'})
#
kth00.wait_for_connection()
#
kth01 = keithley6485(ks + '14', name='myspot_keithley1', read_attrs=['readback'], labels={'detectors'})
#
kth01.wait_for_connection()
# motors
print
(
'
Connecting to motors
'
)
hgx
=
EpicsMotor
(
"
DCM1OS2L:l0204007
"
,
name
=
'
hgx
'
)
hgx
.
wait_for_connection
()
mz
=
EpicsMotor
(
"
DCM1OS2L:l0206004
"
,
name
=
'
mz
'
)
mz
.
wait_for_connection
()
#
print('Connecting to motors')
#
hgx = EpicsMotor("DCM1OS2L:l0204007", name='hgx')
#
hgx.wait_for_connection()
#
mz = EpicsMotor("DCM1OS2L:l0206004", name='mz')
#
mz.wait_for_connection()
# Monochromator
print
(
'
Connecting to DCM
'
)
dcm
=
DCMmySpot
(
"
DCM1OS2L:
"
,
name
=
'
dcm
'
)
dcm
.
wait_for_connection
()
dcmn
=
DCMmySpotNew
(
"
DCM1OS2L:
"
,
name
=
'
dcm
'
)
dcmn
.
wait_for_connection
()
dcm
.
p
.
set_mono_type
()
# Apertures
print
(
'
Connecting to Slit3
'
)
slit3
=
AUmySpot
(
"
DCM1OS2L:
"
,
name
=
'
slit3
'
)
slit3
.
wait_for_connection
()
#
print('Connecting to Slit3')
#
slit3 = AUmySpot("DCM1OS2L:", name='slit3')
#
slit3.wait_for_connection()
# Pinhole
# Mirrors
...
...
@@ -69,6 +72,6 @@ slit3.wait_for_connection()
# Detectors
# mca = MCA('dxpXMAP:', name='mca')
print
(
'
Connecting to mca
'
)
mca
=
xMap
(
'
dxpXMAP:
'
,
name
=
'
mca
'
,
read_attrs
=
[
'
mca1.spectrum
'
,
'
mca2.spectrum
'
])
mca
.
wait_for_connection
()
\ No newline at end of file
# print('Connecting to mca')
# mca = xMap('dxpXMAP:', name='mca', read_attrs=['mca1.spectrum', 'mca2.spectrum'])
# mca.wait_for_connection()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment