R2024b Simulink error: Cannot activate configuration set

21 次查看(过去 30 天)
Hello everyone,
I am facing an issue while running a simulation of a model. This model was developed by my colleague, and I am accessing it using GIT. At one point during development, my colleague attempted to create a Custom Target IDE for Code Generation (following this manual: Create Custom Target IDE for Code Generation). However, he later switched to KW-Software MULTIPROG 5.0 and deleted all the files associated with the Custom Target IDE. Now, when I try to run the simulation, this error appears:
Error: Cannot activate configuration set '_TmpModelReferencing'. Caused by: Unrecognized field name "myplcopen".
I have searched through the entire model, Configuration Parameters, Referenced Models and everywhere else I can think of, but I haven't found any reference to the field name "myplcopen" besides in the error message itself.
It might be worth mentioning that my colleague runs the simulation of the model withou any issues.
Please let me know your suggestions.

回答(1 个)

Meet
Meet 2025-6-23
编辑:Meet 2025-6-23
Hi Simon,
To resolve the 'Unrecognized field name "myplcopen"' error, you likely need to remove residual PLC Coder custom target settings left over from the deleted custom IDE and replace them with a supported target. The following troubleshooting steps (assuming your colleague deleted files but left config settings behind) may help restore the model’s config set to a clean state.
I hope this helps resolve the issue!!
  1 个评论
Simon
Simon 2025-6-25
Hello Meet,
Fisrt of all, thak you for your answer.
I have tried to change config settings and set it to a different IDEs. However, nothing worked.I have tried to search for "myplcopen" everywhere with no success. Eventually, I downloaded the custom IDE from git and now it workes.
It is quite strange because I don't actually use the custom IDE for PLC code generation. However, apparently, it needs to be present in the path anyway.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink PLC Coder 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by