ICP DAS USA MP-8 43 Series Function Reference page 106

Hide thumbs Also See for MP-8 43 Series:
Table of Contents

Advertisement

Return Value:
0:
NO_ERROR
Others:
Error code, please refer to "Appendix A Error Code".
Example:
unsigned char
m_ComPort=3;
DWORD m_baudrate=9600;
char
m_databit=8;
char
m_parity=0;
char
m_stopbit=0;
char
m_szSend[100];
char
m_szReceive[100];
long
RET;
RET =Open_Com(m_ComPort, m_baudrate, m_databit, m_parity, m_stopbit);
RET =Set_FlowControl(m_ComPort, 3, 1);
RET =Close_Com(m_ComPort);
Remark:
Software flow control:
Use XOFF and XON characters to control the transmission and reception of data.
Hareware flow control:
Use control lines of the serial cable to control whether sending or receiving is enabled.
http://www.icpdas.com
//Com_port of PAC
MP-8x43 Function Reference V 1.0
106 

Advertisement

Table of Contents
loading

Table of Contents