Rigol MSO1074Z-S 4-channel oscilloscope, Digital Storage oscilloscope, MSO1074Z-S User Manual

Product codes
MSO1074Z-S
Page of 172
RIGOL 
DS1000Z Programming Guide 
3-17
 
7.  Add the variables m_combox and m_receive for the Combo Box and Edit controls respectively.
 
 
 
 
 
8.  Add codes.
 
Double-click Send and Read to enter the programming environment. Declare the #include 
<visa.h> of the visa library in the header file and then add the following codes.
 
 
ViSession defaultRM, vi; 
char buf [256] = {0}; 
CString s,strTemp; 
char* stringTemp;   
 
ViChar buffer [VI_FIND_BUFLEN]; 
ViRsrc matches=buffer; 
ViUInt32 nmatches; 
ViFindList list; 
 
viOpenDefaultRM (&defaultRM); 
//Acquire the USB resource of visa