Knowledge Base
Welcome to OPAL-RT’s Knowledge Base
OPAL-RT offers a repository of support information for optimal use of its technology.
Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.
For optimal experience, use a desktop computer.
Reference Number: AA-01585// Views: AA-01585// Created: 2019-02-21 16:25:25// Last Updated: 2019-02-21 16:29:20 Problem & Solution Compilation issue with a "To File" block in a model ProblemWhen a block "To file" from Simulink library is put in a model ( SM, SS or SC ), the model run offline. When we compile the model, I receive a critical Matlab error "Matlab has encountered an internal problem and needs to close" : After clicking on "Attempt to Continue", we receive a message in RT-LAB : ??? Error preparing original model for code separation. How can I solve this? SolutionThis is a known issue linked to Matlab, there is a bug related to the block "To File". This bug has been corrected since Matlab 2015b, on all the versions prior to this version you will have a crash at the build. The solution is to use the version of Matlab 2015b or higher to compile this model. |