EasyManua.ls Logo

Anritsu Site Master S331D - Page 122

Anritsu Site Master S331D
132 pages
Print Icon
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...
NOTE: Without Timeout Settings, Reading the COM Port will not work properly*/
// This gives the Timeout value for each bytes received
timeout.ReadIntervalTimeout = MAXDWORD;
timeout.ReadTotalTimeoutConstant = 0;
timeout.ReadTotalTimeoutMultiplier = 0;
/* Sets the communication timeouts
Syntax -
BOOL SetCommTimeouts(
HANDLE hFile, // handle to comm device
LPCOMMTIMEOUTS lpCommTimeouts /* pointer to comm time-out structure */
);
*/
SetCommTimeouts(ComHandle, &timeout);
if(PortReady)
{
return SUCCESS;
}
else
{
CloseHandle(ComHandle);
fclose(fp);
return FAIL;
exit(0);
}
}
116 Site Master PM

Table of Contents

Related product manuals