EasyManua.ls Logo

Keysight Technologies X Series - Page 146

Keysight Technologies X Series
398 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
Loading...
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);
}

Table of Contents

Other manuals for Keysight Technologies X Series

Related product manuals