Repeated sequence with enumerated data
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (1)
Muthukumar Ganesan
am 21 Aug. 2022
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Inputs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!