From 6ac8b34351a436d303139d461c9cc7b6d0aa80bd Mon Sep 17 00:00:00 2001 From: Christian Koernig <ckoernig@mail.desy.de> Date: Wed, 30 Jun 2021 11:53:32 +0200 Subject: [PATCH] Changed Preset Real Time resolution Now supports 10ms resolution instead of 100ms when using Real time instead of acc time --- src/AmptekHardwareInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AmptekHardwareInterface.cpp b/src/AmptekHardwareInterface.cpp index 44c92da..23bbb79 100644 --- a/src/AmptekHardwareInterface.cpp +++ b/src/AmptekHardwareInterface.cpp @@ -181,7 +181,7 @@ bool AmptekHardwareInterface::ClearSpectrum(){ * or any other mode that temporarily blockes the MCA. Therefore, accumulation time is larger than the real measurement duration * * @see SetPresetAccumulationTime, SetPresetRealTime, SetPresetCounts - * @param t accumulation time in seconds. Minimum is 0.1. If below zero, the accumulation time is not part of the stop condition during acquisition + * @param t accumulation time in seconds. Minimum is 0.1s. If below or equal zero, the accumulation time is not part of the stop condition during acquisition * @return true on success * @return false on failure */ @@ -202,7 +202,7 @@ bool AmptekHardwareInterface::SetPresetAccumulationTime(double t){ * @brief Set the real time for a measurement. The detector will stop automatically when the duration is reached * * @see SetPresetAccumulationTime, SetPresetRealTime, SetPresetCounts - * @param t real time in seconds. If below zero, the real time is not part of the stop condition during acquisition + * @param t real time in seconds. Minimum is 10ms. If below or equal zero, the real time is not part of the stop condition during acquisition * @return true on success * @return false on failure */ @@ -210,7 +210,7 @@ bool AmptekHardwareInterface::SetPresetRealTime(double t){ std::stringstream cmd_stream; cmd_stream << "PRER="; if (t>0){ - cmd_stream << std::fixed << std::setprecision(1) << t; + cmd_stream << std::fixed << std::setprecision(2) << t; } else{ cmd_stream << "OFF"; -- GitLab