Anritsu Site Master S331D Bedienungsanleitung Seite 122

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 132
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 121
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
Seitenansicht 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 131 132

Kommentare zu diesen Handbüchern

Keine Kommentare