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-pilatus
Commits
a24b7144
Commit
a24b7144
authored
Jul 07, 2021
by
Laurent Claustre
Browse files
in prepareAcq() now check max nb frames when trigger mode is IntTrig
parent
42ec5794
Pipeline
#50053
failed with stages
in 8 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/PilatusInterface.cpp
View file @
a24b7144
...
...
@@ -354,9 +354,6 @@ void SyncCtrlObj::getLatTime(double& lat_time)
void
SyncCtrlObj
::
setNbHwFrames
(
int
nb_frames
)
{
DEB_MEMBER_FUNCT
();
if
(
nb_frames
>
65535
)
THROW_HW_ERROR
(
InvalidValue
)
<<
"Maximum number of frames is 65535"
;
m_nb_frames
=
nb_frames
;
}
...
...
@@ -410,6 +407,10 @@ void SyncCtrlObj::prepareAcq()
// This is the only trigger mode which can run the for ever, For the other modes we must
// workaround the number of frames to the maximum value than camserver can accept, this
// is risky !!
if
(
trig_mode
==
IntTrig
&&
m_nb_frames
>
65535
)
THROW_HW_ERROR
(
InvalidValue
)
<<
"In IntTrig trigger mode, maximum number of frames is 65535"
;
if
(
trig_mode
==
IntTrigMult
)
nb_frames
=
1
;
else
if
(
m_nb_frames
==
0
)
...
...
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