User`s manual

Initiating Waveforms
After the AFG has been configured to output the desired waveform, the
AFG is set to the Wait-for-Arm state with the command:
INITiate[:IMMediate]
INITiate
is an uncoupled command and is generally the last command
executed before a waveform is output:
SUB Sine_wave
Sine_wave: !Subprogram which outputs a sine wave
COM @Afg
OUTPUT @Afg;"SOUR:FREQ1:FIX 1E3;"; !frequency
OUTPUT @Afg;":SOUR:FUNC:SHAP SIN;"; !function
OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 5 V" !amplitude
OUTPUT @Afg;"INIT:IMM" !wait-for-arm state
SUBEND
If INITiate[:IMMediate] is executed when the AFG is not in the Idle state,
Error -213, "Init ignored" is generated.
Arming the AFG
In order for the AFG to accept trigger signals which output the amplitude
points of the waveform, the AFG must be armed. The information in this
section covers the commands and programming sequence used to arm the
AFG for fixed frequency waveform generation.
Arming Commands The commands which arm the AFG allow you to specify the following:
the arm source
the slope of an external arm signal
the number of arms per INITiate[:IMMediate] command
the number of waveform cycles per arm
The arming commands include:
ARM
[:STARt | SEQuence[1]]
[:LAYer[1]]
:COUNt <
number>
:LAYer2
:COUNt <
number>
[:IMMediate]
:SLOPe <
edge>
:SOURce <
source>
Chapter 5 Arming and Triggering 165