Specifications

Chapter 4 Programming Demos RIGOL
M300 Programming Guide 4-33
}
else
{
strMeasurement = rbtnACI.Text;
}
//configure measurement
strCommand = "CONF:" + strMeasurement + " (@" + txtChannels.Text + ")";
Device_Send(strCommand);
//configure range
if (chkRangeAuto.Checked == true || txtRange.Text != "")
{
if (chkRangeAuto.Checked == true)
{
strCommand = strMeasurement + ":RANG:AUTO ON";
}
else
{
strCommand = strMeasurement + ":RANG " + txtRange.Text;
}
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}
else { }
//configure ACFilter
if (coboxACFilter.Text != "")
{
strCommand = strMeasurement + ":BAND " + coboxACFilter.Text;
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}
else { }
}
//Configure RES/FRES mesurement
else if (rbtnRES.Checked == true || rbtnFRES.Checked == true)
{
if (rbtnRES.Checked == true)
{
strMeasurement = "RES";
}
else
{
strMeasurement = "FRES";
}
//configure measurement
strCommand = "CONF:" + strMeasurement + " (@" + txtChannels.Text + ")";
Device_Send(strCommand);
//configure range
if (chkRangeAuto.Checked == true || txtRange.Text != "")
{
if (chkRangeAuto.Checked == true)
{
strCommand = strMeasurement + ":RANG:AUTO ON";
}
else
{
strCommand = strMeasurement + ":RANG " + txtRange.Text;
}