Appendix E: Mask/Limit Command Sequence Examples
Command Comment
:MASK:TEST:SAVEIMAGE O N Once the test starts, this command will save a .PNG, .BMP or .TIF file (depending upon the
setting of SAVe:IMAGe:FILEFormat) of the waveform from Channel 1 upon mask violation to a
file in the curr
ent working directory.
:MASK:TEST:
STATE 1
This starts the test.
Next, force
a mask violation. Generate a 300KHz sine wave, 0.22 volt Peak to peak, 0.0 offset.
:ACQUIRE:S
TATE?
This query should return 0, indicating that the acquisitions have stopped, because a violation
has taken pl
ace.
:FILESYST
EM:DIR?
This query
should show that a new waveform and a new screen image file have been saved to
the current working directory.
E-4 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual