Avoiding TLC file writing
이전 댓글 표시
Hi everybody, I'm trying to run a simulation of a very simply model containing, at top level, a S-function builder block and a subsystem 'tagada' containing a Level-2 M-File S-function 'msfun2'. When I press 'Start Simulation' it stops the procedure because of this error:
The corresponding 'msfun2.tlc' file for the M S-function 'msfun2' in block 'tagada/Level-2 M-file S-Function1' must be located in the current working directory, the M S-function directory 'H:\OASIS_SMS\simulink\work', or the directory 'H:\OASIS_SMS\simulink\work\tlc_c'.
I would like to run a simulation of my model without writing such a TLC file.
Can anyone tell me why does simulink require a TLC file for my Level-2 M-file S-Function .. Even though i'm not intending to generate code for this model ?
How can i avoid writing a TLC file for simulating my model ?
Thank you all!
댓글 수: 6
Walter Roberson
2012년 9월 10일
I wonder what would happen if you put an empty .tlc file in one of those places?
Kaustubha Govind
2012년 9월 10일
If your model is running in Normal mode, it shouldn't attempt to generate code for your model. Could you see what get_param('modelname', 'SimulationMode') returns?
Jean-Baptiste
2012년 9월 11일
Kaustubha Govind
2012년 9월 11일
Very strange. I presume there are no model reference blocks inside which the S-function is being used? What about if you pull the s-function block into a fresh model and run simulation?
Jean-Baptiste
2012년 9월 11일
Or Hirshfeld
2015년 2월 19일
did you found any solution, i'm having similar problem
답변 (1개)
Kevin
2015년 3월 29일
1 개 추천
The problem may come from the configuration parameters. Configuration parameter => code generation => check which system target file you have configured. If there is something as "embedded coder" on this page, you will need a TLC file.
You're telling you don't want to generate code for embedded solution, then configure the parameter panel accordingly.
Now I have to look for a solution for this exact problem, but when you actually need to generate code... life can be sad :(
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!