Keysight E4428C ESG RF Programming Manual page 145

Signal generators
Table of Contents

Advertisement

basename = argv[0];
while ( ( chr = getopt(argc,argv,"qune")) != EOF )
switch (chr)
{
case 'q':
case 'n':
case 'e':
case 'u':
case '?':
}
/* now look for hostname and optional <command>*/
if (optind < argc)
{
destination = argv[optind++] ;
strcpy(command, "");
if (optind < argc)
{
while (optind < argc) {
/* <hostname> <command> provided; only one command string */
strcat(command, argv[optind++]);
if (optind < argc) {
strcat(command, " ");
} else {
strcat(command, "\n");
}
}
}
else
{
/*Only <hostname> provided; input on <stdin> */
strcpy(command, "");
if (optind > argc)
{
usage(basename);
exit(1);
}
}
}
else
Keysight Signal Generators Programming Guide
quiet = 1; break;
number = 1; break ;
show_errs = 1; break ;
usage(basename); exit(1) ;
Programming Examples
LAN Programming Interface Examples
137

Advertisement

Table of Contents
loading

Table of Contents