Need help with displaying the message correctly in the pole display always starting at the beginning

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:53 UTC
Read the original article Hit count: 197

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 would like it to always begin on line 1 position 1 but as I said earlier how would I be able to do that. The same program if I run again and again it moves a character to the left. 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 rs232