Importing Continuous data into Simulink from Matlab Workspace
古いコメントを表示
Does anyone have direction or help on how I can continuously import values from the Matlab workspace into Simulink? They can be in array format or structure. The values are variables and as they are updated, the values in Simulink must update as well??
Thanks
2 件のコメント
Fangjun Jiang
2011 年 3 月 8 日
Can you be specific how the values of the variables are updated?
Daniel Restrepo
2011 年 3 月 8 日
採用された回答
その他の回答 (1 件)
Paulo Silva
2011 年 3 月 8 日
0 投票
Try with the Matlab fcn block, if the variable is just a number you just need to put the name of the variable, if it's something else be careful and insert the proper code in order for the output of the fcn block be just what you want.
2 件のコメント
Daniel Restrepo
2011 年 3 月 8 日
Kaustubha Govind
2011 年 3 月 8 日
If you are using an Embedded MATLAB block, you can use the eml.extrinsic directive to call unsupported functions. If you are indeed using a MATLAB Fcn block, can you post the error message that you see on calling into the DLL?
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!