47Program SamplesN9060A Spectrum Analyzer Mode Programing SamplesRetrieve Screen ImagesRetrieve Trace DataLabVIEWThis sample is not available on the X-Series Documentation DVD. You can download the zip file containing the samplefrom http://www.keysight.com/find/sa_programmingScreen CaptureMATLABThese samples are not available on the X-Series Documentation DVD. You can download them fromhttp://www.keysight.com/find/sa_programmingFunction Transfer Screen Images from the instrumentDescription This example demonstrates how to:1. Store the current screen image in instrument memory as “D:\mxascr.PNG”2. Transfer the memory image file via GPIB3. Store the transferred image on the computer, in a user-specified directory, as “capture.gif”4. Delete the instrument memory file "D:\mxascr.PNG"Language Keysight VEE ProFile name mxa_screencapture.veeFunction Transfer trace data from the instrument.Description For each available data format (INTeger,32, REAL,32, REAL,64, and ASCii), the program does the following:1. Sets the Trace data format2. Sets the instrument to Single Sweep3. Initiates a sweep4. Reads the trace data and plots it graphically (using the default value of 1001 trace points)For more information about data formats, see :FORMat:DATA in the "Programming the Analyzer" chapter of any X-Series Helpfile or Users & Programmers Reference PDF.Language Keysight VEE ProFile name transfertrace.veeFunction Transfer Screen Images from the instrumentDescription The program retrieves screen capture data from the instrument via GPIB, then writes the contents of the binary block to a file,removing the header information before writing it. It uses the VISA protocol to communicate with the instrument.Language /DriverLabVIEW/ VISAFile name MXA Screen Capture via GPIB.llb