Пример #1
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            //MyInst.Display(WINDowNo, state, SelectWindow, GridStatus, OffsetFreq, Dline, DlineState, NormRefLevel, NormRefPositon, Pdivision, YScaleSpacing, XScaleSpacing);

            UpgradeVerdict(Verdict.Pass);
            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);

            MyInst.ScpiCommand(":DISPlay:WINDow{0}:FORMat:TILE", WINDowNo);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:FORMat:ZOOM", WINDowNo);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:MAMarker:STATe {1}", WINDowNo, state);
            MyInst.ScpiCommand(":DISPlay:WINDow {0}", SelectWindow);
            //MyInst.ScpiCommand(":DISPlay:WINDow{0}:SELect {1}", WINDowNo, SelectWindow);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:GRATicule:GRID:STATe {1}", WINDowNo, GridStatus);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:X:SCALe:OFFSet {1}", WINDowNo, OffsetFreq);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:X:SCALe:SPACing {1}", WINDowNo, XScaleSpacing);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:Y:SCALe:SPACing {1}", WINDowNo, YScaleSpacing);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:Y:DLINe:STATe {1}", WINDowNo, DlineState);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:Y:DLINe {1}", WINDowNo, Dline);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:Y:SCALe:NRLevel {1}", WINDowNo, NormRefLevel);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:Y:SCALe:NRPosition {1}", WINDowNo, NormRefPositon);
            MyInst.ScpiCommand(":DISPlay:WINDow{0}:TRACe:Y:SCALe:PDIVision {1}", WINDowNo, Pdivision);
        }
Пример #2
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:TYPE {0},{1}", ArbType, ChanList);
            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:SHAPe {0},{1}", ArbFunction, ChanList);

            // Dwell
            if (ArbType == EArbType.CURRent)
            {
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:CDWell:DWELl {0},{1}", CDwellTime, ChanList);
                MyInst.ScpiCommand(":FORMat:DATA ASC");
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:CDWell:LEVel {0},{1}", CDwellLevel, ChanList);
                CDwellPoints = MyInst.ScpiQuery <System.Int32[]>(Scpi.Format(":SOURce:ARB:CURRent:CDWell:POINts? {0}", ChanList), true);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:CONVert {0}", ChanList);
            }
            else if (ArbType == EArbType.VOLTage)
            {
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:CDWell:DWELl {0},{1}", VDwellTime, ChanList);
                MyInst.ScpiCommand(":FORMat:DATA ASC");
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:CDWell:LEVel {0},{1}", VDwellLevel, ChanList);
                VDwellPoints = MyInst.ScpiQuery <System.Int32[]>(Scpi.Format(":SOURce:ARB:VOLTage:CDWell:POINts? {0}", ChanList), true);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:CONVert {0}", ChanList);
            }


            // UpgradeVerdict(Verdict.Pass);
        }
Пример #3
0
 public override void Run()
 {
     MyInst.ScpiCommand(":SOURce:MODulation:PM:BANDwidth {0}", BandwidthType);
     MyInst.ScpiCommand(":SOURce:MODulation:PM:DEViation {0}", PmDeviation);
     MyInst.ScpiCommand(":SOURce:MODulation:PM:SOURce {0}", IntExtSource);
     MyInst.ScpiCommand(":SOURce:MODulation:PM:STATe {0}", PmState);
 }
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:TYPE {0},{1}", ArbType, ChanList);
            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:SHAPe {0},{1}", ArbFunction, ChanList);

            // Exponential
            if (ArbType == EArbType.CURRent)
            {
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:EXPonential:STARt:LEVel {0},{1}", CExpoStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:EXPonential:STARt:TIMe {0},{1}", CExpoStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:EXPonential:END:LEVel {0},{1}", CExpoEndLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:EXPonential:TIMe {0},{1}", CExpoTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:EXPonential:TCONstant {0},{1}", CExpoTimeConst, ChanList);
            }
            else if (ArbType == EArbType.VOLTage)
            {
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:EXPonential:STARt:LEVel {0},{1}", VExpoStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:EXPonential:STARt:TIMe {0},{1}", VExpoStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:EXPonential:END:LEVel {0},{1}", VExpoEndLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:EXPonential:TIMe {0},{1}", VExpoTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:EXPonential:TCONstant {0},{1}", VExpoTimeConst, ChanList);
            }

            // UpgradeVerdict(Verdict.Pass);
        }
