Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-eiger
Commits
ab0c19fd
Commit
ab0c19fd
authored
Oct 15, 2021
by
Sebastien Petitdemange
Browse files
tango: add device property to use memory map file.
parent
69707b7b
Pipeline
#57614
failed with stages
in 4 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tango/Eiger.py
View file @
ab0c19fd
...
...
@@ -223,6 +223,9 @@ class EigerClass(PyTango.DeviceClass):
'stream_port'
:
[
PyTango
.
DevLong
,
"Stream port number"
,[]],
'memory_mmap_file'
:
[
PyTango
.
DevString
,
"memory mmap file path"
,[]],
}
...
...
@@ -364,11 +367,16 @@ def get_control(detector_ip_address = "0", **keys) :
if
_EigerInterface
is
None
:
http_port
=
keys
.
pop
(
'http_port'
,
80
)
stream_port
=
keys
.
pop
(
'stream_port'
,
9999
)
mmap_file
=
keys
.
pop
(
'memory_mmap_file'
,
None
)
_EigerCamera
=
EigerAcq
.
Camera
(
detector_ip_address
,
http_port
=
http_port
,
stream_port
=
stream_port
)
_EigerInterface
=
EigerAcq
.
Interface
(
_EigerCamera
)
if
mmap_file
is
not
None
:
print
(
f
"Using memory map file
{
mmap_file
}
"
)
_EigerInterface
=
EigerAcq
.
Interface
(
_EigerCamera
,
mmap_file
.
encode
())
else
:
_EigerInterface
=
EigerAcq
.
Interface
(
_EigerCamera
)
return
Core
.
CtControl
(
_EigerInterface
)
def
get_tango_specific_class_n_device
()
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment