Specifications
Chapter 4 Programming Demos RIGOL
M300 Programming Guide 4-43
strScanList = strReturn.Split(',');
//Query the scan list size
strCommand = "ROUT:SCAN:SIZE?";
Device_Send(strCommand);
strReturn = ReadFromDev();
s32SizeofScanlist = int.Parse(strReturn);
if (s32SizeofScanlist == 0)
{
cmboxScanlist.Text = "";
}
else
{
for (int i = 0; i < s32SizeofScanlist; i++)
{
cmboxScanlist.Items.Add(strScanList[i]);
}
}
}
8. Add the CheckedChanged event of the radio button controls.
1) The checked state of the VOLT:DC radio button has changed.
private void rbtnDCV_CheckedChanged(object sender, EventArgs e)
{
if (rbtnDCV.Checked == true)
{
grpACFilter.Enabled = false;
grpGatetime.Enabled = false;
chkOcomp.Enabled = false;
}
else
{
grpACFilter.Enabled = true;
grpGatetime.Enabled = true;
chkOcomp.Enabled = true;
}
}
2) The checked state of the VOLT:AC radio button has changed.
private void rbtnACV_CheckedChanged(object sender, EventArgs e)
{
if (rbtnACV.Checked == true)
{
grpInterTime.Enabled = false;
grpGatetime.Enabled = false;
chkOcomp.Enabled = false;
chkAZ.Enabled = false;
chkInputimp.Enabled = false;
}
else
{
grpInterTime.Enabled = true;
grpGatetime.Enabled = true;
chkOcomp.Enabled = true;
chkAZ.Enabled = true;
chkInputimp.Enabled = true;
}
}
3) The checked state of the CURR:DC radio button has changed.
private void rbtnDCI_CheckedChanged(object sender, EventArgs e)
{