Rank: 173201 based on 0 downloads (last 30 days) and 0 file submitted
photo

Paul

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Paul View all
Updated File Comments Rating
27 May 2012 Capturing a waveform from an Agilent oscilloscope over a standard VISA interface MATLAB example to capture a waveform from an Agilent oscilloscope and grab a screenshot. Author: Vinod Cherian

One final note for anyone reading this--in order to pull data off from multiple channels, you need to read each channel sequentially (so call WAVEFORM CHAN1 and read out the data, then WAVEFORMCHAN2, u.s.w.)--there's no routines to pull off multiple channels at the same time.

19 May 2012 Capturing a waveform from an Agilent oscilloscope over a standard VISA interface MATLAB example to capture a waveform from an Agilent oscilloscope and grab a screenshot. Author: Vinod Cherian

And I just answered my own question:

For a 3000 series oscilloscope, set ACQUIRE:COUNT to be between 2 and 65536 (1 is not supported). The data also needs to be uint16.

For the screen-capture to work properly, you need to change the line to
fprintf(visaObj,':DISPLAY:DATA? BMP, GRAYSCALE');

19 May 2012 Capturing a waveform from an Agilent oscilloscope over a standard VISA interface MATLAB example to capture a waveform from an Agilent oscilloscope and grab a screenshot. Author: Vinod Cherian

Hello all,

I\m trying to run this code with a 3014A system, and I'm getting a variety of instrument errors (typicaly 113 undefined header, 222 data out of range, 224 Illegal parameter value, 410 query interrupted, 420 query unterminated). It eventually does output a square-wave to figure 1 (I'm using the Demo 2 system with the oscilloscope) but the output is of the wrong sign (I expect a square between 0 and 2.5 V, it goes from -2.7 to 0).

Any advice?
Thank you,
Paul

Contact us