Model 6220/6221 User’s Manual Wave Functions (6221 Only) 7-13
Return to Section 7 topics
Programming sine waves
1. Restore defaults with this command:
*RST
2. Configure the waveform.
Examples – The following commands configure a 1kHz sine wave with an
amplitude of 10mA, 1mA offset, and phase marker off:
3. Arm and trigger the waveform, turn on output:
4. To stop generating the waveform and turn the source output off before the
duration elapses, send this command:
SOUR:WAVE:FUNC SIN ‘ Select sine wave.
SOUR:WAVE:FREQ 1e3 ‘ Set frequency to 1kHz.
SOUR:WAVE:AMPL 1e-2 ‘ Set amplitude to 10mA.
SOUR:WAVE:OFFS 1e-3 ‘ Set offset to 1mA.
SOUR:WAVE:PMAR:STAT OFF ‘ Turn off phase marker.
SOUR:WAVE:DUR:TIME 5 ‘ 5 second duration.
SOUR:WAVE:RANG BEST ‘ Select best fixed source range.
SOUR:WAVE:ARM ‘ Arm waveform.
SOUR:WAVE:INIT ‘ Turn on output, trigger waveform.
SOUR:WAVE:ABOR ‘ Stop generating waveform.