// FILE: usb2usbRs232-0_1a.sce
// DATE: 02/25/20 16:02
// AUTH: P.Oh
// DESC: USB/RS232 cables connect to 2 laptops with NULL Modem and Gender changer
//       Thinkpad (COM 12) runs Scilab and writes string over serial port.  Hercules runs on HP
//       and receives string


// s12 = sdefine(Port = "COM12", BaudRate = 4800, Parity = 'none', DataBits = 8, StopBits = 1, OverWrite = %t); 
// sopen(SerialPort = s12, Access = 'r');

h = openserial(10,"4800,n,8,1")
// writeserial(h, "#02"+ascii(13))
writeserial(h, "Hello There"+ascii(13))
// writeserial(h, " 128, 256")
sleep(200)
// buf[] = readserial(h)
// sleep(5000)
closeserial(h)
