フィルターのクリア

Repeated sequence with enumerated data

2 ビュー (過去 30 日間)
Sourabh
Sourabh 2022 年 8 月 15 日
回答済み: Muthukumar Ganesan 2022 年 8 月 21 日
I need to test a subsystem whose inputs are of enumerated data type. So, I am trying to create a repeating sequence with enumerated data type enteries but Simulink is not recognizing it. How do I create a repeating sequence with enumerated data type entries?

回答 (1 件)

Muthukumar Ganesan
Muthukumar Ganesan 2022 年 8 月 21 日
Hi,
Please convert the array into double using following command in the output values section of the block.
double(<EnumName>.<ValText>)
Ex: double([VAL_Enu.VALUE_2 VAL_Enu.VALUE_0 ])
Note: If you don't need timing values, you can use "Repeating Sequence Stair"
Thanks

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by