LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read a value in real time

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.

0 Kudos
Message 1 of 2
(3,514 Views)

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).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(3,459 Views)