Problem with Mars Mission

5 ビュー (過去 30 日間)
YaCin Manai
YaCin Manai 2018 年 4 月 21 日
編集済み: Walter Roberson 2018 年 5 月 7 日
I have the following message when i try to build model to raspberry pi hardware and aduino due one.
The corresponding 'msfun_realtime_pacer.tlc' file for the MATLAB S-function 'msfun_realtime_pacer' in block 'SimulationModel/Real-Time Pacer' must be located in the current working directory, the MATLAB S-function directory 'C:\Users\YaCin\Documents\MATLAB\CompetRobot\lib\sim_RealTimePacer', or the directory 'C:\Users\YaCin\Documents\MATLAB\CompetRobot\lib\sim_RealTimePacer\tlc_c'
  1 件のコメント
YaCin Manai
YaCin Manai 2018 年 4 月 22 日
any help please

サインインしてコメントする。

回答 (1 件)

Marian Kersting
Marian Kersting 2018 年 5 月 7 日
When gnerating Code of a Model (== Build the model for RPi) then the CodeGenerator needs a TLC File to inline the S-Function. When you have the RealTimePacer From Matlab Exchange, there is a Sentence that is does not support Code Generation. The only thing you can do is to write a TLC file on your own. See More Details in the Mathwork Help with Searching for "TLC generation", "Inlining S-Functions","..."
I did this with another Matlab Exchange Pacing-Script until it worked. Just 2 weeks before R2018a.
BUT since the new Matlab Version R2018a, Simulink comes with a "RealTimePacer" by it's own. This one does the same as the Script. Unfortunately I have not tested myself wether it supports CodeGeneration. Here is the Link to the new Feature: Simulink RealTimePacer
Since in this Link under Limitations, they don't exclude CodeGeneration, I suppose that it works.
Hopefully this helps you :-)

カテゴリ

Help Center および File ExchangeEmbedded Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by