示例#1
0
 //configure measurement settings
 public void StartMeasurement(int numberOfSteps, double centerFrequency, double referenceLevel, double measurementOffsetTime, double measurementTime)
 {
     numSteps = numberOfSteps;
     specAn.ConfigureRF("", centerFrequency, referenceLevel, 1.0);
     specAn.Pavt.Configuration.ConfigureNumberOfSegments("", numSteps);
     specAn.Pavt.Configuration.ConfigureMeasurementBandwidth("", 1E3);
     specAn.Pavt.Configuration.ConfigureMeasurementInterval("", measurementOffsetTime, measurementTime);
     timeout = ((double)numSteps * (measurementOffsetTime + measurementTime)) + 1.0;
     specAn.Initiate("", "r1");
 }
示例#2
0
 /// <summary>Configures common measurement settings for the personality.</summary>
 /// <param name="specAnSignal">Specifies the SpecAn signal to configure.</param>
 /// <param name="commonConfig">Specifies the common settings to apply.</param>
 /// <param name="selectorString">Pass an empty string. The signal name that is passed when creating the signal configuration is used.
 /// See the RFmx help for more documention of this parameter.</param>
 public static void ConfigureCommon(RFmxSpecAnMX specAnSignal, CommonConfiguration commonConfig, string selectorString = "")
 {
     specAnSignal.SetSelectedPorts(selectorString, commonConfig.SelectedPorts);
     specAnSignal.ConfigureRF(selectorString, commonConfig.CenterFrequency_Hz, commonConfig.ReferenceLevel_dBm, commonConfig.ExternalAttenuation_dB);
     specAnSignal.ConfigureDigitalEdgeTrigger(selectorString, commonConfig.DigitalTriggerSource, RFmxSpecAnMXDigitalEdgeTriggerEdge.Rising, commonConfig.TriggerDelay_s, commonConfig.TriggerEnabled);
 }