Keysight E4428C ESG RF Programming Manual page 147

Signal generators
Table of Contents

Advertisement

{
commandInstrument(instSock, command);
}
}
else
{
/* read a line from <stdin> */
while ( gets(charBuf) != NULL )
{
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,
if (!quiet)
{
fwrite("
Keysight Signal Generators Programming Guide
charBuf + strlen(charBuf) + 1,
INPUT_BUF_SIZE -strlen(charBuf) );
", 2, 1, stdout) ;
Programming Examples
LAN Programming Interface Examples
139

Advertisement

Table of Contents
loading

Table of Contents