thanks for your reply . Yes .... that should be easily adapted to my needs as the VNA 8714ET also sends only Y values. I calculated all the X values and the x step. But its still complicated for me to understand how to get the data to display. I found that the instrument also generates prn files that are easily imported to excel so thats my fall back. I would love to get the instrument working as the scope example.
here is an example prn file.
The array here provides the y values:
var level = await connection.query("TRAC? CH1FDATA");
var level_array = level.split(',');
here I calculate the step size between the samples on the x axis
var StartF = await connection.query("SENSe1:FREQuency:STARt?"); // read start frequency (5MHz)
var StopF = await connection.query("SENSe1:FREQuency:STOP?"); // read stop frequency (55MHZ)
var PointsF = await connection.query("SENSe1:SWEep:POINts?"); //read number of points (401)
var StepF = ((StopF-StartF)/(PointsF-1)); // calculate the step size 0.125MHz
My graph is not rolling data but should be from 5Mhz to 55Mhz with a 0.125Mhz in between every sample
Y values .txt (3.36 kB - downloaded 63 times.)" alt="" class="bbc_img" />
The issue is what next ?
There is the preamble stuff that is confusing me.
Maciej