Keysight Signal Generators Programming Guide 299
 Creating and Downloading Waveform Files
Programming Examples
% Copyright 2009 Keysight Technologies Inc.
%
% Play the waveform in the Signal Generator
%
% INPUT PARAMETERS:
%   tcpipAddress - '141.121.148.188' Whatever works for your signal Generator!
%   name         - Waveform name - 21 characters max
%
% EXAMPLE:
%   name = 'My_Test';                       % Waveform name
%   tcpipAddress = '141.121.151.129';       % Signal Generator IP Address
%   PlayWaveform( tcpipAddress,  name );    % play the waveform
    playCmd = [':RAD:ARB:WAV "WFM1:' name '"']; 
    t = tcpip(tcpipAddress, 5025);
 
    fopen(t);
    fprintf(t,'%s\n',playCmd);
    fprintf(t,'syst:err?');
    fgets(t)
    fclose(t);