146 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
/*****************************************************************/
/* $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;
char *charBuf = (char *) malloc(INPUT_BUF_SIZE);
/*********************************************/
/* open a socket connection to the instrument*/
/*********************************************/
#ifdef WINSOCK
if (init_winsock() != 0) {
exit(1);
}
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...