Debugging a Custom SimBiology Task
3 ビュー (過去 30 日間)
古いコメントを表示
Hello SimBiology users,
I am having the following issues with executing and debugging a custom task.
1) The custom function call seems to default to the wrong model rather than the model that is currently loaded in the simbiology workspace 2) Sprintf and disp commands do not echo to the command window. 3) Neither of the default return variables, data or taskInfo, can be assigned to a model object, so I can't return information about the model from inside the task.
In other words, I have no way of telling what is going on "under the hood" of my custom task, so I can't debug it.
Thanks a lot, Bryan
0 件のコメント
採用された回答
Pramod Kumar
2012 年 7 月 5 日
Hi Bryan,
The model passed to your custom task is not decided by what models are in the MATLAB workspace. It is a configurable item that can be configured from the MODEL section of the TASK tab. Functions that print(e.g. disp) to the command line are currently ignored when the custom task is being executed.
There are two return variables from the task: data and taskInfo. After the task has successfully executed both these variables are exported to the MATLAB workspace and can be examined there. Note that the variable "data" from the task comes in as "tobj". Exporting of data to workspace is controlled by a preference that can be accessed from the HOME tab by clicking on "settings".
- Pramod
0 件のコメント
その他の回答 (0 件)
コミュニティ
その他の回答 SimBiology コミュニティ
参考
カテゴリ
Help Center および File Exchange で Extend Modeling Environment についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!