/// <summary>
        /// Get analyzer or generator object deppending which one is connected. Analyzer has preference
        /// </summary>
        /// <returns>Analyzer or Generator object</returns>
        public RFECommunicator GetConnectedDeviceByPrecedence()
        {
            RFECommunicator objRFE = m_objAnalyzer;

            if (m_objGenerator != null && m_objGenerator.PortConnected && m_objAnalyzer != null && !m_objAnalyzer.PortConnected)
            {
                objRFE = m_objGenerator;
            }

            if ((objRFE != null) && (m_controlRemoteScreen.RFExplorer != objRFE))
            {
                objRFE.CleanScreenData();
            }

            return(objRFE);
        }