Simulink上でexeファイルを利用したい
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kento SHIRAKATA
le 19 Déc 2019
Réponse apportée : Toshinobu Shintai
le 20 Déc 2019
タイトルどおりです.
mファイルでは,
system('aaa.exe >> bbb.txt')
といった形でexeファイルが実行できますが,simulinkではsystemはコード生成でサポートされていないとエラーが出ます.
なにか方法はありませんか?
0 commentaires
Réponse acceptée
Toshinobu Shintai
le 20 Déc 2019
MATLAB Function内で「system」というコマンドをコード生成対象から除外することで実行できるようになります。
以下のようにcoder.extrinsicを記述すると、除外することができます。
function y = fcn(u)
coder.extrinsic('system')
system('tree');
y = u;
end
0 commentaires
Plus de réponses (0)
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!