7-24 Wave Functions (6221 Only) Model 6220/6221 Reference Manual
Return to Section 7 topics
Programming ramp waveforms
1. Restore defaults with this command:
*RST
2. Configure the waveform.
Examples – The following commands configure a 50kHz ramp wave with
an amplitude of 5mA, 0mA offset, 25% duty cycle, 90° phase marker, and
15 second duration:
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 RAMP ‘ Select ramp wave.
SOUR:WAVE:FREQ 5e4 ‘ Set frequency to 50kHz.
SOUR:WAVE:AMPL 5e-3 ‘ Set amplitude to 5mA.
SOUR:WAVE:OFFS 0 ‘ Set offset to 0mA.
SOUR:WAVE:DCYC 25 ‘ Set duty cycle to 25%.
SOUR:WAVE:PMAR:STAT ON ‘ Turn on phase marker.
SOUR:WAVE:PMAR 90 ‘ Set phase marker to 90°.
SOUR:WAVE:PMAR:OLIN 1 Use line 1 for phase marker.
SOUR:WAVE:DUR:TIME 15 15 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.
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176 - TestEquipmentDepot.com