Rigol DS7034 User Programming Manual page 259

Mso7000 series; ds7000 series; digital oscilloscope
Hide thumbs Also See for DS7034:
Table of Contents

Advertisement

Chapter 3 Programming Examples
viOpenDefaultRM (&defaultRM);
//Acquire the USB resource of VISA
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 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 oscilloscope is correctly
connected to the PC, enter a command (for example, *IDN?) and click Send and Read to execute the
command. Then, the reading results will be returned.
MSO7000/DS7000 Programming Guide
RIGOL
3-15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds7054Ds7024Ds7014Mso7034Mso7024Mso7014 ... Show all

Table of Contents