예제 #1
0
 public ConfigureStimulus()
 {
     StartFrequency   = 100e3;
     StopFrequency    = 4.5e9;
     IFBandwidth      = 10e3;
     Sweep_Points     = 51;
     Power_Level      = -10;
     Averaging_Factor = 10;
     _s_parameters    = S_Parameters.S11;
 }
예제 #2
0
        public void SelectS_Parameter(S_Parameters WhichSParameter)
        {
            string selectedS_Parameter = @"""" + WhichSParameter.ToString() + @"""";

            ScpiCommand("CALCulate:MEASure:PARameter " + selectedS_Parameter);
            OpenTap.TapThread.Sleep(500);
            ScpiCommand("DISPlay:WINDow:Y:AUTO");
            //DISP:WIND:Y:AUTO
            OpenTap.TapThread.Sleep(500);
        }
예제 #3
0
        public void ReadMarkerVaules(S_Parameters _s_parameters, double ENA_Marker_1_Frequency, double ENA_Marker_2_Frequency, double ENA_Marker_3_Frequency)
        {
            SelectS_Parameter(_s_parameters);

            string ENA_Channel = "1";

            ScpiCommand("CALCulate{0}:MARKer{1}:STATe {2}", ENA_Channel, 1, 1);
            ScpiCommand("CALCulate{0}:MARKer{1}:STATe {2}", ENA_Channel, 2, 1);
            ScpiCommand("CALCulate{0}:MARKer{1}:STATe {2}", ENA_Channel, 3, 1);

            ScpiCommand("CALCulate{0}:MARKer{1}:X {2}", ENA_Channel, 1, ENA_Marker_1_Frequency);
            ScpiCommand("CALCulate{0}:MARKer{1}:X {2}", ENA_Channel, 2, ENA_Marker_2_Frequency);
            ScpiCommand("CALCulate{0}:MARKer{1}:X {2}", ENA_Channel, 3, ENA_Marker_3_Frequency);
        }
예제 #4
0
 public void ENAConfigure(double startFrequency, double stopFrequency, double iFBW, int SweepPoints, double PowerLevel, S_Parameters selectedS_Parameter)
 {
     DefineMeasurement(selectedS_Parameter.ToString());
     ScpiCommand("SENSe:FREQuency:STARt " + startFrequency);
     ScpiCommand("SENSe:FREQuency:STOP " + stopFrequency);
     ScpiCommand("SENSe:BANDwidth:RESolution " + iFBW);
     ScpiCommand("SENSe:SWEep:POINts " + SweepPoints);
     ScpiCommand("SOUR:POW:CENT " + PowerLevel);
 }
예제 #5
0
 public S_ParametersTest()
 {
     _s_parameters = S_Parameters.S21;
 }