EasyManua.ls Logo

Rigol DP800 Series - Page 123

Rigol DP800 Series
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4 Programming Demos RIGOL
DP800 Programming Guide 4-19
2) Write operation
void CDP800_DEMO_VCDlg::OnSend()
{
// TODO: Add your control notification handler code here
UpdateData(true);
if (m_strInstrAddr.IsEmpty())
{
MessageBox("Please connect to the instrument first!");
}
InstrWrite(m_strInstrAddr,m_strCommand);
m_strResult.Empty();
UpdateData(false);
}
3) Read operation
void CDP800_DEMO_VCDlg::OnRead()
{
// TODO: Add your control notification handler code here
UpdateData(true);
InstrRead(m_strInstrAddr,&m_strResult);
UpdateData(false);
}
8 Running results.
1) Click Connect to search for the power supply and connect it;
2) Enter the command in to the Command textbox, for example, :APPLy? CH1;
3) Click Send to send the command;
4) Click Read to read the return value.
The running results are as shown in the figure below.

Table of Contents

Other manuals for Rigol DP800 Series

Related product manuals