This file can be utilised to get a screen shot from the oscilloscope.
The general form is
address is the gpib address of the oscilloscope. The program should work for all the oscilloscopes supporting SCPI language. The program has been tested for TEKTRONIX TDS2004 oscilloscope. The attached .zip file has snap_scope.m,msgbox1.m,gpibclose.m and one .bmp file that shows the wavwform captured by the snap_scope function.