simulinkからc言語
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
なぜこうなるのでしょうか
エラー: mex
In file included from C:\Users\TK\Desktop\予約\untitled_grt_rtw\untitled.c:17:0:
C:\Users\Desktop\test\untitled_grt_rtw\untitled.h:29:24: fatal error:
rt_logging.h: No such file or directory
#include "rt_logging.h"
simulinkブロックをcコードにして、mex 'test.c'をしました。
0 commentaires
Réponse acceptée
Shoumei
le 2 Oct 2019
こちらに関連した情報があります。
rt_logging.hはTo Workspaceブロックの機能でデータ保存するのに必要なヘッダと思われます。
<matlabroot>rtw\c\src
に保存されていますので、このディレクトリをincludeパスに設定してみて下さい。
そもそも、Simulinkから生成したCコードをわざわざMEX化するというのは、何を行いたいのでしょうか?
SimulinkモデルからExeを生成したり、サブシステムから実行ファイル(S-Function)を生成することはできます。
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur コード生成 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!