Rigol MSO1074Z-S 4-channel oscilloscope, Digital Storage oscilloscope, MSO1074Z-S Manual De Usuario

Los códigos de productos
MSO1074Z-S
Descargar
Página de 172
RIGOL 
3-18 
  DS1000Z Programming Guide 
viFindRsrc(defaultRM, "USB?*", &list,&nmatches, matches); 
viOpen (defaultRM,matches,VI_NULL,VI_NULL,&vi); 
 
// Send the command received 
m_combox.GetLBText(m_combox.GetCurSel(),strTemp); 
strTemp = strTemp + "\n"; 
stringTemp = (char*)(LPCTSTR)strTemp;   
viPrintf (vi,stringTemp); 
 
// Read the result 
viScanf (vi, "%t\n", &buf); 
 
// Display the result 
UpdateData (TRUE);   
m_receive = buf; 
UpdateData (FALSE); 
viClose (vi); 
viClose (defaultRM);
 
 
9.  Save, compile and run the project and the exe file can obtained. When the oscilloscope is correctly 
connected to the PC, you can select the command *IDN? and click Send and Read to display the 
return result of the oscilloscope.