Commit ee729f0c authored by Matteo DB's avatar Matteo DB
Browse files

mixer get LOs names

parent 3423909f
Loading
Loading
Loading
Loading
+11 −18
Original line number Diff line number Diff line
@@ -60,14 +60,11 @@ void MixerOperator::loadComponents()
        _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"MixerOperator::setLO()");
        throw impl;
    }                      
    const char * m_1st_name= m_configuration->getLocalOscillatorInstance1st();
    const char * m_2nd_name= m_configuration->getLocalOscillatorInstance2nd();             
    /* TEST */
    MED_TRACE_FMT("LO 1 : %s", m_1st_name);
    MED_TRACE_FMT("LO 2 : %s", m_2nd_name);
    MED_TRACE_FMT("LO 1 : %s\n", (const char*)m_configuration->getLocalOscillatorInstance1st());
    MED_TRACE_FMT("LO 2 : %s\n", (const char*)m_configuration->getLocalOscillatorInstance2nd());
    try{           
        loadDevice(m_loDev_1st, m_1st_name);
        loadDevice(m_loDev_2nd, m_2nd_name);
        loadDevice(m_loDev_1st, (const char*)m_configuration->getLocalOscillatorInstance1st());
        loadDevice(m_loDev_2nd, (const char*)m_configuration->getLocalOscillatorInstance2nd());
    }catch(...){
        ACS_LOG(LM_FULL_INFO,"MixerOperator::loadComponents()",
                    (LM_NOTICE,"LOs loading failed!"));
@@ -91,11 +88,9 @@ void MixerOperator::releaseComponents()
        _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"MixerOperator::setLO()");
        throw impl;
    }    
    const char * m_1st_name= m_configuration->getLocalOscillatorInstance1st();
    const char * m_2nd_name= m_configuration->getLocalOscillatorInstance2nd();
    try{        
        releaseDevice(m_loDev_1st, m_1st_name);
        releaseDevice(m_loDev_2nd, m_2nd_name);
        releaseDevice(m_loDev_1st, (const char*)m_configuration->getLocalOscillatorInstance1st());
        releaseDevice(m_loDev_2nd, (const char*)m_configuration->getLocalOscillatorInstance2nd());
    }catch(...){
       ACS_LOG(LM_FULL_INFO,"MixerOperator::loadComponents()",
                    (LM_NOTICE,"LOs release failed!"));
@@ -218,11 +213,9 @@ bool MixerOperator::isLocked()
        _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"MixerOperator::setLO()");
        throw impl;
    }	
	const char * m_1st_name= m_configuration->getLocalOscillatorInstance1st();
    const char * m_2nd_name= m_configuration->getLocalOscillatorInstance2nd();       
    try{
        bool l_1st_lock= isDeviceLocked(m_loDev_1st, m_1st_name);
        bool l_2nd_lock= isDeviceLocked(m_loDev_2nd, m_2nd_name);
        bool l_1st_lock= isDeviceLocked(m_loDev_1st, (const char*)m_configuration->getLocalOscillatorInstance1st());
        bool l_2nd_lock= isDeviceLocked(m_loDev_2nd, (const char*)m_configuration->getLocalOscillatorInstance2nd());
        return l_1st_lock || l_2nd_lock;
    }catch(...){
        ACS_LOG(LM_FULL_INFO,"MixerOperator::loadComponents()",