public void Configure() { { // configuring the ramps before calling wait function leaves flexibility to multithread the configurations in the future if desired double rxStartFrequency = this.rxStartFrequency + frequencyStep / 2; // place the tuning points in the middle of the sweep points double rxStopFrequency = this.rxStopFrequency - frequencyStep / 2; rxFrequencyRamp = SignalGeneration.Ramp(rxStartFrequency, rxStopFrequency, frequencyStep); if (txStartFrequency != txStopFrequency) // check for fixed TX case { // create independent frequency ramp if not fixed tx double txTmpStartFrequency = this.txStartFrequency + frequencyStep / 2; double txTmpStopFrequency = this.txStopFrequency - frequencyStep / 2; txFrequencyRamp = SignalGeneration.Ramp(txTmpStartFrequency, txTmpStopFrequency, frequencyStep); } else // build array of equal values that are all the fixed tx frequency { txFrequencyRamp = SignalGeneration.Ramp(txStartFrequency, txStopFrequency, rxFrequencyRamp.Length); } } ConfigureSA(); ConfigureSG(); }
/// <summary> /// Configures the test. /// </summary> public void Configure() { frequencyRamp = SignalGeneration.Ramp(startFrequency, stopFrequency, steps); ConfigureSA(); ConfigureSG(); }