Capturing a waveform from an Agilent oscilloscope over a standard VISA interface

Versione (3,44 KB) da Vinod
MATLAB example to capture a waveform from an Agilent oscilloscope and grab a screenshot.
9,7K download
Aggiornato 1 set 2016

Visualizza la licenza

MATLAB is a software environment and programming language with over 1,000,000 users. MATLAB extends the functionality of Agilent oscilloscopes by enabling you to analyze and visualize live or acquired oscilloscope signals, make application-specific measurements, create and apply your own filters and equalization methods, and automate tests.
This example shows you how you can use MATLAB to control an Agilent oscilloscope, capture a waveform and grab a screenshot on the instrument. The user can customize the code to allow for different segment number of points, sample rates, etc. For more information on the SCPI commands used to control the instrument, refer to your instrument's programmer's guide.
To execute this example, type ‘SCPIScope’ in the MATLAB command window. Note: Change the VISA resource string in the SCPIScope.m file to the VISA address of the instrument, as obtained from Agilent Connection Expert.
This MATLAB example has been tested on an Agilent MSO6104A InfiniiVision oscilloscope but should work on most Agilent InfiniiVision 5000, 6000, and 7000 Series oscilloscopes. With minor modification, based on the SCPI commands available in your instrument’s programmer’s manual, it should work with the Infiniium 9000 and 90000 Series oscilloscopes, or Agilent InfiniiVision 1000 series, 2000-X series, 3000-X series, 4000-X series, etc.
Please refer to your instrument's programmer's manual for the complete list of SCPI commands of your specific instrument model. Modify this example accordingly if your instrument screen displays errors as you step through the code.
To learn more about using or purchasing MATLAB with Agilent oscilloscopes, visit:
To request your free trial of MATLAB and/or Instrument Control Toolbox, visit

Cita come

Vinod (2024). Capturing a waveform from an Agilent oscilloscope over a standard VISA interface (, MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2009a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release

Updated license

minor update

Minor modifications. Tested with Agilent MSO6104A.

Minor update to comments