Loading Medicina/Servers/MedicinaCBand/src/ComponentCore.cpp +27 −12 Original line number Diff line number Diff line Loading @@ -122,6 +122,17 @@ void CComponentCore::activate(const char *mode) throw (ReceiversErrors::ModeErro }catch(...){ MED_TRACE_MSG(" EXC SET IFS "); } /* Loading LOs */ try{ m_mixer.loadComponents(); setLO(lo); }catch(...){ MED_TRACE_MSG(" EXC loading LOs or setting their values !"); _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"CComponentCore::activate()"); impl.setDetails(ex.what().c_str()); setStatusBit(CONNECTIONERROR); throw impl; } // Basic operations lnaOn(); // throw (ReceiversErrors::NoRemoteControlErrorExImpl,ReceiversErrors::ReceiverControlBoardErrorExImpl) Loading Loading @@ -231,6 +242,7 @@ void CComponentCore::setMode(const char * mode) throw (ReceiversErrors::ModeErro { MED_TRACE_MSG(" IN "); baci::ThreadSyncGuard guard(&m_mutex); m_calDiode=false; IRA::CString cmdMode(mode); cmdMode.MakeUpper(); bool l_res= m_configuration.m_conf_hnd.setMode(mode); Loading Loading @@ -259,17 +271,20 @@ void CComponentCore::setMode(const char * mode) throw (ReceiversErrors::ModeErro // the set the default LO for the default LO for the selected mode..... ACS::doubleSeq lo; MED_TRACE_MSG(" LO "); /** @todo rivedere assegnazioni */ lo.length(l_setup.m_IFs); lo[0]= l_setup.m_defaultLO[0]; /* LOs loading */ try{ for (WORD i=0; i < l_setup.m_IFs; i++) { MED_TRACE_MSG(" LO DEFAULT "); lo[i]= l_setup.m_defaultLO[i]; } m_mixer.loadComponents(); setLO(lo); }catch(...){ MED_TRACE_MSG(" EXC 2 "); MED_TRACE_MSG(" EXC loading LOs or setting their values !"); _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"CComponentCore::activate()"); impl.setDetails(ex.what().c_str()); setStatusBit(CONNECTIONERROR); throw impl; } setLO(lo); // throw (ComponentErrors::ValidationErrorExImpl,ComponentErrors::ValueOutofRangeExImpl,ComponentErrors::CouldntGetComponentExImpl,ComponentErrors::CORBAProblemExImpl,ReceiversErrors::LocalOscillatorErrorExImpl) m_calDiode=false; ACS_LOG(LM_FULL_INFO,"CComponentCore::setMode()",(LM_NOTICE,"RECEIVER_MODE %s",mode)); MED_TRACE_MSG(" OUT "); } Loading Medicina/Servers/MedicinaCBand/src/MedicinaCBandImpl.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,10 @@ void MedicinaCBandImpl::activate(const char * setup_mode) throw (CORBA::SystemEx ex.log(LM_DEBUG); throw ex.getReceiversErrorsEx(); } catch (ReceiversErrors::LocalOscillatorErrorExImpl& ex) { ex.log(LM_DEBUG); throw ex.getLocalOscillatorEx(); } catch (...) { _EXCPT(ComponentErrors::UnexpectedExImpl,impl,"MedicinaCBandImpl::activate()"); impl.log(LM_DEBUG); Loading Medicina/Servers/MedicinaCBand/src/MixerOperator.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,11 @@ void MixerOperator::loadComponents() { MED_TRACE_MSG(" IN "); #ifndef EXCLUDE_MIXER if( m_init_ok && CORBA::is_nil(m_loDev_1st) && CORBA::is_nil(m_loDev_2nd) ){ ACS_LOG(LM_FULL_INFO,"MixerOperator::loadComponents()", (LM_NOTICE,"LOs already actives")); return; } const char * m_1st_name= m_configuration.getLocalOscillatorInstance1st(); const char * m_2nd_name= m_configuration.getLocalOscillatorInstance2nd(); /* TEST */ Loading Loading
Medicina/Servers/MedicinaCBand/src/ComponentCore.cpp +27 −12 Original line number Diff line number Diff line Loading @@ -122,6 +122,17 @@ void CComponentCore::activate(const char *mode) throw (ReceiversErrors::ModeErro }catch(...){ MED_TRACE_MSG(" EXC SET IFS "); } /* Loading LOs */ try{ m_mixer.loadComponents(); setLO(lo); }catch(...){ MED_TRACE_MSG(" EXC loading LOs or setting their values !"); _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"CComponentCore::activate()"); impl.setDetails(ex.what().c_str()); setStatusBit(CONNECTIONERROR); throw impl; } // Basic operations lnaOn(); // throw (ReceiversErrors::NoRemoteControlErrorExImpl,ReceiversErrors::ReceiverControlBoardErrorExImpl) Loading Loading @@ -231,6 +242,7 @@ void CComponentCore::setMode(const char * mode) throw (ReceiversErrors::ModeErro { MED_TRACE_MSG(" IN "); baci::ThreadSyncGuard guard(&m_mutex); m_calDiode=false; IRA::CString cmdMode(mode); cmdMode.MakeUpper(); bool l_res= m_configuration.m_conf_hnd.setMode(mode); Loading Loading @@ -259,17 +271,20 @@ void CComponentCore::setMode(const char * mode) throw (ReceiversErrors::ModeErro // the set the default LO for the default LO for the selected mode..... ACS::doubleSeq lo; MED_TRACE_MSG(" LO "); /** @todo rivedere assegnazioni */ lo.length(l_setup.m_IFs); lo[0]= l_setup.m_defaultLO[0]; /* LOs loading */ try{ for (WORD i=0; i < l_setup.m_IFs; i++) { MED_TRACE_MSG(" LO DEFAULT "); lo[i]= l_setup.m_defaultLO[i]; } m_mixer.loadComponents(); setLO(lo); }catch(...){ MED_TRACE_MSG(" EXC 2 "); MED_TRACE_MSG(" EXC loading LOs or setting their values !"); _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"CComponentCore::activate()"); impl.setDetails(ex.what().c_str()); setStatusBit(CONNECTIONERROR); throw impl; } setLO(lo); // throw (ComponentErrors::ValidationErrorExImpl,ComponentErrors::ValueOutofRangeExImpl,ComponentErrors::CouldntGetComponentExImpl,ComponentErrors::CORBAProblemExImpl,ReceiversErrors::LocalOscillatorErrorExImpl) m_calDiode=false; ACS_LOG(LM_FULL_INFO,"CComponentCore::setMode()",(LM_NOTICE,"RECEIVER_MODE %s",mode)); MED_TRACE_MSG(" OUT "); } Loading
Medicina/Servers/MedicinaCBand/src/MedicinaCBandImpl.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -192,6 +192,10 @@ void MedicinaCBandImpl::activate(const char * setup_mode) throw (CORBA::SystemEx ex.log(LM_DEBUG); throw ex.getReceiversErrorsEx(); } catch (ReceiversErrors::LocalOscillatorErrorExImpl& ex) { ex.log(LM_DEBUG); throw ex.getLocalOscillatorEx(); } catch (...) { _EXCPT(ComponentErrors::UnexpectedExImpl,impl,"MedicinaCBandImpl::activate()"); impl.log(LM_DEBUG); Loading
Medicina/Servers/MedicinaCBand/src/MixerOperator.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,11 @@ void MixerOperator::loadComponents() { MED_TRACE_MSG(" IN "); #ifndef EXCLUDE_MIXER if( m_init_ok && CORBA::is_nil(m_loDev_1st) && CORBA::is_nil(m_loDev_2nd) ){ ACS_LOG(LM_FULL_INFO,"MixerOperator::loadComponents()", (LM_NOTICE,"LOs already actives")); return; } const char * m_1st_name= m_configuration.getLocalOscillatorInstance1st(); const char * m_2nd_name= m_configuration.getLocalOscillatorInstance2nd(); /* TEST */ Loading