Пример #5
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.


            MyInst.ScpiCommand(":INSTrument:SELect {0}", InstMode);
            MyInst.ScpiCommand("*OPC");
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:ACTivate", MarkerNo);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:AOFF", MarkerNo);
            // Marker BW
            MarkerBWdata = MyInst.ScpiQuery <System.Double[]>(Scpi.Format(":CALCulate:SELected:MARKer{0}:BWIDth:DATA?", MarkerNo), true);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:BWIDth:STATe {1}", MarkerNo, MarkerBWstate);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:FUNCtion:BWIDth:THReshold {1}", MarkerNo, MarkerBWThreshold);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:FORMat {1}", MarkerNo, MarkerFormat);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:STATe {1}", MarkerNo, MarkerMode);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:TRACe {1}", MarkerNo, TraceNum);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:X {1}", MarkerNo, MarkerX);
            MarkerPhase = MyInst.ScpiQuery <System.Double>(Scpi.Format(":CALCulate:SELected:MARKer{0}:Y?", MarkerNo), true);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:FUNCtion:MAXimum", MarkerNo);
            MyInst.ScpiCommand(":CALCulate:SELected:MARKer{0}:FUNCtion:MINimum", MarkerNo);
            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #6
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:TYPE {0},{1}", ArbType, ChanList);
            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:SHAPe {0},{1}", ArbFunction, ChanList);

            // Stair
            if (ArbType == EArbType.CURRent)
            {
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:STAircase:STARt:LEVel {0},{1}", CStairStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:STAircase:STARt:TIMe {0},{1}", CStairStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:STAircase:END:LEVel {0},{1}", CStairEndLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:STAircase:END:TIMe {0},{1}", CStairEndTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:STAircase:NSTeps {0},{1}", CStairSteps, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:STAircase:TIMe {0},{1}", CStairTotalTime, ChanList);
            }
            else if (ArbType == EArbType.VOLTage)
            {
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:STAircase:STARt:LEVel {0},{1}", VStairStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:STAircase:STARt:TIMe {0},{1}", VStairStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:STAircase:END:LEVel {0},{1}", VStairEndLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:STAircase:END:TIMe {0},{1}", VStairEndTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:STAircase:NSTeps {0},{1}", VStairSteps, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:STAircase:TIMe {0},{1}", VStairTotalTime, ChanList);
            }
        }
Пример #7
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:TYPE {0},{1}", ArbType, ChanList);
            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:SHAPe {0},{1}", ArbFunction, ChanList);

            // Ramp

            if (ArbType == EArbType.CURRent)
            {
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:RAMP:STARt:LEVel {0},{1}", CRampStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:RAMP:STARt:TIMe {0},{1}", CRampStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:RAMP:RTIMe {0},{1}", CRampRtime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:RAMP:END:LEVel {0},{1}", CRampEndLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:RAMP:END:TIMe {0},{1}", CRampEndTime, ChanList);
            }
            else if (ArbType == EArbType.VOLTage)
            {
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:RAMP:STARt:LEVel {0},{1}", VRampStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:RAMP:STARt:TIMe {0},{1}", VRampStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:RAMP:RTIMe {0},{1}", VRampRtime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:RAMP:END:LEVel {0},{1}", VRampEndLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:RAMP:END:TIMe {0},{1}", VRampEndTime, ChanList);
            }

            // UpgradeVerdict(Verdict.Pass);
        }
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            if (enableRiseTime)
            {
                MyInst.ScpiCommand(":MEASure:RISetime {0}", Source);
            }
            if (enableFallTime)
            {
                MyInst.ScpiCommand(":MEASure:FALLtime {0}", Source);
            }
            if (enablePeriod)
            {
                MyInst.ScpiCommand(":MEASure:PERiod {0},{1}", Source, DirectionPeriod);
            }
            if (enableFrequency)
            {
                MyInst.ScpiCommand(":MEASure:FREQuency {0},{1}", Source, DirectionFrequency);
            }
            if (enableVpp)
            {
                MyInst.ScpiCommand(":MEASure:VPP {0}", Source);
            }
        }
