Error during Simulink Code Code Generation - Target function library "ANSI_C" is missing or does not contain a valid TFL Table

조회 수: 4 (최근 30일)
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
Monika Jaskolka
Monika Jaskolka 2015년 12월 15일
편집: Monika Jaskolka 2017년 11월 3일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by