EasyManuals Logo

Agilent Technologies n5181a Programming Guide

Agilent Technologies n5181a
366 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #121 background imageLoading...
Page #121 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 111
Programming Examples
LAN Programming Interface Examples
#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 $
*
* $Parameters: $
* (const char *) hostname . . . . Network name of instrument.
* This can be in dotted decimal notation.
* (int) portNumber . . . . . . . The TCP/IP port to talk to.
* Use 5025 for the SCPI port.

Table of Contents

Other manuals for Agilent Technologies n5181a

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies n5181a and is the answer not in the manual?

Agilent Technologies n5181a Specifications

General IconGeneral
BrandAgilent Technologies
Modeln5181a
CategoryPortable Generator
LanguageEnglish

Related product manuals