XPC trigger model run

1 view (last 30 days)
Istvan
Istvan on 24 Nov 2011
Answered: Dimitri MANKOV on 5 Dec 2023
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 Comment
Istvan
Istvan on 25 Nov 2011
Problem still persists - any ideas?

Sign in to comment.

Accepted Answer

Dimitri MANKOV
Dimitri MANKOV on 5 Dec 2023
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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!