Next: How to set throttle limits and intervals Up: Sample Code and "How-to's" Previous: Sample Code and "How-to's"
filter -> setThrottle("text", 4, 20.0, "abcd:xcor:41:b"); // first throttle filter -> setThrottle("text", 1, 10.0, "abcd:xcor:41:b"); // second throttleThe throttles will filter out the exact same messages, but since the limits and interval; for the second throttle are shorter than the first, the timing and throttling of messages will take the behavior of the second throttle and not the first.
filter -> setThrottle("text", 2, 10.0, "abcd:xcor:41:b");will also throttle similar channels for which the value is a substring, like:
abcd:xcor:41:b.val abcd:xcor:41:b.ref abcd:xcor:41:b.conThe best way to avoid this is to append a blank space at the end of the value string, like this:
filter -> setThrottle("text", 2, 10.0, "abcd:xcor:41:b ");This will throttle all messages in which that string appears(followed by a blank space).