Specifications

Chapter 4 Programming Demos RIGOL
M300 Programming Guide 4-37
{
if (chkAZ.Checked == true)
{
strCommand = "ZERO:AUTO ON";
strCommand = strCommand + ",(@" + txtChannels.Text +
")";
Device_Send(strCommand);
}
if (cmboxAnySensor.Text == "VOLT")
{
//configure Input impedance for DCI
if (rbtnDCV.Checked == true)
{
if (chkInputimp.Checked == true)
{
strCommand = "INP:IMP:AUTO ON," + "(@" +
txtChannels.Text + ")";
Device_Send(strCommand);
}
}
}
}
if (cmboxAnySensor.Text == "RES" || cmboxAnySensor.Text ==
"FRES")
{
//configure Ocompensated for 2WR and 4WR
if (chkOcomp.Checked == true)
{
strCommand = strMeasurement + ":" +
cmboxAnySensor.Text + ":OCOM ON";
strCommand = strCommand + ",(@" + txtChannels.Text +
")";
Device_Send(strCommand);
}
}
}
else
{
//configure ACFilter for frequency
if (coboxACFilter.Text != "")
{
strCommand = strMeasurement + ":" + cmboxAnySensor.Text +
":RANG:LOW " + coboxACFilter.Text;
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}
}
}
else
{
MessageBox.Show("please Select Anysensor type");
}
}
else
{
MessageBox.Show("please Select Measurement");
return;
}