Specifications

RIGOL Chapter 4 Programming Demos
4-20 M300 Programming Guide
strM300Info = strM300InfoTemp;
UpdateData(false);
}
2) Write operation.
void CM300_Demo_VCDlg::OnBnClickedbtnsend()
{
// TODO: Add your control notification handler code here
UpdateData(true);
if( strM300Info.IsEmpty() )
{
MessageBox("Please connect to the instrument first!");
}
if( strSendCommand.IsEmpty() )
{
MessageBox("Please input the command first!");
}
else
{
InstrWrite(strSendCommand);
}
UpdateData(false);
}
3) Read operation.
void CM300_Demo_VCDlg::OnBnClickedbtnread()
{
// TODO: Add your control notification handler code here
UpdateData(true);
strReadFromM300.Empty();
InstrRead(&strReadFromM300);
UpdateData(false);
}
4) Configure the scan list.
void CM300_Demo_VCDlg::OnBnClickedbtnconfigure()
{
// TODO: Add your control notification handler code here
CString strCommand = "CONF:";
CString strType = "";
int nIndex = 0;
UpdateData(true);
if(strMeasurement == "")
{
MessageBox("Please Select one measurement for the specified channels!");
}
else
{
if(strChannel.IsEmpty())
{
MessageBox("Please input the channel number frist!");
}
else
{
if(strMeasurement == "Temperature" )
{
nIndex = m_ctrlcmboxSelTemType.GetCurSel();
m_ctrlcmboxSelTemType.GetLBText(nIndex,strType);
strCommand = strCommand +strMeasurement + " " + strType + ",1,DEF,"+ "(@"