Data Type for time variable in after() function in Stateflow

15 vues (au cours des 30 derniers jours)
Jonas
Jonas le 6 Nov 2020
Réponse apportée : Jonas le 10 Nov 2020
Hi all
I want to use the after(delay,'msec') function to guard a transition in a Stateflow chart. The variable delay is a Simulink.Parameter in my Data Dictionary. I am wondering what data types I can use for the variable delay? Can I use uint8 for this?
I did not find any relevant information regarding the data type for the input variable of the after() function in the documentation.
With kind regards,
Jonas

Réponse acceptée

Jonas
Jonas le 10 Nov 2020
I have done some tests and it appears that it accepts all integer or floating data types. Does not accept booleans.

Plus de réponses (0)

Catégories

En savoir plus sur Decision Logic dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by