RIGOL DS1000D User Manual
Page 110
RIGOL
Programming Guide for DS1000E, DS1000D Series
3-6
//return the character string getting from the oscilloscope
return buffer;
}
6. Dblclick the Button and add the following codes:
unsigned char* readInfo;
CString strInput;
//char* stringTemp;
CString s,strTemp;
m_combox.GetLBText(m_combox.GetCurSel(),strTemp);
strInput = (char *)(LPCTSTR)strTemp;
SendToUSB(strInput);
readInfo = Read_USB();
//display the results
UpdateData (TRUE);
m_receive = readInfo;
UpdateData (FALSE);
7. Save, compile and run the project, you will get a single executable program
about demo. When the oscilloscope has been successfully connected with PC,
select a command “*IDN?” from Combo Box to send, then click the “Send and
Read” button, you will get the query results as the following figure: