Agilent Technologies N5181A/82A Portable Generator User Manual


 
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 231
Creating and Downloading Waveform Files
Programming Examples
SCPI Commands
Use the following commands to download E443xB waveform files into the signal generator.
NOTE To avoid overwriting the current waveform in volatile memory, before downloading files into
volatile memory (WFM1), change the file name or turn off the ARB. For more information, on
manually turning off the ARB, refer to the User’s Guide.
To turn off the ARB remotely, send: :SOURce:RADio:ARB:STATe OFF.
The variables <I waveform block data> and <Q waveform block data> represents data in the
E443xB file format. The string variable <file_name> is the name of the I and Q data file. After
downloading the data, the signal generator associates a file header and marker file with the I/Q data
file.
Programming Examples
NOTE The programming examples contain instrument-specific information. However, users can still
use these programming examples by substituting in the instrument-specific information for
your signal generator. Model specific exceptions for programming use, will be noted at the
top of each programming section.
The programming examples use GPIB or LAN interfaces and are written in the following languages:
•C++ (page 232)
MATLAB (page 255)
•Visual Basic (page 262)
HP Basic (page 267)
See Chapter 2 of this programming guide for information on interfaces and IO libraries.
The example programs are also available on the signal generator Documentation CD-ROM, which
allows you to cut and paste the examples into an editor.
Extraction Method/
Memory Type
Command Syntax Options
SCPI/
volatile memory
:MMEM:DATA "ARBI:<file_name>", <I waveform block data>
:MMEM:DATA "ARBQ:<file_name>", <Q waveform data>
SCPI/
non-volatile memory
:MMEM:DATA "NVARBI:<file_name>", <I waveform block data>
:MMEM:DATA "NVARBQ:<file_name>", <Q waveform block data>