public override void Single() { if (GeneTestSetup.Instance.IsSimulated) { GeneSimulatedData(); } else { PM.ResetInterface(); PM.SetFreq(ChannelNum, SignalFreq); PM.SetAvgEnable(ChannelNum, AvgEnable); PM.SetAvgCount(ChannelNum, AvgCount); PM.SetAvgCountAutoEnable(ChannelNum, AvgCountAutoEnable); PM.SetInitContEnable(ChannelNum, false); PM.SetMeasChannel(1, 1); PM.Init(); double pow = PM.GetMeasData(1); foreach (PointTestItem item in ItemList) { item.X = SignalFreq; item.Y = pow; } } }