Can a multitopic filter samples compa... PreviousNext
Data Distribution Service (DDS) Forum > DDS Technical Forum >
Message/Author
Next message Peter Mcdonalds  posted on Wednesday, February 15, 2012 - 01:17 pm
The IDL for the constituent topic data types

struct Message {
long id;
long num; /*numbered sample*/
long value;
};
#pragma keylist Message id


I need a multitopic to collect a sample when this and previous exceeds the value 10. For example, if the publisher writes:
[num=1;Value=3][num=2;Value=5][num=3;Value=11][num=4;Value=4][num=5;Value=11][nu m=6;Value=12][num=7;Value=5]

The subscriber would receive only the sample with the value 12 because the previous sample has a value of 11. Is it possible to define a topic expression for multitopic to compare with previous values?

thanks and regards,

Peter
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action: