Hi Gagan,
Although there may be commands to read back the data, it looks as though you want to take a screen capture of the waveform and save it as an image file on your PC (jpg, pcx, bmp). Is that correct?
If that is what you want to achieve, there may be a solution for you. I had to do this using a R & S spectrum analyzer.. It was... let's say an interesting experience. However...
For instance, if you simply transfer the data over to the PC and use LV to re-create the waveform, you do not have an image file to work with. ALthough I have not created an image file from a displayed waveform, there may be ways of doing this.. If it is the case, then it may be a simple approach..
I am not familiar with the Anritsu Optical S.A. However, there should be capabilities to "save" screen captures to a file in a bitmap or other image format(s). If so, that is your starting point. You first save the image to a temporary location and tranfer that file over GPIB.
A few years ago, there was no easy way of doing this with R&S, but not impossible. Today they have a special sw available for download on their site. Find out if Anritsu has this type of sw. If so, you may be able to script it.
If what I am describing is what you are looking for, I can "dig up" my old code and describe how I did this. It was a few years ago & I can't remember the complete steps.
Don't give up.. When there's a will, there's a way.
-JLV-
😄