Stateflow enumeration datatype problem

10 ビュー (過去 30 日間)
Flavio Ramos
Flavio Ramos 2020 年 9 月 20 日
コメント済み: Flavio Ramos 2020 年 9 月 22 日
Hi there,
I am having a real problem with matlab enumerations in Stateflow.Every time I try to run a script generated stateflow model I get the following error:
"MATLAB command 'ST' failed: (MATLAB:class:InvalidEnum) Cannot find a member of the 'ST' enumeration class that corresponds to each element of the given input argument."
I am trying all that I can to fix this problem but I still could not get rid of it.If any bus in the model has this this enumerated data type I get that error no matter what.
Any help?
Best regards,
  2 件のコメント
stozaki
stozaki 2020 年 9 月 21 日
Hello Flavio,
Do you define enumerated data types as Simulink Enum class files or as Enum objects in Simulink Data Dcitionary?
stozaki
Flavio Ramos
Flavio Ramos 2020 年 9 月 22 日
Hello mr Stozaki,
Thanks in advance for your help.
I have them defined as Simulink enum class files, using this code for instance:
classdef DIR < Simulink.IntEnumType
enumeration
DIR_WEST(10)
DIR_EAST(20)
DIR_NORTH(30)
DIR_SOUTH(40)
end
end
on my Matlab path,but I do not use simulink dictionaries.That is correct, right?
regards,
Flávio

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStateflow についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by