Ejemplo n.º 1
0
        public void InitializeParameters()
        {
            //shared Parameters
            centerFrequency    = 3e9; //Hz
            resourceName       = "5840";
            filePath           = @"C:\Users\Public\Documents\National Instruments\RFIC Test Software\Waveforms\LTE_FDD_UL_1x20MHz_256QAM_OS4.tdms";
            signalStringSpecan = "specanSig0";
            resultStringSpecan = "specanResult0";

            //Tuner Configration
            tunerAddress        = "10.0.0.1";
            commonConfiguration = FocusTuner.CommonConfiguration.GetDefault();
            commonConfiguration.CalibrationID = 1;
            gammaSweep = GetConstantVSWR(2, 20);

            //Generator Configuiration
            sgInstrConfig = SG.InstrumentConfiguration.GetDefault();
            sgInstrConfig.CarrierFrequency_Hz      = centerFrequency;
            sgInstrConfig.DutAverageInputPower_dBm = -10.0;
            sgInstrConfig.ExternalAttenuation_dB   = 0;

            //Analyzer Configuration
            saInstrConfig  = RFmxInstr.InstrumentConfiguration.GetDefault();
            saCommonConfig = CommonConfiguration.GetDefault();
            saCommonConfig.ExternalAttenuation_dB = 0;
            saCommonConfig.CenterFrequency_Hz     = centerFrequency;
            saCommonConfig.ReferenceLevel_dBm     = 0.0;

            saAutolevelConfig         = AutoLevelConfiguration.GetDefault();
            saAutolevelConfig.Enabled = true;

            txpConfigurationSpecAn = RFmxSpecAn.TxpConfiguration.GetDefault();
            txpConfigurationSpecAn.RbwFilterType = RFmxSpecAnMXTxpRbwFilterType.None;
            txpConfigurationSpecAn.RrcAlpha      = 0;
        }
Ejemplo n.º 2
0
        private void ApplyAutomaticLOConfiguration(NIRfsg rfsg, RFmxInstrMX instr)
        {
            SG.InstrumentConfiguration sgConfig = SG.InstrumentConfiguration.GetDefault(rfsg);
            SG.ConfigureInstrument(rfsg, sgConfig);

            RFmxInstr.InstrumentConfiguration instrConfig = RFmxInstr.InstrumentConfiguration.GetDefault();
            RFmxInstr.ConfigureInstrument(instr, instrConfig);
        }
Ejemplo n.º 3
0
        private void ApplyNoLOSharingConfiguration(NIRfsg rfsg, RFmxInstrMX instr)
        {
            SG.InstrumentConfiguration sgConfig = SG.InstrumentConfiguration.GetDefault(rfsg);
            sgConfig.LOSharingMode = LocalOscillatorSharingMode.None;
            SG.ConfigureInstrument(rfsg, sgConfig);

            RFmxInstr.InstrumentConfiguration instrConfig = RFmxInstr.InstrumentConfiguration.GetDefault();
            instrConfig.LOSharingMode = LocalOscillatorSharingMode.None;
            RFmxInstr.ConfigureInstrument(instr, instrConfig);
        }