10-19-2007 12:21 PM
10-19-2007 12:24 PM
I beleive you can right-click on the shared vaiable node and get it to return a timestamp.
Any time the time stamp changes, there should be a new string.
Ben
10-26-2007 09:53 AM
10-27-2007 07:50 PM - edited 10-27-2007 07:50 PM
Perhaps you could create your own cluster datatype for the shared variable where you have a numeric value and the desired data string. Everytime you put in a new string, increment by 1 the number you put in the numeric. That way on the receiving end you could compare the numeric value with the previous numeric value. If they are the same, the discard the new read. If they are different, then you know it is a new value put in the shared variable even if the new value has the exact same ms time stamp as the last. Then you should even have to bother reading the timestamps. Basically you are putting a serial number in your data.
Actually, perhaps even easier, you could also put it in the string itself. If you prepend some digits (say 5) as the serial number. When you read the string, strip off these first 5 characters and compare to the last reading. The remaining characters would be your actual string data.
Message Edited by Ravens Fan on 10-27-2007 08:57 PM