Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

Read S11 data from E5071C via TCP/IP

$
0
0

Sorry for my English. I have a problem here. I am trying to read S11 data(array of double) from E5071C,but it doesn't work.

Here is my code:

// Read ASCII data works fine
_status = viPrintf(_inStr, ":CALC1:DATA:SNP:PORT? 1,2;*WAI\n");
_status = viScanf(_inStr, "%t", szBuf);


// Read binary data doesn't work
ViInt32 cnt = 303;
ViReal64 datas[400] = {0.0};
_status = viPrintf(_inStr, "FORM:DATA REAL,64\n");
_status = viPrintf(_inStr, "CALC1:PAR:SEL S11\n"); 
_status = viPrintf(_inStr, ":CALC1:DATA:SNP:PORT? 1\n");
_status = viScanf(_inStr, "#%Zb", &cnt, datas);

 Anyone give me suggestions, many thanks in advance!


Viewing all articles
Browse latest Browse all 5625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>