I was wondering if I might get some help in debugging some timing issues for my serial data recording. Currently I am trying to create a loop that records data from a meter that outputs a comma-delimited string every 5 seconds. I have attached the VI that I am currently trying to debug.
The problem I am facing now is that sometimes I am not catching the correct string. It is catching either the tail end of a previous print, and then the read buffer is never cleared, so the data needed array cells 5, and 11 are not correct.
I was thinking that somehow I could simply wait on the data to arrive, do the reading etc, then wait 5 sec for the next bit of data -> or simply wait for the next complete string. If anyone has any suggestions please let me know, and code examples would be great.
Please let me know if you have any questions.
Thanks