Anritsu Spectrum Master MS2711D Programming Manual page 131

Fast. accurate, repeatable, portable spectrum analysis
Hide thumbs Also See for Spectrum Master MS2711D:
Table of Contents

Advertisement

default:
break;
}
/* Creating a File to Open a COM Port*/
ComHandle = CreateFile( ComPortNumber,
/* Set up the COM Ports Input and Output Buffer
Syntax -
BOOL–SetupComm(
HANDLE hFile,
DWORD dwInQueue,
DWORD dwOutQueue
);
*/
PortReady = SetupComm(ComHandle, 5000, 5000);
/* Open the existing COM Settings
Syntax -
BOOL–GetCommState(
);
*/
PortReady = GetCommState(ComHandle, &CommSettings);
/*Check to see if it was successful*/
if(!PortReady)
{
CloseHandle(ComHandle);
fclose(fp);
exit(0);
}
/* This is used to update the CommSettings Structure Variables*/
// Setting the Baud Rate
switch (ComBaud)
{
case '1':
break;
case '2':
break;
case '3':
break;
130
CloseHandle(ComHandle);
fclose(fp);
exit(0);
// handle to communications device
// size of input buffer
// size of output buffer
HANDLE hFile,
LPDCB lpDCB
CommSettings.BaudRate = CBR_9600;
CommSettings.BaudRate = CBR_19200;
CommSettings.BaudRate = CBR_38400;
GENERIC_READ | GENERIC_WRITE,
0, // exclusive access
NULL, // no security
OPEN_EXISTING,
0, // no overlapped I/O
NULL); // null template
// handle to communications device
// pointer to device-control block
//
structure
// rate - 9600
// rate - 19200
// rate - 38400

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Spectrum Master MS2711D and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents