title: Carriage Return issue with SerialPort
body: <p>I'm trying to communicate with a laboratory instrument that accepts a few different commands. The instrument uses just a carriage return to terminate -- no line feed.</p>
  
  <p>When I use RealTerm and set the connection as required, I can send one of the ASCII commands along with a <code>CR</code> character. The instrument provides the correct response.</p>
  
  <p>When using .NET's <code>SerialPort</code> object however, it seems like <code>\r</code> in C# isn't necessarily correct, because whenever I send it, my instrument gives an error code relating to a printer timeout/error (the RS-232 port is considered a "printer" but the manual specifies how to connect to a PC as well).</p>
  
  <p>I have certainly verified that my port's <code>NewLine</code> property is set to <code>\r</code>. Here's a couple things I've tried:</p>
  
  <pre><code>_port.WriteLine(command); // error at the instrument once this executes.
  _port.Write(command + _port.NewLine); // also error.
  _port.Write(command); // executes without error, but next line errors:
  _port.Write(_port.NewLine);
  </code></pre>
  
  <p>Is there some fundamental difference between the <code>CR</code> in RealTerm vs. <code>\r</code> in C#? Or could there be something else coming into play here?</p>