246 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Creating and Downloading Waveform Files
Downloading Waveform Data
16 Send the terminating carriage (\n) as the last byte of the waveform data.
— iwrite() writes the data “\n” to the signal generator (session identifier specified in id).
— The third argument of iwrite(), 1, sends one byte to the signal generator.
— The fourth argument of iwrite(), 1, is the END of file indicator, which the program uses to
terminate the data download.
To verify the waveform data download, see “Loading, Playing, and Verifying a Downloaded
Waveform” on page 247.
Line Code Description—Download the I/Q data