XPC trigger model run
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Istvan
le 24 Nov 2011
Réponse apportée : Dimitri MANKOV
le 5 Déc 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
Réponse acceptée
Dimitri MANKOV
le 5 Déc 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
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multicore Processor Targets dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!