XPC trigger model run
2 ビュー (過去 30 日間)
古いコメントを表示
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
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multicore Processor Targets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!