08-13-2019 01:11 PM
Hello Supporters,
i got a question. I have to get the plot from the network analyzer (HP8720B) with the Tm-tool of Matlab. The Computer is connected with GPIB to the Network Analyzer and the Network analyzer can be controlled with commands. Does anyone know a command which shows me the plot from the network analyzer or the x and y values in the matlab program?
Thx
08-13-2019 02:29 PM
There's no way to do a screen grab of the display on an old instrument like that.
You'll have to send SCPI commands (":MEAS:OSC:TRAC?\r\n"), then read back the X-Y data. Save that data or rebuild the plot for display on PC and save a PNG/JPG image.
Craig
08-13-2019 03:15 PM
Hey Craig,
thank you for your help. My Situation looks exactly like the image. In here i need another command to get the xy values, because the command (":MEASSC:TRAC?\r\n") doesn't work. I hope u can help me out with this?
08-13-2019 05:15 PM
I've never used that tool and have little experience with Matlab in general.
But the SCPI command I suggested was ":MEAS:OSC:TRAC?\r\n", without quotes. Not sure how you feed it into the tool and get it to read data. Also you need to have setup and done a measurement before this will work.
Hope that helps.
Craig
08-13-2019 06:44 PM
So you use for the SCPI Command the matlab skript (no tool)? Or where i have to write the SCPI Command ?
Thx for ur reply 🙂
08-15-2019 08:40 AM
Like I said, I'm not a Matlab user, so I have no clue about that part. But there are tutorials and examples out there of communicating with instruments in matlab. Here's one - https://www.mathworks.com/matlabcentral/fileexchange/28887-capturing-a-waveform-from-an-agilent-osci...