フィルターのクリア

XPC trigger model run

3 ビュー (過去 30 日間)
Istvan
Istvan 2011 年 11 月 24 日
回答済み: Dimitri MANKOV 2023 年 12 月 5 日
Hello,
sorry if the question is a bit trivial, but I cannot figure out how to trigger my model using an external TTL pulse.
So, the aim is to compile and download a Simulink model (which can contain the NI card digital input block) to the XPC machine and then start running the model by an external TTL pulse. This is necessary because the model must start its task in a certain moment.
(Thus I am not looking for scope triggering, but that of the "go" for the downloaded and waiting model).
I thank you for suggestions.
Istvan
  1 件のコメント
Istvan
Istvan 2011 年 11 月 25 日
Problem still persists - any ideas?

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

採用された回答

Dimitri MANKOV
Dimitri MANKOV 2023 年 12 月 5 日
Hi Istvan,
In MATLAB R2020a or earlier, you can use the "IRQ Source" block to trigger a subsystem of your Simulink model asynchronously with respect to the rest of the model (e..g., triggered by an external event). If you would like to trigger the entire model using an external signal rather than the CPU timer of your target machine, you can change the corresponding model parameter (more information here).
In MATLAB R2020b or later, you should use the "Interrupt Setup" block from Speedgoat for both use cases.
I hope this is helpful!
Dimitri

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by