RIGOL DS1000B User Manual

Page 139

Advertising
background image

Programming Examples

RIGOL

Programming Guide for DS1000B Series

3-7

// send the receiving commands

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 results

UpdateData (TRUE);

m_receive = buf;

UpdateData (FALSE);

viClose (vi);

viClose (defaultRM);


9. Save, build and run the project, you will get an EXE file. When the oscilloscope

has been successfully connected with PC, choose a command such as *IDN?
and click “Send and Read”, the oscilloscope will return the result.

Advertising