154 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
print $sock "*opc?\n";
my $response = <$sock>;
chomp $response; # Removes newline from response
if ($response ne "1")
{
die "Bad response to '*OPC?' from instrument!\n";
}
# Send identification query
print $sock "*IDN?\n";
$response = <$sock>;
chomp $response;
print "Instrument ID: $response\n";
TCP-IP (LAN) Programming Using Matlab
The examples in this section are meant to be used in one of three ways:
— Using a PSA to directly calculate and load an Equalization filter into the
MXG. (This process can be easily automated.)
1. Set up the PSA to measure the modulation.
2. Turn on the equalization filter.
3. Call loadPsaEqFilterFreq (example 1) in Matlab to read out the
equalization channel response over LAN via SCPI and calculate the
correct equalization filter.
4. Call writeMxgFir (example 4) in Matlab to write out the equalization
filter over LAN via SCPI to the MXG.
— Manual process using the VSA 89600 software to measure the channel
response, calculate the correction equalization filter and load that filter into
the MXG:
1. Setup to measure the modulation.
2. Turn on the equalization filter.
3. View the equalization channel response trace, either “Eq Ch Freq
Resp” or “Eq Impls Resp”.
4. Save the trace as ".mat" file, with the header included.
5. Call loadVsaEqFilter (example 3) in Matlab to read the file and
calculate a correction filter.
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...