Specifications
Chapter 4 Programming Demos RIGOL
M300 Programming Guide 4-27
3. Add the Text, Edit, Button, CheckBox, ComboBox, Label and GroupBox controls and the layout
is as shown in the figure below.
4. Initialize the ComboBox items by adding the statement as follows to the Form1 Load event.
private void Form1_Load(object sender, EventArgs e)
{
//Init the NPLC parameter
cmboxNPLC.Items.Add("0.02");
cmboxNPLC.Items.Add("0.2");
cmboxNPLC.Items.Add("1");
cmboxNPLC.Items.Add("2");
cmboxNPLC.Items.Add("10");
cmboxNPLC.Items.Add("20");
cmboxNPLC.Items.Add("100");
cmboxNPLC.Items.Add("200");
cmboxNPLC.Items.Add("");
//Init the ACfilter parameter
coboxACFilter.Items.Add("3");
coboxACFilter.Items.Add("20");
coboxACFilter.Items.Add("200");
coboxACFilter.Items.Add("");
//Init the Gate time parameter
coboxGateTime.Items.Add("0.001");
coboxGateTime.Items.Add("0.01");
coboxGateTime.Items.Add("0.1");
coboxGateTime.Items.Add("1");
coboxGateTime Items.Add("");
//Init the Alarm Source parameter
cmboxSource.Items.Add("ALARm1");
cmboxSource.Items.Add("ALARm2");
cmboxSource.Items.Add("ALARm3");
cmboxSource.Items.Add("ALARm4");
//Init the Temperature type
cmboxTemp.Items.Add("TC,B");
cmboxTemp.Items.Add("TC,E");
cmboxTemp.Items.Add("TC,J");