Thanks, Eli. I completely misread the documentation and incorrectly assumed that Windows converted LF to CRLF when writing to the port (turns out this is not the case for 'binary mode).<div><br></div><div>I've incorporated the flush-output expression and made a note to get heavy on format string syntax.<br>
<div><br></div><div>-Gil<br><br><div class="gmail_quote">On Fri, Dec 30, 2011 at 7:54 PM, Eli Barzilay <span dir="ltr"><<a href="mailto:eli@barzilay.org">eli@barzilay.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">20 minutes ago, Gilbert Martinez wrote:<br>
> Thanks for the advice; consistent with your recommendations and those of Mr.<br>
> Cleis, I will re-implement this using write-bytes rather attempting to display<br>
> a string.<br>
><br>
> My working VB code required the carriage-return linefeed character in order to<br>
> work properly ( .WriteLine("V00" & vbCrLf) ). I'll attempt various line<br>
> terminations and, failing all else, I'll check the pins with a scopemeter to<br>
> see the characters transmitted and go from there.<br>
<br>
</div>Your original code didn't have a CRLF -- both `displayln' and the "~n"<br>
format strings show only an LF (even though you've used the latter to<br>
show the input). To display CRLF, you need to write that explicitly:<br>
<br>
(fprintf out "V00\r\n")<br>
<br>
Also, it's a good idea to start using (flush-output out) to avoid<br>
surprises in the future.<br>
<br>
And BTW, "\t" is a tab -- you don't need to use `#\tab'...<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:<br>
<a href="http://barzilay.org/" target="_blank">http://barzilay.org/</a> Maze is Life!<br>
</font></span></blockquote></div><br></div></div>