eProsima Shapes Demo can't receive messages from Simulink generated Data Writer
1 回表示 (過去 30 日間)
古いコメントを表示
I'm trying DDS Blockset Shapes Demo - MATLAB & Simulink (mathworks.com) together with eProsima Shapes Demo, and I discovered that the eProsima Shapes Demo can't receive messages from the Simulink generated DDS Data Writer. To reproduce this unexpectedness, try the following reproduction steps:
- open the DDS Blockset Shapes Demo - MATLAB & Simulink (mathworks.com) example.
- build the executable by sending Ctrl+B to shapesdemo.slx, and run the generated shapesdemo.exe
- open eProsima Shapes Demo and add one Square Publisher and one Circle Subscriber:
- see there's no Circle displayed on the eProsima Shapes Demo canvas, which is unexpected.
- to inspect the problem, add printing functions to DDS Data Reader & Data Writer in Simulink as shown in the attached ShapesDemoWithConsolePrinting.slx
- generate executable from ShapesDemoWithConsolePrinting.slx and run the corresponding ShapesDemoWithConsolePrinting.exe. See that the Simulink generated program can both receive and send the Square/Circle DDS message, despite the fact that eProsima Shapes Demo is not displaying what Simulink sends in step 4.
Is this unexpectedness a bug? How to work around the problem?
5 件のコメント
Chuguang Pan
2024 年 4 月 12 日
Hi, I run the corresponding ShapesDemoWithConsolePrinting.exe according to your steps, but there is no display in the terminal. Could you give some suggestions ?
回答 (2 件)
Mark McBroom
2022 年 1 月 31 日
In R2021b on a Windows computer, the generated .exe from the attached mdoel works with RTI ShapesDemo on my computer. This model uses eProsima DDS. In order to use this example, rename untitled_sldd.m to untitled.sldd.
Mark McBroom
2022 年 1 月 29 日
This looks like a problem with the eProsima ShapesDemo. You should contact eProsima.
参考
カテゴリ
Help Center および File Exchange で Get Started with DDS Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!