Specifications
Chapter 4 Programming Demos RIGOL
M300 Programming Guide 4-21
+ strChannel + ")";
}
else if(strMeasurement == "Anysensor" )
{
nIndex = m_ctrlcmboxSelAnyType.GetCurSel();
m_ctrlcmboxSelAnyType.GetLBText(nIndex,strType);
strCommand = strCommand +strMeasurement + " " + strType + ",(@" +
strChannel + ")";
}
else
{
strCommand = strCommand +strMeasurement + " (@" + strChannel + ")";
}
InstrWrite(strCommand);
}
}
UpdateData(false);
}
5) Initialize scan list.
void CM300_Demo_VCDlg::OnBnClickedbtninitscan()
{
// TODO: Add your control notification handler code here
CString strCommand = "INIT";
InstrWrite(strCommand);
}
6) Abort the scan.
void CM300_Demo_VCDlg::OnBnClickedbtnabortscan()
{
// TODO: Add your control notification handler code here
CString strCommand = "ABORT";
InstrWrite(strCommand);
}
7) Query the system error.
void CM300_Demo_VCDlg::OnBnClickedbtnsyserr()
{
// TODO: Add your control notification handler code here
CString strCommand = "SYST:Error?";
InstrWrite(strCommand);
}
8 Add the Radio Button control message response code.
1) Click the rbtnDCV radio button.
void CM300_Demo_VCDlg::OnBnClickedrbtndcv()
{
// TODO: Add your control notification handler code here
if (m_ctrlrbtnDCV.GetCheck() == 1)
{
strMeasurement = "VOLT:DC";
}
else
{
strMeasurement = "";
}
}
2) Click the rbtnDCI radio button.
void CM300_Demo_VCDlg::OnBnClickedrbtndci()
{
// TODO: Add your control notification handler code here
if (m_ctrlrbtnDCI.GetCheck() == 1)