RIGOL DSG3000 Series User Manual

Page 176

Advertising
background image

RIGOL

Chapter 4 Programming Demos

4-20

DSG3000 Programming Guide

MessageBox("Please connect to the instrument first!");

}

InstrWrite(m_strInstrAddr,m_strCommand);

m_strResult.Empty();

UpdateData(false);

}

3) Read Operation

void CDSG3000_DEMO_VCDlg::OnRead()

{

// TODO: Add your control notification handler code here

UpdateData(true);

InstrRead(m_strInstrAddr,&m_strResult);

UpdateData(false);

}

8. Execution Result

1) Click "Connect" to find and connect the RF signal generator. If the instrument is successfully

connected, the corresponding USB VISA descriptor will be displayed in the address bar.

2) Input command in the "Command" edit box, for example, :SWE:DIR?.

3) Click "Send" to send the command;

4) Click "Read" to read the return value.

The execution result is as shown in the figure below.

Advertising