
Keysight M8070A Programming Guide
63
Programming Examples
3
public override List<string> setSJFreq(double SJFreq)
// SOUR8:SIN:FREQ
{
string strValue = "";
if ((this.getSJFreqMax() > SJFreq) && (this.getSJFreqMin() <= SJFreq))
strValue = SJFreq.ToString();
else
strValue = this.getSJFreq().ToString();
return this.Send(":SOUR8:SIN:FREQ " + strValue);
}
public override double getSJAmp()
// SOUR8:SIN:LEV?
{
return double.Parse(this.Query(":SOUR8:SIN:LEV?"));
}
public override double getSJAmpMax()
// SOUR8:SIN:LEV? MAX
{
return double.Parse(this.Query(":SOUR8:SIN:LEV? MAX"));
}
public override double getSJAmpMin()
// SOUR8:SIN:LEV? MIN
{
return double.Parse(this.Query(":SOUR8:SIN:LEV? MIN"));
}
public override List<string> setSJAmp(double SJAmp)
// SOUR8:SIN:LEV
{
string strValue = "";
if ((this.getSJAmpMax() > SJAmp) && (this.getSJAmpMin() <= SJAmp))
strValue = SJAmp.ToString();
else
strValue = this.getSJAmp().ToString();
return this.Send(":SOUR8:SIN:LEV " + strValue);
}
#endregion