Hi.
You could try this. It should read all the data on COM3 and return the values.
Thereafter it is a simple case of checking for the ">" character.
Unfortunately without any further information i cannot provide a more accurate solution.
static bool WaitForData(int NbDataToWait, int Timeout)
{
bool Result = false;
int TimeWaited = 0;
System.IO.Ports.SerialPort SPort = new System.IO.Ports.SerialPort();
SPort.PortName = "COM3";
SPort.Open();
byte[] MyResult = new byte[SPort.BytesToRead];
SPort.Read(MyResult, 0, SPort.BytesToRead);
while (TimeWaited < Timeout && SPort.BytesToRead < NbDataToWait)
{
for (int i = 0; i < MyResult.Length; i++)
{
if (MyResult[i].ToString() == ">")
{
Result = true;
}
}
TimeWaited++;
}
return Result;
}