Commit 0044a656 authored by Matteo DB's avatar Matteo DB
Browse files

fix synth table power/freq check

parent 3d7652bd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -121,6 +121,14 @@ void CComponentCore::activate(const char *mode) throw (ReceiversErrors::ModeErro
	MED_TRACE_FMT("Polar. len %d\n",l_setup.m_polarizations.size());
    MED_TRACE_FMT("Default LO len %d\n",l_setup.m_defaultLO.size());
    
    if( l_setup.m_defaultLO.size() != 0){
        MED_TRACE_FMT("Default LO[0] %f\n",l_setup.m_defaultLO[0]);
    }
    if( l_setup.m_fixedLO2.size() != 0){
        MED_TRACE_FMT("Fixed LO2[0] %f\n",l_setup.m_fixedLO2[0]);
    }


    try{
    for (WORD i=0; i < l_setup.m_IFs; i++) {
    	MED_TRACE_MSG(" SET PARAMS IF ");
+3 −8
Original line number Diff line number Diff line
@@ -154,14 +154,9 @@ bool MixerOperator::setValue(double p_value)
	MED_TRACE_MSG(" calculate value ");
    // LO2 specs fiex freq, get the freq, get the power
    size_lo2= m_configuration->getSynthesizerTable("LO2", freq_lo2, power_lo2);
    if (size_lo2 != 1){
    if (size_lo2 < 1 ){
        _EXCPT(ComponentErrors::ValueOutofRangeExImpl,impl,"MixerOperator::setLO");
        impl.setValueName("local oscillator 2 expecting only one configuration for freq/power value");        
        throw impl;
    } 
    if (l_setup.m_fixedLO2[0] != power_lo2[0]){
        _EXCPT(ComponentErrors::ValueOutofRangeExImpl,impl,"MixerOperator::setLO");
        impl.setValueName("local oscillator 2 conf table freq not matching expencting fixed frequency (2300MHz)");        
        impl.setValueName("local oscillator 2 expecting at least one configuration for freq/power value");        
        throw impl;
    } 
    amp_lo2= power_lo2[0];
+1 −1

File changed.

Contains only whitespace changes.