Please enable JavaScript to view this site.

 Network Analyzers using S2VNA software

By default, the data from the Analyzer is transmitted in text form. The VISA library has built-in facilities for receiving an array of data from the Analyzer. The example assumes that the size of the array is sufficient to receive a number of elements equal to twice the number of points.

Example of receiving a data array in text format:

double data[NOP * 2];

ViUInt32 retCount;

...

retCount = sizeof(data) / sizeof(double);

viQueryf(instr, "CALC:DATA:SDAT?\n", "%,#lf", &retCount, data);

// retCount now contains the actual number of elements

 

Rev.:  24.1