Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

obtain images from instrument

Solved!
Go to solution

Hello

I need the images of graph in the insrument ,my computer is connected to the instrument by GPIB-USB-HS,can the image file (*.jpg) been obtained by GPIB-USB-HS from instrument.

when writed VISA command "outpdata",instrument sends results in the form of  string data,command "outpplot",instrument converts image of its screen to string data and then sends the string data ,how can i recover the imgage?

0 Kudos
Message 1 of 6
(4,632 Views)
Solution
Accepted by pp02003125

Hi

 

The easiest way (and fastest) is to draw a plot on your pc and  use the data.

Alternatively instruments are able to send a screen as a bitmap display. Most of the time this is slower than just the data and

it gives you no access to the real data for further processing.

 

Maybe there is an instrumentdriver available on IDnet search on it and most of the time this feature is already available in an example

greetings from the Netherlands
0 Kudos
Message 2 of 6
(4,623 Views)

Thanks for your answer !

make a plot using the data is indeed the fast and easiest,but In the teating report it is more objective to use the graph images of sreeen as a third-party.

Maybe virtual printer will be best way.

thanks again!

0 Kudos
Message 3 of 6
(4,615 Views)

When you print screen, do you specify a particular format (bmp, png, etc). If you do, you can probably just save the string read as a file with the correct extension. A 'virtual printer' only makes sense if you are using a command for the scope to send to a printer.

 

I would suggest you do a search for 'scope print screen' to review the numerous posts on the same subject.

 

p.s. When asking a question, it's a good idea to provide the make and model of the instrument. It's important information.

0 Kudos
Message 4 of 6
(4,602 Views)

I use angilent 8753 VNA without operating system .testing results (data [*.txt]and graph image[*.jpg])can been saved to floppy disk.when written VISA command "outpdata" ,The VNA can output the results data in the form of string data through GPIB,but can't output the image by any method.if we write command "outpplot"or "outpprint",it will output string data converted from image of VNA screen ,the string data is used to send to printer or ploter directly .if we imitate printeror ploter on pc to receive the data,the image can been recovered ,does it make sense?

0 Kudos
Message 5 of 6
(4,576 Views)

The first thing I would do is ask Agilent is if there is a command to transfer the image data from the floppy over the GPIB.

 

If you do opt for the virtual printer, you will not end up with a jpg file. You will end up with a file that has been formatted for the printer.

0 Kudos
Message 6 of 6
(4,550 Views)