Skip to content
Snippets Groups Projects
Commit 790039ae authored by Sonia Minolli's avatar Sonia Minolli
Browse files

Created tag release_1_6_4.

parent 866ce8e2
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<groupId>fr.soleil.device</groupId> <groupId>fr.soleil.device</groupId>
<artifactId>PulseCounting-${aol}-${mode}</artifactId> <artifactId>PulseCounting-${aol}-${mode}</artifactId>
<version>1.6.4-SNAPSHOT</version> <version>1.6.4</version>
<packaging>nar</packaging> <packaging>nar</packaging>
<name>PulseCounting</name> <name>PulseCounting</name>
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<dependency> <dependency>
<groupId>fr.soleil.lib</groupId> <groupId>fr.soleil.lib</groupId>
<artifactId>NexusCPPV2-${aol}-${library}-${mode}</artifactId> <artifactId>NexusCPPV2-${aol}-${library}-${mode}</artifactId>
<version>2.3.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
<scm> <scm>
......
...@@ -67,12 +67,13 @@ NexusManager::~NexusManager () ...@@ -67,12 +67,13 @@ NexusManager::~NexusManager ()
} }
catch (nxcpp::NexusException &n) catch (nxcpp::NexusException &n)
{ {
ERROR_STREAM << "Nexus4TangoException caught ..." << std::endl; ERROR_STREAM << "NexusManager::~NexusManager caught NexusException: "
n.dump(); << n.to_string()
<< std::endl;
} }
catch(...) catch(...)
{ {
ERROR_STREAM << "NexusManager::~NexusManager caught [...] : " << std::endl; ERROR_STREAM << "NexusManager::~NexusManager caught [...]!" << std::endl;
} }
#if defined (USE_NX_DS_FINALIZER) #if defined (USE_NX_DS_FINALIZER)
...@@ -159,10 +160,15 @@ void NexusManager::initNexusAcquisition(std::string nexus_file_path, ...@@ -159,10 +160,15 @@ void NexusManager::initNexusAcquisition(std::string nexus_file_path,
} }
catch(nxcpp::NexusException &n) catch(nxcpp::NexusException &n)
{ {
ERROR_STREAM << "NexusManager::initNexusAcquisition -> caught Nexus4TangoException." << std::endl; ERROR_STREAM << "NexusManager::initNexusAcquisition -> caught NexusException:"
this->manageNexusAbort(); << n.to_string()
ERROR_STREAM << "Nexus4TangoException caught ... see log." << std::endl; << std::endl;
n.dump();
if (m_pAcqWriter)
m_pAcqWriter->Abort();
ERROR_STREAM << "Nexus storage ABORTED." << std::endl;
Tango::DevFailed df = this->nexusToTangoException(n); Tango::DevFailed df = this->nexusToTangoException(n);
throw df; throw df;
} }
...@@ -235,8 +241,10 @@ void NexusManager::initNexusAcquisition(std::string nexus_file_path, ...@@ -235,8 +241,10 @@ void NexusManager::initNexusAcquisition(std::string nexus_file_path,
} }
catch(nxcpp::NexusException &n4te) catch(nxcpp::NexusException &n4te)
{ {
ERROR_STREAM << "NexusManager::initNexusAcquisition -> caught NEXUS Exception : see logs" << std::endl; ERROR_STREAM << "NexusManager::initNexusAcquisition -> caught NexusException:"
n4te.dump(); << n4te.to_string()
<< std::endl;
Tango::DevFailed df = this->nexusToTangoException(n4te); Tango::DevFailed df = this->nexusToTangoException(n4te);
throw df; throw df;
} }
...@@ -302,25 +310,30 @@ void NexusManager::finalizeNexusGeneration() ...@@ -302,25 +310,30 @@ void NexusManager::finalizeNexusGeneration()
} }
catch(nxcpp::NexusException &n) catch(nxcpp::NexusException &n)
{ {
ERROR_STREAM << "NexusManager::finalizeNxGeneration -> Nexus4TangoException caught." << std::endl; ERROR_STREAM << "NexusManager::finalizeNxGeneration -> Nexus4TangoException caught: "
n.dump(); << n.to_string()
this->manageNexusAbort(); << std::endl;
if (m_pAcqWriter)
m_pAcqWriter->Abort();
ERROR_STREAM << "Nexus storage ABORTED." << std::endl; ERROR_STREAM << "Nexus storage ABORTED." << std::endl;
Tango::DevFailed df = this->nexusToTangoException(n); Tango::DevFailed df = this->nexusToTangoException(n);
throw df; throw df;
} }
catch(yat::Exception &n) catch(yat::Exception &n)
{ {
ERROR_STREAM << "NexusManager::finalizeNxGeneration -> yat::Exception caught." << std::endl; ERROR_STREAM << "NexusManager::finalizeNxGeneration -> yat::Exception caught: "
n.dump(); << n.to_string()
ERROR_STREAM << "Nexus storage ABORTED." << std::endl; << std::endl;
this->manageNexusAbort(); this->manageNexusAbort();
ERROR_STREAM << "Nexus storage ABORTED." << std::endl;
} }
catch(...) catch(...)
{ {
ERROR_STREAM << "NexusManager::finalizeNxGeneration -> caught [...] Exception" << std::endl; ERROR_STREAM << "NexusManager::finalizeNxGeneration -> caught [...] Exception" << std::endl;
ERROR_STREAM << "Nexus stotage ABORTED." << std::endl;
this->manageNexusAbort(); this->manageNexusAbort();
ERROR_STREAM << "Nexus stotage ABORTED." << std::endl;
THROW_DEVFAILED(_CPTC("DEVICE_ERROR"), THROW_DEVFAILED(_CPTC("DEVICE_ERROR"),
_CPTC("Failed to finilize Nexus storage (caught [...])!"), _CPTC("Failed to finilize Nexus storage (caught [...])!"),
_CPTC("NexusManager::finalizeNxGeneration")); _CPTC("NexusManager::finalizeNxGeneration"));
......
...@@ -173,15 +173,20 @@ public: ...@@ -173,15 +173,20 @@ public:
} }
catch(nxcpp::NexusException &n) catch(nxcpp::NexusException &n)
{ {
ERROR_STREAM << "NexusManager::pushNexusData -> caught NEXUS Exception" << std::endl; ERROR_STREAM << "NexusManager::pushNexusData -> caught NexusException: "
n.dump(); << n.to_string()
this->manageNexusAbort(); << std::endl;
if (m_pAcqWriter)
m_pAcqWriter->Abort();
ERROR_STREAM << "Nexus storage ABORTED." << std::endl;
Tango::DevFailed df = this->nexusToTangoException(n); Tango::DevFailed df = this->nexusToTangoException(n);
throw df; throw df;
} }
catch(yat::Exception &e) catch(yat::Exception &e)
{ {
ERROR_STREAM << "NexusManager::pushNexusData -> caught YAT Exception" << std::endl; ERROR_STREAM << "NexusManager::pushNexusData -> caught YAT Exception: " << std::endl;
YAT_LOG_EXCEPTION(e); YAT_LOG_EXCEPTION(e);
this->manageNexusAbort(); this->manageNexusAbort();
THROW_DEVFAILED(_CPTC("DEVICE_ERROR"), THROW_DEVFAILED(_CPTC("DEVICE_ERROR"),
...@@ -222,8 +227,11 @@ public: ...@@ -222,8 +227,11 @@ public:
// Nexus exception handler // Nexus exception handler
void OnNexusException(const nxcpp::NexusException &e) void OnNexusException(const nxcpp::NexusException &e)
{ {
ERROR_STREAM << "NexusManager::OnNexusException() called!" << std::endl; ERROR_STREAM << "NexusManager::OnNexusException -> caught NEXUS Exception:"
e.dump(); << e.to_string()
<< std::endl;
this->m_pAcqWriter->Abort();
m_excptOccured = true; m_excptOccured = true;
} }
......
...@@ -234,6 +234,9 @@ void PulseCountingManagerScalar::process_message (yat::Message& msg) ...@@ -234,6 +234,9 @@ void PulseCountingManagerScalar::process_message (yat::Message& msg)
if (this->m_acq_running) if (this->m_acq_running)
this->stop_i(); this->stop_i();
// force state & status update
this->periodic_job_i();
} }
break; break;
//- kEND_OF_CLOCK_MSG //- kEND_OF_CLOCK_MSG
...@@ -255,6 +258,9 @@ void PulseCountingManagerScalar::process_message (yat::Message& msg) ...@@ -255,6 +258,9 @@ void PulseCountingManagerScalar::process_message (yat::Message& msg)
DEBUG_STREAM << "PulseCountingManagerScalar::process_message - EC thread exited" << std::endl; DEBUG_STREAM << "PulseCountingManagerScalar::process_message - EC thread exited" << std::endl;
this->m_endOfClock_thread = NULL; this->m_endOfClock_thread = NULL;
} }
// force state & status update
this->periodic_job_i();
} }
break; break;
//- UNHANDLED MSG -------------------- //- UNHANDLED MSG --------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment