Extra Data using BuiltinQosLibExp::Pattern.LastValueCache

3 posts / 0 new
Last post
Michael Cornwall's picture
Offline
Last seen: 6 years 7 months ago
Joined: 06/07/2017
Posts: 3
Extra Data using BuiltinQosLibExp::Pattern.LastValueCache

I'm doing some testing on LastValueCache.
I want to publish some status information from one endpoint and then have multiple readers get the status when they join and anytime the status updates. I'm only ever interested in the latest status. This seems like the job for Pattern.LastValueCache... but I'm getting extra data that I don't understand.

I modified some sample code for the reader. Basically changed the profile and made it so that it only sends one data point every time I click 'Send'.

Writer

Reader Code - Changed the profileReader Code
With the Reader off, I clicked 'Send' a few times. The last data point sent = 16.Written Data

I then run the reader. The first loop execution gives me the correct value. Then, I get another 'valid' data value = 2. I don't understand why.Read Data

 

 

 

 

fasd

 

Michael Cornwall's picture
Offline
Last seen: 6 years 7 months ago
Joined: 06/07/2017
Posts: 3

Well... It looks like I had something jacked up in my domain. Restarting LabVIEW made the problem go away. I had been testing a lot of stuff. I'm not sure what caused it to get in that state or even what state caused the issue.

Offline
Last seen: 3 months 1 day ago
Joined: 04/23/2014
Posts: 57

Hi Michael,

Nice to hear that everything is working again. If you find a way of reproducing the issue, please let us know, and we will be glad of helping.

Regards,

Angel