Keysight E4428C ESG RF Programming Manual page 135

Signal generators
Table of Contents

Advertisement

fprintf(stderr,"
fprintf(stderr,"
fprintf(stderr,"
fprintf(stderr,"
}
#ifdef WINSOCK
int init_winsock(void)
{
WORD wVersionRequested;
WSADATA wsaData;
int err;
wVersionRequested = MAKEWORD(1, 1);
wVersionRequested = MAKEWORD(2, 0);
err = WSAStartup(wVersionRequested, &wsaData);
if (err != 0) {
/* Tell the user that we couldn't find a useable */
/* winsock.dll.
fprintf(stderr, "Cannot initialize Winsock 1.1.\n");
return -1;
}
return 0;
}
int close_winsock(void)
{
WSACleanup();
return 0;
}
#endif /* WINSOCK */
/***************************************************************************
*
> $Function: openSocket$
*
* $Description:
open a TCP/IP socket connection to the instrument $
Keysight Signal Generators Programming Guide
%s [-nqu] <hostname> < stdin\n", basename);
-n, number output lines\n");
-q, quiet; do NOT echo lines\n");
-e, show messages in error queue when done\n");
*/
Programming Examples
LAN Programming Interface Examples
127

Advertisement

Table of Contents
loading

Table of Contents