Generating Sine, Triangle, and Square Waves
45
Generating Standard Waveforms with the HP E1340A
This program outputs a Sine Wave at 1 kHz and 5 V output level. The
commands are:
1. Reset the AFG -
*RST
The
*RST
command aborts any waveform output and selects the
sinusoid function.
2. Set the Waveform Frequency -
[SOURce:]FREQuency[:FIXed] <
This command specifies the waveform frequency. Refer to Appendix
B for the frequency limits.
3. Select the Function -
[SOURce:]FUNCtion[:SHAPe] SINusoid
This command selects the SINusoid function. (Although
automatically selects this function, it is selected here for good
programming practice.) For the Triangle and Square Wave functions,
use the
and
TRIangle
.
SINusoid
4. Set the Amplitude -
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <
This command specifies the amplitude. Refer to the section called
" Selecting the Amplitude Levels and Output Units" on page 50 for
more information.
5. Initiate the Waveform -
INITiate[:IMMediate]
This command generates an immediate output with the arm source
set to
. Refer to Chapter 5 for triggering information.
IMMediate
frequency
>
parameters, respectively, instead of
SQUare
*RST
amplitude
>
Chapter 2