Instructions
RIGOL  Chapter 5 Programming Examples 
5-4  RSA3000E Programming Guide 
By now, VISA library has been added. 
4.  Add the Text, Edit, and Button controls, as shown in the figure below. 
5.  Add the control variables. 
Click View  ClassWizard, and then click the Member Variables tab to add the following three 
variables: 
Address CString m_strInstrAddr 
Command CString m_strCommand 
Return CString m_strResult 
6.  Encapsulate the read and write operations of VISA. 
1)  Encapsulate the write operation of VISA for easier operation. 
bool CDemoForRSADlg::InstrWrite(CString strAddr, CString strContent) //Write operation 
{ 
ViSession defaultRM,instr; 
ViStatus status; 
ViUInt32 retCount; 
char * SendBuf = NULL; 
char * SendAddr = NULL; 
bool bWriteOK = false; 
CString str; 










