Code covered by the BSD License  

Highlights from
Taking a screenshot of an Agilent signal analyzer over a TCPIP connection

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 1.73 KB File ID: #30791
image thumbnail

Taking a screenshot of an Agilent signal analyzer over a TCPIP connection

by Vinod Cherian

 

17 Mar 2011

Function to connect to an Agilent signal analyzer, capture the screenshot and transfer it to MATLAB.

| Watch this File

File Information
Description

This example uses MATLAB to capture the image on the screen of an Agilent signal analyzer and transfer it to the local PC. The example uses the TCPIP address of the instrument to connect and control the instrument using SCPI commands. For more information on the SCPI commands used to control the instrument, refer to your instrument's programmer's guide.

To execute this function, download the file to a folder on your MATLAB path and type 'saveScreenshot('127.0.0.1','myScreenshot.png')' at the MATLAB command prompt.

Note: Change the TCPIP address to the network address of the instrument.

To view the image, type 'im = imread('myScreenshot.png'); image(im);' at the MATLAB prompt.

This MATLAB example has been tested using an Agilent MXA signal analyzer but should work on all X-series analyzers and the PSA.

To learn more about using or purchasing MATLAB with Agilent signal and spectrum analyzers, visit:
http://www.agilent.com/find/n6171a

To request your free trial of MATLAB and/or Instrument Control Toolbox, visit http://www.mathworks.com/agilent/instrument/tryit.html

Required Products Instrument Control Toolbox
MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
mxa Vinod Cherian 13 Sep 2011 14:55:17
pxa Vinod Cherian 13 Sep 2011 14:55:17
exa Vinod Cherian 13 Sep 2011 14:55:17
cxa Vinod Cherian 13 Sep 2011 14:55:17
signal analyzer Vinod Cherian 13 Sep 2011 14:55:17
spectrum analyzer Vinod Cherian 13 Sep 2011 14:55:17
screen capture Vinod Cherian 13 Sep 2011 14:55:17

Contact us at files@mathworks.com