Error during Simulink Code Code Generation - Target function library "ANSI_C" is missing or does not contain a valid TFL Table
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am trying to use code generation on a fairly simple model but for some reason the Simulink on my work computer isn't able to generate it and outputs the error message above:
Target function library "ANSI_C" is missing or does not contain a valid TFL Table
My home computer is able to do so but my work computer is not. I am using MATLAB 2011b. I used mex -setup and it is using a a built in compiler lcc-win32 v2.4.1. Is it a problem with my config parameter? Am I missing compilers? Should I add another compiler?
1 commentaire
Monika Jaskolka
le 15 Déc 2015
Modifié(e) : Monika Jaskolka
le 3 Nov 2017
If you are using an older version of Matlab (R2012b or earlier), there are likely some .mat file(s) added to your Matlab path which are overriding the Target Function Libraries (TFLs) needed for code generation. Reset your Matlab path to its default for a quick fix. Otherwise fix or remove from the path the custom .mat file(s) which are causing the issue. To find out the names of the needed TFLs for code generation, go to Simulink Preferences > Configuration Defaults > Code Generation > Interface and hover over the Target Function Library you are using in the drop down menu. A tooltip will appear with the TFL names. Make sure you have no other files in your path which are of the same name that aren't supposed to be there.
Run this example to check that code generation works for a simple model: http://www.mathworks.com/help/rtw/ug/generating-code-using-simulink-coder.html
Réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!