5 Programming Examples
240 Keysight Models 6811C, 6812C, and 6813C Programming Guide
Example
The following example programs a voltage dropout for two cycles of a 120 volt,
60 Hz output. The dropout begins at the positive peak of the output voltage
waveform (90 degrees phase) and is triggered by GPIB bus trigger.
Step 5 Initiate the transient trigger system to enable it to receive a trigger. To
enable the trigger system for one transient event use:
INITiate:IMMediate:SEQuence1
To enable the transient system indefinitely use:
INITiate:CONTinuous:SEQuence1 ON
Step 6 Trigger the transient. This is described in detail under “Triggering
Output Changes” on page 244.
*RST Begin at power-on state
VOLT 120 Set initial output voltage (immediate-level)
FREQ 60 Set initial output frequency
OUTP ON Enable the output
VOLT:MODE PULS Enable output to generate pulses when triggered
VOLT:TRIG 0 Set the voltage dropout (triggered level)
PULS:WIDT .03333 Set pulse width for 2 periods
TRIG:SOUR BUS Respond to GPIB bus triggers
TRIG:SYNC:SOUR PHAS Synchronize triggers to internal phase reference
TRIG:SYNC:PHAS 90 Sets internal phase reference point to 90 degrees
INIT:SEQ1 Set to Wait-for-trigger state
<device_trigger> Send the GPIB bus trigger