R2024b Simulink error: Cannot activate configuration set

5 views (last 30 days)
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.

Answers (1)

Meet
Meet on 23 Jun 2025
Edited: Meet on 23 Jun 2025
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 Comment
Simon
Simon on 25 Jun 2025
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.

Sign in to comment.

Categories

Find more on Simulink PLC Coder in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!