フィルターのクリア

How can I set input argument and return value of a model Callback function?

2 ビュー (過去 30 日間)
Xiangming Hao
Xiangming Hao 2017 年 5 月 29 日
コメント済み: Xiangming Hao 2017 年 5 月 29 日
Hi,
I want to set a model callback function with Input Argument(a cell) and return value(cells). Actually I want to register Listeners of all nonvirtual blocks to get the execution order in a period of time. So I decided to use 'StartFcn' to call a function to Register it. I found that the value of 'StartFcn' can only be {''}. Are there anyways to pass the Argument in the callback function and get the return value back? What I want is just like:
set_param(model_name,'StartFcn','execution_order = callback_function(non_virtual_blocks)');
  1 件のコメント
Xiangming Hao
Xiangming Hao 2017 年 5 月 29 日
I have thought to set Metadata to store the Input Atgument, but I can't get modelname in the Callback function. Here is the link. https://de.mathworks.com/help/simulink/slref/simulink.mdlinfo.getmetadata.html

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by