Teledyne SyriXus 65x Installation And Operation Manual page 156

Syringe pumps
Table of Contents

Advertisement

SyriXus Series Pumps Installation and Operation Guide
Section 8 Serial Interface
Example of Visual C++ Program Showing Conversion of Pump Commands to
Sleep(2000);
exit(1);
}
switch(speed)
{
case 19200:
case 38400:
case 57600:
case 115200:
default:
case 9600:
}
dcbSerialParams.ByteSize=8;
dcbSerialParams.StopBits=ONESTOPBIT;
dcbSerialParams.Parity=NOPARITY;
if(!SetCommState(hCom, &dcbSerialParams))
{
//error setting serial port state
printf("Setting Comm port state failed");
Sleep(2000);
exit(1);
}
//timeouts
COMMTIMEOUTS timeouts={0};
timeouts.ReadIntervalTimeout=100;
timeouts.ReadTotalTimeoutConstant=100;
timeouts.ReadTotalTimeoutMultiplier=100;
//timeouts.WriteTotalTimeoutConstant=50;
//timeouts.WriteTotalTimeoutMultiplier=10;
if(!SetCommTimeouts(hCom, &timeouts))
{
//error occureed. Inform user
printf("Setting Comm port timeouts failed");
Sleep(2000);
exit(1);
}
}
printf("\nComm intr installed");
}
int comm_getc ()
{
DWORD dwBytesRead = 0;
EAR99 Technology Subject to Restrictions Contained on the Cover Page
8-14
DASNET Frames (Continued)
dcbSerialParams.BaudRate=CBR_19200;
break;
dcbSerialParams.BaudRate=CBR_38400;
break;
dcbSerialParams.BaudRate=CBR_57600;
break;
dcbSerialParams.BaudRate=CBR_115200;
break;
dcbSerialParams.BaudRate=CBR_9600;
break;

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Syrixus 260xSyrixus 500xSyrixus 500xvSyrixus 1000x

Table of Contents