20.01.2015 Views

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Command System RIGOL<br />

Note: when the return format of the waveform data is set to ASCii (refer to<br />

the :WAVeform:FORMat command), the query returns the actual voltage of each<br />

point of the waveform on the screen in scientific notation.<br />

C# Test Program<br />

using System;<br />

using System.Collections.Generic;<br />

using System.Linq;<br />

using System.Text;<br />

using System.Diagnostics;<br />

using System.Threading;<br />

using System.IO;<br />

namespace FalconWavQuery<br />

{<br />

class Program<br />

{<br />

static void Main(string[] args)<br />

{<br />

Int32 viDef = 0;<br />

Int32 viSession = 0;<br />

Int32 s32ReadByte;<br />

if (args.Length < 2)<br />

{<br />

Console.WriteLine( "Invalid Input! FalconWavQuery CHAN1<br />

fileName" );<br />

return;<br />

}<br />

Stopwatch stpWatch = new Stopwatch();<br />

InitVisa( out viDef );<br />

if (ConnectDevice(viDef, out viSession) == true)<br />

{<br />

}<br />

else<br />

{<br />

Console.WriteLine( "Connect fail!" );<br />

return;<br />

<strong>DS2000</strong> <strong>Programming</strong> <strong>Guide</strong> 2-555

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!