public override void Initialize() { _Result = new SResult(); for (int seg = 0; seg < tmpSparamRaw[ChannelNumber - 1].Freq.Length; seg++) { if (StartFreq >= tmpSparamRaw[ChannelNumber - 1].Freq[seg] && StartFreq < tmpSparamRaw[ChannelNumber - 1].Freq[seg + 1]) { iStartCnt = seg; blnInterStart = true; if (StartFreq == tmpSparamRaw[ChannelNumber - 1].Freq[seg]) { blnInterStart = false; } } if (StopFreq >= tmpSparamRaw[ChannelNumber - 1].Freq[seg] && StopFreq < tmpSparamRaw[ChannelNumber - 1].Freq[seg + 1]) { iStopCnt = seg; blnInterStop = true; if (StopFreq == tmpSparamRaw[ChannelNumber - 1].Freq[seg]) { blnInterStop = false; } } } Array.Resize(ref _Result.Result, 1); Array.Resize(ref _Result.Header, 1); _Result.Enable = true; _Result.Header[0] = TcfHeader + "_C" + ChannelNumber + "_" + SParam + "_" + StartFreq / 1e6 + "_M_" + StopFreq / 1e6 + "_M"; _Result.Result[0] = -9999; }
public override void Initialize() { _Result = new SResult(); for (int seg = 0; seg < tmpSparamRaw[ChannelNumber - 1].Freq.Length; seg++) { if (TargetFreq >= tmpSparamRaw[ChannelNumber - 1].Freq[seg] && TargetFreq < tmpSparamRaw[ChannelNumber - 1].Freq[seg + 1]) { iTargetCnt = seg; if (StartFreq == tmpSparamRaw[ChannelNumber - 1].Freq[seg]) { blnInterStart = false; } else { blnInterStart = true; partialGradient = (tmpSparamRaw[ChannelNumber - 1].Freq[iTargetCnt + 1] - tmpSparamRaw[ChannelNumber - 1].Freq[iTargetCnt + 1]); partialGradient = partialGradient * (TargetFreq - tmpSparamRaw[ChannelNumber - 1].Freq[iTargetCnt]); } } } Array.Resize(ref _Result.Result, 1); Array.Resize(ref _Result.Header, 1); _Result.Enable = true; _Result.Header[0] = TcfHeader + "_C" + ChannelNumber + "_" + SParam + "_" + TargetFreq / 1e6 + "_M"; _Result.Result[0] = -9999; }
public override void Initialize() { _Result = new SResult(); objMag.TestNo = TestNo; objMag.ChannelNumber = ChannelNumber; objMag.Interpolate = Interpolate; objMag.SearchType = SearchType; objMag.SParam = SParam; objMag.StartFreq = StartFreq; objMag.StopFreq = StopFreq; objMag.Initialize(); Array.Resize(ref _Result.Result, 1); Array.Resize(ref _Result.Header, 1); _Result.Enable = true; _Result.Header[0] = TcfHeader + "_C" + ChannelNumber + "_" + SParam2 + "_" + StartFreq / 1e6 + "_M_" + StopFreq / 1e6 + "_M"; _Result.Result[0] = -9999; }
public override void Initialize() { _Result = new SResult(); try { string[] tmpstr = UsePrevious.Split(','); val_1 = int.Parse(tmpstr[0]); val_2 = int.Parse(tmpstr[1]); } catch { DisplayError("SparamDivide", "Initialize - wrong input " + UsePrevious, "Use_Previous column data must in this format - (2,6)"); } Array.Resize(ref _Result.Result, 1); Array.Resize(ref _Result.Header, 1); _Result.Enable = true; _Result.Header[0] = TcfHeader + "_" + tmpResult[val_1].Header[0] + "_" + tmpResult[val_2].Header[0]; _Result.Result[0] = -9999; }