i am writing a c# programming to receive data through serial port. Data receiving is going fine. But first to enable data flow i have to type "datafrm f1a4" and then press "Enter" key in the hyperterminal. then i have to run the c# program. Can I get this done within the program. I tried as below using following method. but couldn't get it done.Can any one help me. The code is below.
private void SendData()
{
byte[] datafrmf1a4 = new byte[13];
//ASCII characters for "datafrm f1a4" and "Enter"
datafrmf1a4[0] = 100;
datafrmf1a4[0] = 97;
datafrmf1a4[0] = 116;
datafrmf1a4[0] = 97;
datafrmf1a4[0] = 102;
datafrmf1a4[0] = 114;
datafrmf1a4[0] = 109;
datafrmf1a4[0] = 32;
datafrmf1a4[0] = 102;
datafrmf1a4[0] = 49;
datafrmf1a4[0] = 97;
datafrmf1a4[0] = 53;
datafrmf1a4[0] = 13;
string datafrm = Convert.ToString(datafrmf1a4);
comport.Write(datafrm);
}