Specifications
Chapter 4 Programming Demos RIGOL
M300 Programming Guide 4-35
strCommand = strMeasurement + "VOLT:RANG " + txtRange.Text;
}
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}
else { }
//configure ACFilter
if (coboxACFilter.Text != "")
{
strCommand = strMeasurement + ":RANG:LOW " + coboxACFilter.Text;
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}
else { }
//configure Gate time
if (coboxGateTime.Text != "")
{
strCommand = strMeasurement + ":APER " + coboxGateTime.Text;
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}
else { }
}
//Configure Temperature mesurement
else if (rbtnTemp.Checked == true)
{
if (cmboxTemp.Text != "")
{
strMeasurement = "TEMP";
strCommand = "CONF:TEMP " + cmboxTemp.Text + ",1,DEF," + "(@" +
txtChannels.Text + ")";
Device_Send(strCommand);
//configure intergeration time
if (cmboxNPLC.Text != "" || txtIntertime.Text != "")
{
if (cmboxNPLC.Text != "")
{
strCommand = strMeasurement + ":NPLC " + cmboxNPLC.Text;
}
else
{
strCommand = strMeasurement + ":APER " + txtIntertime.Text;
}
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}
else { }
//configure AZ/Ocompensated
if (cmboxTemp.Text.Substring(0, 2) == "TC" ||
cmboxTemp.Text.Substring(0, 2) == "TH")
{
//configure auto az
if (chkAZ.Checked == true)
{
strCommand = "ZERO:AUTO ON";
strCommand = strCommand + ",(@" + txtChannels.Text + ")";
Device_Send(strCommand);
}