示例#1
0
 /// <summary>
 /// Resets the hardware configuration and sets all static test parameters.
 /// </summary>
 public void Initialize()
 {
     transceiver.Reset();
     transceiver.RfsaHandle.Configuration.AcquisitionType = RfsaAcquisitionType.IQ;
     transceiver.RfsaHandle.Configuration.ReferenceClock.Configure(RfsaReferenceClockSource.PxiClock, 10E6);
     transceiver.RfsgHandle.Triggers.ConfigurationListStepTrigger.TriggerType = RfsgConfigurationListStepTriggerType.DigitalEdge;
     transceiver.RfsgHandle.FrequencyReference.Configure(RfsgFrequencyReferenceSource.PxiClock, 10E6);
 }
 public void Initialize()
 {
     transceiver.Reset(); // prevents the use of residual settings
     transceiver.RfsgHandle.FrequencyReference.Configure("PXI_CLK", 10E6);
     transceiver.RfsgHandle.Arb.GenerationMode = RfsgWaveformGenerationMode.ArbitraryWaveform;
     transceiver.RfsgHandle.RF.PowerLevelType  = RfsgRFPowerLevelType.AveragePower;
     transceiver.RfsgHandle.Arb.PreFilterGain  = -2; // the lowest value this property can have is -2
 }
示例#3
0
 /// <summary>
 /// 状态重置按钮单击事件
 /// </summary>
 private void btnReset_Click(object sender, EventArgs e)
 {
     if (!_ifSetPort)
     {
         MessageBox.Show("请先配置串口!", "串口未配置", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
     _transceiver.Reset();
 }
示例#4
0
 /// <summary>
 /// Resets the hardware configuration and sets all static test parameters.
 /// </summary>
 public void Initialize()
 {
     transceiver.Reset(); // prevents the use of residual settings
     // rfsa properties
     transceiver.RfsaHandle.Configuration.ReferenceClock.Configure(RfsaReferenceClockSource.PxiClock, 10E6);
     transceiver.RfsaHandle.Configuration.AcquisitionType = RfsaAcquisitionType.IQ;
     // rfsg properties
     transceiver.RfsgHandle.FrequencyReference.Configure(RfsgFrequencyReferenceSource.PxiClock, 10E6);
     transceiver.RfsgHandle.Arb.GenerationMode = RfsgWaveformGenerationMode.Script;
     transceiver.RfsgHandle.RF.PowerLevelType  = RfsgRFPowerLevelType.PeakPower;
     transceiver.RfsgHandle.Arb.PreFilterGain  = -2;
     transceiver.RfsgHandle.Triggers.ConfigurationListStepTrigger.TriggerType        = RfsgConfigurationListStepTriggerType.DigitalEdge;
     transceiver.RfsgHandle.Triggers.ConfigurationListStepTrigger.DigitalEdge.Source = RfsgDigitalEdgeConfigurationListStepTriggerSource.Marker0Event;
 }