12-26-2019 04:14 AM
Dear folks,
I have developed this code to read and write a string in real time using UDP protocol.
How it (is supposed to) works?
1. Enter a value in string
2. Press on Read so that the value entered in String gets displayed at String 2.
Issues Faced:
Only the first time, I run the vi, the value is getting displayed or the updated value is getting displayed if I stop the vi and start it again. Kindly help me fix this issue so that the updated value is displayed every time I press on Read button. Herewith, I attach the vi. Thank you in advance.
12-26-2019 06:25 AM
You are actually just reading through all of the backlog. Every 500ms, you are sending a message. You change the value and send a new message when the 500ms is up. But in those 10 seconds, you sent 20 messages. You have to work through all 20 of those messages before you see the new value.
The simple solution is to constantly read (remove the case structure).