mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
binaries and fix
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1913,7 +1913,14 @@ int set_num_frames(int file_des) {
|
|||||||
// only set
|
// only set
|
||||||
if (Server_VerifyLock() == OK) {
|
if (Server_VerifyLock() == OK) {
|
||||||
// only set number of frames if normal mode (not scan)
|
// only set number of frames if normal mode (not scan)
|
||||||
if (!scan) {
|
if (scan) {
|
||||||
|
if (arg != numScanSteps) {
|
||||||
|
ret = FAIL;
|
||||||
|
sprintf(mess,
|
||||||
|
"Could not set number of frames %lld. In scan mode, it is number of steps %d\n", (long long unsigned int)arg, numScanSteps);
|
||||||
|
LOG(logERROR, (mess));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
#ifdef GOTTHARD2D
|
#ifdef GOTTHARD2D
|
||||||
// validate #frames in burst mode
|
// validate #frames in burst mode
|
||||||
if (getBurstMode() != BURST_OFF && arg > MAX_FRAMES_IN_BURST_MODE) {
|
if (getBurstMode() != BURST_OFF && arg > MAX_FRAMES_IN_BURST_MODE) {
|
||||||
|
@ -107,7 +107,7 @@ std::string ToString(const slsDetectorDefs::scanParameters &r) {
|
|||||||
oss << '[';
|
oss << '[';
|
||||||
if (r.enable) {
|
if (r.enable) {
|
||||||
oss << "enabled " << std::endl
|
oss << "enabled " << std::endl
|
||||||
<< "dac " << r.dacInd << std::endl
|
<< "dac " << ToString(r.dacInd) << std::endl
|
||||||
<< "start " << r.startOffset << std::endl
|
<< "start " << r.startOffset << std::endl
|
||||||
<< "stop " << r.stopOffset << std::endl
|
<< "stop " << r.stopOffset << std::endl
|
||||||
<< "step " << r.stepSize << std::endl
|
<< "step " << r.stepSize << std::endl
|
||||||
|
Reference in New Issue
Block a user