Chapter 4 Programming Instances RIGOL
DL3000 Programming Guide 4-15
strTemp = strTemp + "\n";
stringTemp = (char *)(LPCTSTR)strTemp;
viPrintf (vi,stringTemp);
//read results
viScanf (vi, "%t\n", &buf);
//display the results
UpdateData (TRUE);
m_receive = buf;
UpdateData (FALSE);
viClose (vi);
viClose (defaultRM);
9. Save, compile, and run the project to obtain a single exe file. When the electronic load is successfully
connected to the PC, select "*IDN?" from the Com box. Press Send and Read, and the results of the
load will be returned.