RIGOL DP832A User Manual

Page 206

Advertising
background image

RIGOL

Chapter 4 Programming Demos

4-18

DP800 Programming Guide

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.

Advertising
This manual is related to the following products: