Troubleshooting
Problem
DDS Tutorial: SubscriberPkg_WaitingSet::MySubscriber_Synchronous::on_data_available() is not reacting to published topics in IBM Rational Rhapsody
Symptom
Following the tutorial up to "Lesson 16: Run the application", the subscriber process is not reacting to any published topics. When debugging the application the Subscriber event "on_data_available" is not being triggered.
Resolving The Problem
This part of the tutorial requires a manual listening loop to be coded in a
SubscriberPkg_WaitingSet::MySubscriber_Synchronous::dataReadingLoop() function. Check Step 7 of "Lesson 13: Create ddsDiagram for waitset scenario" to ensure you have added the code to the function:
DDS::ConditionSeq* conditionList = new DDS::ConditionSeq();
DDS::Duration_t wait_timeout = {10,0};
DDS::ReturnCode_t result;
while (true) {
result = itsMyWaitSet.wait(*conditionList, wait_timeout);
on_data_available();
}
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg22002008