Timothy,
Ok. Unfortunately, the onboard hardware does not currently have any good way of "pattern matching" serial data on the fly. This has, however, been a requested feature and we can hope that it will one day be available. In the meantime, I can see two options:
1. Do the matching in software. You can look for a pattern in software and programmatically decide what to do once it's recognized.
2. Use a deserializer to convert the serial data into parallel data and then pattern match across several lines. The obvious drawback would be that you would require multiple digital lines to read one stream of data.
I know this probably wasn't quite what you were hoping for! I would definetely recommend making a
product suggestion as our developers take these very seriously.
Garrett H
National Instruments