Processor-in-the-loop

2 ビュー (過去 30 日間)
nour ouzeri
nour ouzeri 2025 年 4 月 8 日
コメント済み: nour ouzeri 2025 年 4 月 23 日
I am experiencing issues executing a Processor-in-the-Loop (PIL) simulation in Simulink for a model that incorporates Simscape blocks. Despite following standard procedures for PIL setup, the simulation does not run as expected. Are there specific configurations or considerations for integrating PIL with Simscape models that could resolve this problem?
Error:The selected system expresses connection ports. Subsystem based code generation is not supported for portions of physical models. In order to generate code, the physical model must exist entirely within a subsystem.

採用された回答

praguna manvi
praguna manvi 2025 年 4 月 15 日
The following documentation link details some of the limitations of the code generation path for Simscape models used in PIL, which states that all blocks belonging to a given physical network must be placed in the same nonvirtual subsystem. For troubleshooting this issue, you can refer to various other limitations, such as the one mentioned above, here:
Additionally, for more information on how Simscape code generation differs from Simulink, refer to the following link:
  1 件のコメント
nour ouzeri
nour ouzeri 2025 年 4 月 23 日
Can you give me an example that shows a plant that contains simscape blocs and then a PIL verification mode is executed?

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by