Hi palini
thanks for your support now My issue is fixed now. I written the code as below.
Regards
Sheethal
double read1 = 0;
objport.DiscardInBuffer();
byte[] buff = new byte[8];
buff[0] = 1;
string readValue = "";
string[] readValue1 = new string[1];
int readcount = 1;
int offset = 1;
string sWord1 = "", sWord2 = "";
double dResult1 = 0;
double dMulFactor = 0;
double dResult = 0;
objport.Write(buff, offset, readcount);
do
{
}
while (objport.BytesToRead < 2);
byte[] buffer = new byte[objport.ReadBufferSize];
int bytesRead = objport.Read(buffer, 0, 2);
tString = BitConverter.ToString(buffer.ToArray(), 0, 2);
sWord2 = tString.Substring(0, 2);
sWord1 = tString.Substring(3, 2);
int value = Convert.ToInt32(sWord2, 16);