MATLAB is a software environment and programming language with over 1,000,000 users and is used to generate arbitrary and standard waveforms, configure and control instruments, build automated test applications, and analyze and visualize data from other instruments. MATLAB only supports instrument communication when you use MATLAB with its Instrument Control Toolbox™.
This example uses MATLAB to generate an arbitrary waveform (IQ data), configure the instrument, download the waveform to the Agilent source, and instruct the instrument when to source the waveform.
To execute this example, type ‘Generate_Waveform_Agilent’ in the MATLAB command window. [Note: Change the IP address in the generate_agilent_waveform.m file to the IP address of the signal source.]
This MATLAB example has been tested on an N5182A MXG but should work on other Agilent signal sources including these MXG, ESG, and PSG models: E4428C,E4438C,N5181A,N5182A,N5183A,E8241A,E8244A,E8251A,E8254A,E8247C,E8257C, E8267C,E8257D,E8267D,E8663B,N8211A,N8212A.
To learn more about using MATLAB and Instrument Control Toolbox™ for configuring and controlling instruments, visit:
To request a trial of MATLAB and/or Instrument Control Toolbox, visit http://www.mathworks.com/agilent/instrument/tryit.html
For additional information on using MATLAB with Agilent instruments, including MATLAB examples, demos, drivers, and videos, visit:
Vinod (2023). Generating Waveforms on Agilent MXG, ESG, PSG Signal Sources using MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/24048-generating-waveforms-on-agilent-mxg-esg-psg-signal-sources-using-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- Test and Measurement > Data Acquisition Toolbox > Periodic Waveform Generation >
- Signal Processing > Signal Processing Toolbox > Signal Generation and Preprocessing > Waveform Generation >
- Test and Measurement > Instrument Control Toolbox > Instrument Control Toolbox Supported Hardware > Function Generator >
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Change in copyright.
Update to include VISA and basic interface functionality in example.