Create a program block that just handles your data stream. Don't know whether your frames are fixed length or delimited. If fixed length, just wait for and read that length. If they are delimited, wait for the minimum it could be, then stick a timeout on the STREAMIN a bit more than what the worst case transmission time is on the largest frame. I didn't put any retry code in the error, but I would normally do a DEVCLEAR, bump a count, and jump back to the top stage...no need to exit.