Пример #9
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:TYPE {0},{1}", ArbType, ChanList);
            MyInst.ScpiCommand(":SOURce:ARB:FUNCtion:SHAPe {0},{1}", ArbFunction, ChanList);

            // Trapezoidal
            if (ArbType == EArbType.CURRent)
            {
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:TRAPezoid:STARt:LEVel {0},{1}", CTrapStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:TRAPezoid:STARt:TIMe {0},{1}", CTrapStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:TRAPezoid:RTIMe {0},{1}", CTrapRiseTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:TRAPezoid:TOP:LEVel {0},{1}", CTrapTopLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:TRAPezoid:TOP:TIMe {0},{1}", CTrapTopTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:TRAPezoid:FTIMe {0},{1}", CTrapRallTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:CURRent:TRAPezoid:END:TIMe {0},{1}", CTrapEndTime, ChanList);
            }
            else if (ArbType == EArbType.VOLTage)
            {
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:TRAPezoid:STARt:LEVel {0},{1}", VTrapStartLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:TRAPezoid:STARt:TIMe {0},{1}", VTrapStartTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:TRAPezoid:RTIMe {0},{1}", VTrapRiseTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:TRAPezoid:TOP:LEVel {0},{1}", VTrapTopLevel, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:TRAPezoid:TOP:TIMe {0},{1}", VTrapTopTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:TRAPezoid:FTIMe {0},{1}", VTrapRallTime, ChanList);
                MyInst.ScpiCommand(":SOURce:ARB:VOLTage:TRAPezoid:END:TIMe {0},{1}", VTrapEndTime, ChanList);
            }
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #10
0
 public override void Run()
 {
     MyInst.ScpiCommand(":SOURce:MODulation:AM:DEPTh:LINear {0}", AmDepth);
     MyInst.ScpiCommand(":SOURce:MODulation:AM:MODE {0}", AmMode);
     MyInst.ScpiCommand(":SOURce:MODulation:AM:SOURce {0}", internalExternaletc);
     MyInst.ScpiCommand(":SOURce:MODulation:AM:STATe {0}", AmState);
 }
Пример #11
0
 public override void Run()
 {
     MyInst.ScpiCommand(":TRIGger:OUTPut:POLarity {0}", TriggerPolarity);
     MyInst.ScpiCommand(":TRIGger:SEQuence:TIMer {0}", TimerPeriod);
     MyInst.ScpiCommand(":TRIGger:SEQuence:SLOPe {0}", TriggerSequenceSlope);
     MyInst.ScpiCommand(":TRIGger:SEQuence:SOURce {0}", TriggerSource);
 }
Пример #12
0
 public override void Run()
 {
     MyInst.ScpiCommand(":DISPlay:BRIGhtness {0}", Brightness);
     MyInst.ScpiCommand(":DISPlay:CONTrast {0}", Contrast);
     MyInst.ScpiCommand(":DISPlay:CAPTure");
     MyInst.ScpiCommand(":DISPlay:REMote {0}", RemoteStatus);
     QueryRemoteStatus = MyInst.ScpiQuery <System.Boolean>(Scpi.Format(":DISPlay:REMote?"), true);
 }
