public bool UpdateWindow(int window, String data) { int result = CP5200.CP5200_RS232_SendText(1, window, Marshal.StringToHGlobalAnsi(data), 0xFF, 8, 3, 0, 3, 0); return(result >= 0); }
public CP5200Andon(string port, int baud, int timeout) { _port = port; CP5200.CP5200_RS232_InitEx(Marshal.StringToHGlobalAnsi(_port), baud, timeout); }