Need help with displaying the message correctly in the pole display

Posted by SA on Stack Overflow See other posts from Stack Overflow or by SA
Published on 2010-04-28T06:00:00Z Indexed on 2010/04/28 6:03 UTC
Read the original article Hit count: 290

Filed under:
|
|

Hi,

I am using an HP RS232 pole display with the following setting:

  • Char type: USA/Europe (default)
  • Command mode: EPSON (default) Baud
  • rate: 9600, n , 8, 1 (default?)
  • Passthru None (Default)

Here's the code

using System.IO.Ports;

private SerialPort port;
port = new SerialPort("COM2", 9600, Parity.None, 8, StopBits.One);
port.Handshake = Handshake.None;

Port.WriteLine("Welocome to something something");

It has 2 lines consisting of 20 characters each with a total of 40 characters. I have no control how and where the characters get displayed. I have set it to accept ASCII char set and so I am able to type as is visble in the Writeline message

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET