Output setted from c-mex is sometime right, sometime null
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all! I stop my simulation with Stop block, setting from C-mex file the respective output to 1 when a condition is verified. If this condition is valid, before to stop, I set a few values in a second output vector that I want to read externally in a M-file. I don't know why, but some times it give me in output the right values, other times it give me a null output! This problem has to do with the ode solver I use (ode45)?
Thanks in advance!
0 件のコメント
採用された回答
Kaustubha Govind
2012 年 8 月 9 日
More likely that there is something wrong with the way your S-function is written. Could you post your mdlOutputs implementation?
8 件のコメント
Kaustubha Govind
2012 年 8 月 13 日
Strange. I'm out of ideas - perhaps you should send your S-function to MathWorks Tech Support so they can investigate it more closely?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!