Model 6220/6221 Reference Manual
Wave Functions (6221 Only)
7-23
Return to
Programming square waves
1.
Restore defaults with this command:
*RST
2.
Configure the waveform.
Examples
– The following commands configure a 10kHz square wave with
an amplitude of 1mA, 0mA offset, 50% duty cycle, 180° phase marker, and
10 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 SQU
‘ Select square wave.
SOUR:WAVE:FREQ 1e4
‘ Set frequency to 10kHz.
SOUR:WAVE:AMPL 1e-3
‘ Set amplitude to 1mA.
SOUR:WAVE:OFFS 0
‘ Set offset to 0.
SOUR:WAVE:DCYC 50
‘ Set duty cycle to 50%.
SOUR:WAVE:PMAR:STAT ON
‘ Turn on phase marker.
SOUR:WAVE:PMAR 180
‘ Set phase marker to 180°.
SOUR:WAVE:PMAR:OLIN 1
‘ Use line 1 for phase marker.
SOUR:WAVE:DUR:TIME 10
‘ 10 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
Summary of Contents for 6220
Page 16: ...Test Equipment Depot 800 517 8431 99 Washington Street Melrose MA 02176 TestEquipmentDepot com...
Page 24: ...Test Equipment Depot 800 517 8431 99 Washington Street Melrose MA 02176 TestEquipmentDepot com...
Page 453: ...Test Equipment Depot 800 517 8431 99 Washington Street Melrose MA 02176 TestEquipmentDepot com...