Пример #13
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":OUTPut:STATe {0},{1},{2}", OutputState, NORelayMode, ChanList);
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #14
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":SOURce:POWer:LIMit {0},{1}", PowerLimit, ChanList);
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #15
0
 public override void Run()
 {
     MyInst.ScpiCommand(":OUTPut:BLANking:AUTO {0}", OutputBlankingAuto);
     MyInst.ScpiCommand(":OUTPut:BLANking:STATe {0}", OutputBlankingState);
     MyInst.ScpiCommand(":OUTPut:MODulation:STATe {0}", OutputModulation);
     MyInst.ScpiCommand(":OUTPut:PROTection:STATe {0}", OutputProtection);
     this.ProcessResults();
 }
Пример #16
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":OUTPut:STATe:DELay:FALL {0},{1}", FallDelay, ChanList);
            MyInst.ScpiCommand(":OUTPut:STATe:DELay:RISE {0},{1}", RiseDelay, ChanList);
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #17
0
 public override void Run()
 {
     QueryCurrentSPoint = MyInst.ScpiQuery <System.Int32>(Scpi.Format(":SOURce:SWEEp:POINt?"), true);
     MyInst.ScpiCommand(":SOURce:LIST:DIRection {0}", Direction);
     QueryDirection = MyInst.ScpiQuery <System.String>(Scpi.Format(":SOURce:LIST:DIRection?"), true);
     MyInst.ScpiCommand(":SOURce:SWEEp:FREQuency {0}", ListFrequency);
     QueryListDirection = MyInst.ScpiQuery <System.Double[]>(Scpi.Format(":SOURce:LIST:FREQuency?"), true);
     MyInst.ScpiCommand(":SOURce:SWEEp:POWer {0}", ListPower);
     MyInst.ScpiCommand(":SOURce:SWEEp:TYPE {0}", SweepType);
 }
Пример #18
0
        public override void Run()
        {
            MyInst.ScpiCommand(":SENSe:BANDwidth:IF:OUT {0}", IF);
            MyInst.ScpiCommand(":SENSe:BANDwidth:RESolution {0}", Resolution);
            MyInst.ScpiCommand(":SENSe:BANDwidth:VIDeo {0}", VBW);

            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #19
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps();             //If the step supports child steps.

            MyInst.ScpiCommand(":SENSe:ALIGnment:BURSt:STATe {0}", BurstAlignmentState);

            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #20
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":HCOPy:SDUMp:DATA:FORMat {0}", ImageType);

            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #21
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps();             //If the step supports child steps.

            MyInst.ScpiCommand(":SENSe:AMPLitude:SCALe {0}", Scale);
            MyInst.ScpiCommand(":SENSe:AMPLitude:UNIT {0}", Units);

            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #22
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps();             //If the step supports child steps.

            AvailableMode = MyInst.ScpiQuery <System.String[]>(Scpi.Format(":INSTrument:CATalog?"), true);
            MyInst.ScpiCommand(":INSTrument:SELect {0}", ModeOfInstrument);
            MyInst.ScpiCommand("*OPC");
            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":DIGital{0}:DISPlay {1}", DigitalNo, DigitalDisplayState);
            MyInst.ScpiCommand(":DIGital{0}:LABel {1}", DigitalNo, Quoted_string);
            MyInst.ScpiCommand(":DIGital{0}:SIZE {1}", DigitalNo, DigitalVertcalSize);
            MyInst.ScpiCommand(":DIGital{0}:THReshold {1}", DigitalNo, Threshold);
            MyInst.ScpiCommand(":ENABle {0}", EnableDigital);
            MyInst.ScpiCommand(":DISable {0}", DisableDigital);
        }
