beautypg.com

Agilent Technologies N5183A MXG User Manual

Page 134

background image

124

Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide

Programming Examples
LAN Programming Interface Examples

{

commandInstrument(instSock, charBuf);

}

if (number) number++;

}

}

if (show_errs) {

showErrors(instSock);

}

#ifdef WINSOCK

closesocket(instSock);

close_winsock();

#else

close(instSock);

#endif /* WINSOCK */

return 0;

}

/* End of lanio.cpp *

/**************************************************************************/

/* $Function: main1$ */

/* $Description: Output a series of SCPI commands to the signal generator */

/* Send query results to stdout. $ */

/* */

/* $Return: (int) . . . non-zero if an error occurs */

/* */

/**************************************************************************/

/* Rename this int main1() function to int main(). Re-compile and the */

/* execute the program */

/**************************************************************************/

int main1()

{

SOCKET instSock;

long bufBytes;

This manual is related to the following products: