Hello all

I'd like to get some instruments data by serial port (COM1 - win32)

I make a loopback serial adapter for a testing with the code:

system('mode COM1 9600,N,8,1')
ser <- file("COM1", open='r+')
isOpen(ser)
write('12345', ser)
scan(ser, what=as.character(1), n=1)


So I get the data that I wrote in the port...
But I don't have a more fine control about the serial configuration with
this approach like timeout, handshake etc...

Is there a specific package (library?) for hardware communications?
( For serial port specifically )

Thanks

Cleber

                
_______________________________________________________
Experimente já e veja as novidades.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to