Пример #24
0
 public override void Run()
 {
     QueriedFreq = MyInst.ScpiQuery <System.Double>(Scpi.Format(":SOURce:CORRection:FLATness:FREQuency? {0}", FreqPoint), true);
     MyInst.ScpiCommand(":SOURce:CORRection:FLATness:LOAD {0}", FlatnessCorrectionFilename);
     MyInst.ScpiCommand(":SOURce:CORRection:FLATness:PAIR {0},{1}", CorrFreq, CorrAmplitude);
     QueriedPointInFile = MyInst.ScpiQuery <System.Int32>(Scpi.Format(":SOURce:CORRection:FLATness:POINts?"), true);
     MyInst.ScpiCommand(":SOURce:CORRection:FLATness:PRESet");
     MyInst.ScpiCommand(":SOURce:CORRection:FLATness:STORe {0}", SaveCorrectionFile);
     MyInst.ScpiCommand(":SOURce:CORRection:FLATness:STEP:POINts {0}", CorrStepPoint);
     MyInst.ScpiCommand(":SOURce:CORRection:FLATness:STEP:STARt {0}", CorrStepStartFreq);
     MyInst.ScpiCommand(":SOURce:CORRection:FLATness:STEP:STOP {0}", CorrStepStopFreq);
 }
Пример #25
0
        public override void Run()
        {
            MyInst.ScpiCommand("DISPlay:WINDow:STATE ON");
            MyInst.ScpiCommand("CALCulate:PARameter:DEFine:EXT 'MyMeas1',S11");
            MyInst.ScpiCommand("CALCulate:PARameter:DEFine:EXT 'MyMeas2',S12");
            MyInst.ScpiCommand("CALCulate:PARameter:DEFine:EXT 'MyMeas3',S21");
            MyInst.ScpiCommand("CALCulate:PARameter:DEFine:EXT 'MyMeas4',S22");
            MyInst.ScpiCommand("DISPlay:WINDow:TRACe1:FEED 'MyMeas1'");
            //MyInst.ScpiCommand("DISPlay:WINDow:TRACe2:FEED 'MyMeas2'");
            //MyInst.ScpiCommand("DISPlay:WINDow:TRACe3:FEED 'MyMeas3'");
            //MyInst.ScpiCommand("DISPlay:WINDow:TRACe4:FEED 'MyMeas4'");
            //MyInst.ScpiCommand("DISPlay:WINDow:Y:AUTO");
            MyInst.ScpiQuery <bool>("*OPC?");

            Log.Info("Selected Start Frequency : " + StartFrequency.ToString());
            Log.Info("Selected Stop Frequency : " + StopFrequency.ToString());
            Log.Info("Selected IF Bandwidth : " + IFBandwidth.ToString());
            Log.Info("Selected Power Level : " + SweepPoints.ToString());

            MyInst.IoTimeout = 5000;

            MyMeas measurement = MyMeas.MyMeas1;

            if (S_Parameters == S_Parameters.S11)
            {
                measurement = MyMeas.MyMeas1;
            }
            if (S_Parameters == S_Parameters.S12)
            {
                measurement = MyMeas.MyMeas2;
            }
            if (S_Parameters == S_Parameters.S21)
            {
                measurement = MyMeas.MyMeas3;
            }
            if (S_Parameters == S_Parameters.S22)
            {
                measurement = MyMeas.MyMeas4;
            }

            MyInst.ScpiCommand(":CALCulate1:PARameter:SELect '{0}'", measurement);
            MyInst.ScpiCommand(":SENSe:BANDwidth:RESolution {0}", IFBandwidth);
            MyInst.ScpiCommand(":SENSe:FREQuency:STARt {0}", StartFrequency);
            MyInst.ScpiCommand(":SENSe:FREQuency:STOP {0}", StopFrequency);
            MyInst.ScpiCommand(":SENSe:SWEep:POINts {0}", SweepPoints);
            MyInst.ScpiCommand(":SENSe:SWEep:GENeration {0}", SweepType);
            MyInst.ScpiCommand(":SENSe:SWEep:TIME:AUTO 1");


            StaticClass.Time = MyInst.ScpiQuery <System.Double>(Scpi.Format(":SENSe:SWEep:TIME?"), true);

            UpgradeVerdict(Verdict.Pass);
        }
