[racket] Issue reading bytes from TCP port

2014-09-03 Thread Gilbert Martinez
I'm having issues reading the response from a TCP server. Specifically, any attempt to read the input port does not terminate. I've used port->bytes, read-byte, and read-line. In all cases the effect is the same. I thought that if there were no bytes available on an input port that the read atte

Re: [racket] Beginner: advice COM port I/O

2011-12-31 Thread Gilbert Martinez
-Gil On Fri, Dec 30, 2011 at 7:54 PM, Eli Barzilay wrote: > 20 minutes ago, Gilbert Martinez wrote: > > Thanks for the advice; consistent with your recommendations and those of > Mr. > > Cleis, I will re-implement this using write-bytes rather attempting to > display >

Re: [racket] Beginner: advice COM port I/O

2011-12-30 Thread Gilbert Martinez
Thanks for the advice; consistent with your recommendations and those of Mr. Cleis, I will re-implement this using write-bytes rather attempting to display a string. My working VB code required the carriage-return linefeed character in order to work properly ( .WriteLine("V00" & vbCrLf) ). I'll a

[racket] Beginner: advice COM port I/O

2011-12-30 Thread Gilbert Martinez
I've been experimenting with Racket v5.2 and a GW Instek 8212 meter connected to my PC via COM1 (running WinXP SP3). The meter responds to simple commands (e.g., "V00" terminated with a line feed is read voltage) and I've written simple programs in Python, VB, and even QuickBasic to query the de