Specifications
User Manual 301/302 
generator is programmed to output a sine waveform, the APPL? 
Command returns: "1e+6, 2, 0 , 0. 
Example 2 
The following example programs the Model 301/302 using the APPLy 
command. This example turns on the main output, generates a square 
waveform, programs frequency to 2 MHz, programs amplitude to 1 V 
and offset to 1 V. It also changes the square wave duty cycle 
parameter to 25%. 
/* Reset the Model 301/302 to its default condition as listed in Table 3-
1. */ 
:RESet; 
/* Change the output waveform to square, frequency to 2 MHz, 
amplitude to 1 V, offset to 1 V and duty cycle to 25%. Note that there 
is no need to use the FUNC:MODE command because the default 
value after RESet is FIXed. */ 
:APPLy:SQUare 2e6,1,1,25 
/* Turn the main output on. */ 
:OUTPut ON 
/*Turn the SYNC output on, if required. */ 
:OUTPut:SYNC ON 
If the above commands are executed correctly, a square waveform 
will be seen on your oscilloscope. 
Selecting the 
Active Channel
On power up, the instrument defaults to channel A. That means that 
each command sent to the generator affects channel A parameters. If 
you want to send commands to the other channel, you must switch the 
input to the other channel. Proceeding channel selection, all 
commands will affect the selected channel only. Use the following 
command to select the channel you want to program: 
INSTrument:SELect {1 | 2} 
When “1” is selected, commands will control parameters that are 
unique for the channel A output. Selecting “2”, modifies the control to 
channel B parameter. The default option is “1”. Parameters that are 
common to both channels may be programmed from either path. 
Configuring the Instrument 
25 










