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

조회 수: 10 (최근 30일)
Jonas
Jonas 2020년 11월 6일
답변: Jonas 2020년 11월 10일
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

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Decision Logic에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by