Programming Examples 5
Keysight Models 6811C, 6812C, and 6813C Programming Guide 235
Coupled commands
This section describes how to avoid programming errors that may be caused
because of the error checking done for coupled commands.
VOLTage:LEVel, VOLTage:OFFSet, and FUNCtion:SHAPe
When using these commands, assume the present state of the ac source has AC
amplitude set to 240 volts rms and DC offset set to 0, and a new state is desired
with AC amplitude of 0 and DC offset of 300 volts. If the commands
VOLTage:OFFSet 300
VOLTage 0
are sent individually, an error will be generated because the first command
requests an output state that exceeds the peak voltage capability. The error can
be avoided by reversing the order in which the commands are sent.
Another way to avoid this type of error with coupled commands is to give the
commands together as part of one terminated message as in
VOLTage:OFFSet 300;:VOLTage 0
When coupled commands are sent this way, the couplings are deferred and
resolved when the newline terminator is received.
Other commands that are coupled to the VOLTage, VOLTage:OFFSet, and SHAPe
commands are the output transient commands that control step, pulse and list
generation. When an output transient is initiated (ready to receive a trigger), the
error checking that takes place for maximum peak output voltage includes any
combination of voltage, voltage offset, or function shape that can occur during
the transient.