Specifications
Chapter 4 Programming Demos RIGOL
M300 Programming Guide 4-23
}
}
7) Click the rbtnFrequency radio button.
void CM300_Demo_VCDlg::OnBnClickedrbtnfrequency()
{
// TODO: Add your control notification handler code here
if (m_ctrlrbtnFrequency.GetCheck() == 1)
{
strMeasurement = "Frequency";
}
else
{
strMeasurement = "";
}
}
8) Click the rbtnPeriod radio button.
void CM300_Demo_VCDlg::OnBnClickedrbtnperiod()
{
// TODO: Add your control notification handler code here
if (m_ctrlrbtnPeriod.GetCheck() == 1)
{
strMeasurement = "Period";
}
else
{
strMeasurement = "";
}
}
9) Click the rbtnTemperature radio button.
void CM300_Demo_VCDlg::OnBnClickedrbtntemperature()
{
// TODO: Add your control notification handler code here
if (m_ctrlrbtnTemperature.GetCheck() == 1)
{
strMeasurement = "Temperature";
}
else
{
strMeasurement = "";
}
}
10) Click the rbtnAnysensor radio button.
void CM300_Demo_VCDlg::OnBnClickedrbtnanysensor()
{
// TODO: Add your control notification handler code here
if (m_ctrlrbtnAnysensor.GetCheck() == 1)
{
strMeasurement = "Anysensor";
}
else
{
strMeasurement = "";
}
}
9 Running results.
1) Click Connect to search for the M300 series Data Acquisition/Switch System and connect it;
2) Enter a command into the Command textbox, for example, *IDN?;
3) Click Send to send the command;