Esempio n. 1
0
 public override void Averaging(int channelNumber, naEnum.EOnOff val)
 {
     SendCommand("SENS" + channelNumber + ":AVER:STAT " + val);
 }
Esempio n. 2
0
        private string Convert_SegmentTable2String(SSegmentTable SegmentTable)
        {
            string tmpStr;

            tmpStr = "";
            naEnum.EOnOff sweepmode = SegmentTable.Swp;
            switch (sweepmode)
            {
            case naEnum.EOnOff.On:
                tmpStr  = ((int)SegmentTable.Mode).ToString();
                tmpStr += "," + ((int)SegmentTable.Ifbw).ToString();
                tmpStr += "," + ((int)SegmentTable.Pow).ToString();
                tmpStr += "," + ((int)SegmentTable.Del).ToString();
                tmpStr += "," + ((int)SegmentTable.Swp).ToString();
                tmpStr += "," + ((int)SegmentTable.Time).ToString();
                tmpStr += "," + SegmentTable.Segm.ToString();
                for (int Seg = 0; Seg < SegmentTable.SegmentData.Length; Seg++)
                {
                    tmpStr += "," + SegmentTable.SegmentData[Seg].Start.ToString();
                    tmpStr += "," + SegmentTable.SegmentData[Seg].Stop.ToString();
                    tmpStr += "," + SegmentTable.SegmentData[Seg].Points.ToString();
                    if (SegmentTable.Ifbw == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].IfbwValue.ToString();
                    }
                    if (SegmentTable.Pow == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].PowValue.ToString();
                    }
                    if (SegmentTable.Del == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].DelValue.ToString();
                    }
                    if (SegmentTable.Swp == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].SwpValue.ToString();
                    }
                    if (SegmentTable.Time == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].TimeValue.ToString();
                    }
                }
                break;

            case naEnum.EOnOff.Off:
                tmpStr  = ((int)SegmentTable.Mode).ToString();
                tmpStr += "," + ((int)SegmentTable.Ifbw).ToString();
                tmpStr += "," + ((int)SegmentTable.Pow).ToString();
                tmpStr += "," + ((int)SegmentTable.Del).ToString();
                tmpStr += "," + ((int)SegmentTable.Time).ToString();
                tmpStr += "," + SegmentTable.Segm.ToString();
                for (int Seg = 0; Seg < SegmentTable.SegmentData.Length; Seg++)
                {
                    tmpStr += "," + SegmentTable.SegmentData[Seg].Start.ToString();
                    tmpStr += "," + SegmentTable.SegmentData[Seg].Stop.ToString();
                    tmpStr += "," + SegmentTable.SegmentData[Seg].Points.ToString();
                    if (SegmentTable.Ifbw == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].IfbwValue.ToString();
                    }
                    if (SegmentTable.Pow == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].PowValue.ToString();
                    }
                    if (SegmentTable.Del == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].DelValue.ToString();
                    }
                    if (SegmentTable.Time == naEnum.EOnOff.On)
                    {
                        tmpStr += "," + SegmentTable.SegmentData[Seg].TimeValue.ToString();
                    }
                }
                break;
            }
            return(tmpStr);
        }
Esempio n. 3
0
 public override void Averaging(int channelNumber, naEnum.EOnOff val)
 {
     SendCommand("TRIG:AVER " + val);
 }
 public virtual void Averaging(int channelNumber, naEnum.EOnOff val)
 {
 }