XPC trigger model run

1 visualización (últimos 30 días)
Istvan
Istvan el 24 de Nov. de 2011
Respondida: Dimitri MANKOV el 5 de Dic. de 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 comentario
Istvan
Istvan el 25 de Nov. de 2011
Problem still persists - any ideas?

Iniciar sesión para comentar.

Respuesta aceptada

Dimitri MANKOV
Dimitri MANKOV el 5 de Dic. de 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

Más respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by