Пример #26
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps();             //If the step supports child steps.

            MyInst.ScpiCommand(":SENSe:AVERage:COUNt {0}", AverageCount);
            MyInst.ScpiCommand(":SENSe:AVERage:TYPE {0}", AverageType);

            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #27
0
        public override void Run()
        {
            // ToDo: Add test case code.
            // RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":TRACe{0}:TYPE {1}", TraceNo, TraceType);
            MyInst.ScpiCommand(":FORMat:DATA ASC,0");
            OutputTraceValue = MyInst.ScpiQuery <System.Double[]>(Scpi.Format(":TRACe{0}:DATA?", TraceNo), true);
            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #28
0
        public override void Run()
        {
            // ToDo: Add test case code.
            // RunChildSteps(); //If the step supports child steps.

            MyInst.ScpiCommand(":SENSe:FREQuency:CENTer {0}", CenterFreq);
            MyInst.ScpiCommand(":SENSe:FREQuency:SPAN {0}", FreqSpan);
            MyInst.ScpiCommand(":SENSe:FREQuency:STARt {0}", StartFreq);
            MyInst.ScpiCommand(":SENSe:FREQuency:STOP {0}", StopFreq);
            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }
Пример #29
0
 public override void Run()
 {
     MyInst.ScpiCommand(":SOURce:CORRection:PMETer:CHANnel {0}", Channel);
     MyInst.ScpiCommand(":SOURce:CORRection:PMETer:COMMunicate:TYPE {0}", CommunicationType);
     MyInst.ScpiCommand(":SOURce:CORRection:PMETer:COMMunicate:LAN:DEVice {0}", DeviceName);
     QueryDeviceName = MyInst.ScpiQuery <System.String>(Scpi.Format(":SOURce:CORRection:PMETer:COMMunicate:LAN:DEVice?"), true);
     MyInst.ScpiCommand(":SOURce:CORRection:PMETer:COMMunicate:LAN:IP {0}", IpAddress);
     QueryIpAddress = MyInst.ScpiQuery <System.String>(Scpi.Format(":SOURce:CORRection:PMETer:COMMunicate:LAN:IP?"), true);
     MyInst.ScpiCommand(":SOURce:CORRection:PMETer:COMMunicate:LAN:PORT {0}", PortNumber);
     QueryPortNumber = MyInst.ScpiQuery <System.Int32>(Scpi.Format(":SOURce:CORRection:PMETer:COMMunicate:LAN:PORT?"), true);
     MyInst.ScpiCommand(":SOURce:CORRection:PMETer:COMMunicate:USB:DEVice {0}", UsbDevice);
     QueryUsbDevice = MyInst.ScpiQuery <System.String>(Scpi.Format(":SOURce:CORRection:PMETer:COMMunicate:USB:DEVice?"), true);
     ListDevices    = MyInst.ScpiQuery <System.String[]>(Scpi.Format(":SOURce:CORRection:PMETer:COMMunicate:USB:LIST?"), true);
 }
Пример #30
0
        public override void Run()
        {
            // ToDo: Add test case code.
            RunChildSteps();             //If the step supports child steps.

            MyInst.ScpiCommand(":MMEMory:LOAD:ANTenna {0},{1}", LoadAntenna, LoadMode);
            MyInst.ScpiCommand(":MMEMory:LOAD:CABLe {0},{1}", LoadCable, LoadMode);
            MyInst.ScpiCommand(":MMEMory:LOAD:SANTenna {0},{1}", LoadSourceAntenna, LoadMode);
            MyInst.ScpiCommand(":MMEMory:LOAD:SCABle {0},{1}", LoadSourceCable, LoadMode);
            MyInst.ScpiCommand(":MMEMory:LOAD:STATe {0}", LoadState);
            // If no verdict is used, the verdict will default to NotSet.
            // You can change the verdict using UpgradeVerdict() as shown below.
            // UpgradeVerdict(Verdict.Pass);
        }