Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ID11
id11
Commits
171c8479
Commit
171c8479
authored
May 19, 2021
by
Emmanuel Papillon
Browse files
in fscan preset, use ATRIG if accumulation mode is used
parent
b916d755
Changes
1
Hide whitespace changes
Inline
Side-by-side
id11/tdxrd/presets.py
View file @
171c8479
...
...
@@ -33,7 +33,7 @@ def set_accumulation(limadev, acc_max_expo_time=None):
limadev
.
accumulation
.
max_expo_time
=
acc_max_expo_time
else
:
acc_max_expo_time
=
limadev
.
accumulation
.
max_expo_time
print
(
f
"
{
limadev
.
name
}
set in ACCUMULATION mode
(
acc_max_expo_time=
{
acc_max_expo_time
}
sec
)
"
)
print
(
f
"
{
limadev
.
name
}
set in ACCUMULATION mode
with
acc_max_expo_time=
{
acc_max_expo_time
}
sec"
)
else
:
raise
RuntimeError
(
f
"Detector
{
limadev
.
name
}
not configured in accumulation chain"
)
...
...
@@ -114,11 +114,18 @@ class FScanMuxPreset(ScanPreset):
def
set_fscan_master
(
self
,
master
):
self
.
limadevs
=
master
.
lima_used
try
:
self
.
acc_used
=
master
.
inpars
.
acc_used
except
:
self
.
acc_used
=
False
def
prepare
(
self
,
scan
):
self
.
soft_fsh
=
True
self
.
opmux
.
switch
(
"TRIGGER_MODE"
,
"MUSST"
)
self
.
opmux
.
switch
(
"MUSST"
,
"BTRIG"
)
if
self
.
acc_used
:
self
.
opmux
.
switch
(
"MUSST"
,
"ATRIG"
)
else
:
self
.
opmux
.
switch
(
"MUSST"
,
"BTRIG"
)
for
dev
in
self
.
limadevs
:
cam_mux
=
CAM2MUX
[
dev
.
name
]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment