/// <summary> /// /// </summary> /// <param name="LogOutput"></param> /// <param name="enableOutputACP"></param> /// <param name="enableOutputBPower"></param> /// <param name="enableOutputChPower"></param> /// <param name="ACPowerNo"></param> /// <param name="BPOWerNo"></param> /// <param name="CHPowerNo"></param> /// <param name="_OutputACP"></param> /// <param name="_OutputBPower"></param> /// <param name="_OutputChPower"></param> public void Measurements(OpenTap.TraceSource LogOutput, bool enableOutputACP, bool enableOutputBPower, bool enableOutputChPower, uint ACPowerNo, uint BPOWerNo, uint CHPowerNo, ref Single[] _OutputACP, ref Single[] _OutputBPower, ref Single[] _OutputChPower) { ScpiCommand(":FORMat:TRACe:DATA REAL,32"); ScpiCommand(":FORMat:BORDer SWAP"); if (enableOutputACP == true) { _OutputACP = ScpiQueryBlock <System.Single>(Scpi.Format(":MEASure:ACPower{0}?", ACPowerNo)); LogOutput.Info("*********************** AC Power ******************"); LogOutput.Info("************************* " + _OutputACP + " dB *************************"); } if (enableOutputBPower == true) { _OutputBPower = ScpiQueryBlock <System.Single>(Scpi.Format(":MEASure:BPOWer{0}?", BPOWerNo)); LogOutput.Info("*********************** Burst Power ******************"); LogOutput.Info("************************* " + _OutputBPower + " dB *************************"); } if (enableOutputChPower == true) { _OutputChPower = ScpiQueryBlock <System.Single>(Scpi.Format(":MEASure:CHPower{0}?", CHPowerNo)); LogOutput.Info("*********************** Channel Power ******************"); LogOutput.Info("************************* " + _OutputChPower + " dB *************************"); } }