Hi swngiam,
first of all, LV 6.1 does support VISA serial communication, that would allow you to benefit of character-terminated read operations.
If you don't want to rewrite all reads and writes, you can use a vi similar to the attached one, where the program wait for the trigger character and stop reading on receiving it.
Actually the vi sends a command and wait for a CR terminated answer, within a 3 s timeout. Adjust the timeout and the wait interval to tailor your needs.
A further remark: the vi diagram is a real mess. Overlapping/clustering structures is not a good way to get maintainable code. I suggest you to use an event structure, where each button could be managed in an independent way.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021