Borrar filtros
Borrar filtros

Simulink External Mode: Arm Trigger command?

5 visualizaciones (últimos 30 días)
Benjamin Strom
Benjamin Strom el 23 de Feb. de 2015
Respondida: Ali Asghar Pourostad el 13 de Dic. de 2019
In the Simulink External Mode Control Panel, there is a Arm/Cancel Trigger button. I would like to execute this from the command line.
The mex commands are as follows, but I do not know how to perform them action: EXT_ARM_TRIGGER and action: EXT_CANCEL_LOGGING
What I really want to do is change the sampling duration in External Signal and Triggering dialog, but I am unable to do so unless the trigger is unarmed.
Any advice would be much appreciated, Thank you

Respuestas (1)

Ali Asghar Pourostad
Ali Asghar Pourostad el 13 de Dic. de 2019
You can see this page for full help
short answer is to use this function to arm trigger:
set_param(gcs,'ExtModeCommand','armWired')
and this one for cancel trigger:
set_param(gcs,'ExtModeCommand','cancelWired')
all parameters come in last part of link above

Categorías

Más información sobre Get Started with Simulink Desktop Real-Time en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by