144 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
{
if ( !strlen(charBuf) )
continue ;
if ( *charBuf == '#' || *charBuf == '!' )
continue ;
strcat(charBuf, "\n");
if (!quiet)
{
if (number)
{
char num[10];
sprintf(num,"%d: ",number);
fwrite(num, strlen(num), 1, stdout);
}
fwrite(charBuf, strlen(charBuf), 1, stdout) ;
fflush(stdout);
}
if ( isQuery(charBuf) )
{
long bufBytes;
/* Put the query response into the same buffer as
the*/
/* command string appended after the null
terminator.*/
bufBytes = queryInstrument(instSock, charBuf,
c strlen(charBuf)
+ 1,
INPUT_BUF_SIZE
-strlen(charBuf) );
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...