Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Test and Measurement Tool (Matlab)

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

0 Kudos
Message 1 of 6
(3,292 Views)

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

0 Kudos
Message 2 of 6
(3,253 Views)

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?

matlab.PNG

0 Kudos
Message 3 of 6
(3,236 Views)

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

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

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 🙂

0 Kudos
Message 5 of 6
(3,204 Views)

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...

0 Kudos
Message 6 of 6
(3,161 Views)