File Exchange

image thumbnail

Capture a Screenshot of an Agilent X-Series Signal Analyzer and Transfer it to MATLAB(R)

version (2.17 KB) by Adarsh Narasimhamurthy
MATLAB(R) example to save a screenshot of an Agilent X-Series Signal Analyzer using VISA interface.


Updated 01 Sep 2016

View License

MATLAB(R) is a software environment and programming language with over 1,000,000 users. MATLAB extends the functionality of Agilent signal analyzers by enabling you to analyze and visualize live or acquired signals, make application-specific measurements, create and apply your own filters and equalization methods, and automate tests.
This example shows how you can use MATLAB and Instrument Control Toolbox(TM) software to grab a screenshot on the instrument display. Note that this example does not change the settings of the X-Series Signal Analyzer. 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 ‘TransferScreenShot’ in the MATLAB command window. NOTE: Remember to change the VISA resource string in the TransferScreenShot.m file to the VISA address of your instrument.

This MATLAB example should work on most Agilent X-Series Signal Analyzers. It has been tested on an Agilent CXA and PXA signal analyzer. If any commands produce an error with your instrument model or firmware revision, please refer to your instrument's programmer's manual for the complete list of SCPI commands and make the appropriate changes.

To learn more about using or purchasing MATLAB(R) with Agilent Signal Analyzers, visit:

To request your free trial of MATLAB(R) and/or Instrument Control Toolbox(TM), visit

Cite As

Adarsh Narasimhamurthy (2019). Capture a Screenshot of an Agilent X-Series Signal Analyzer and Transfer it to MATLAB(R) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)


Updated license

Added trademarks as required and changed the copyright format in the MATLAB file.

Added a screenshot, and fixed a typo.

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux