Define default signal values after code generation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a use case where I have bus object inputs to a Simulink model. I'd like to define default initialization values for signals in the structure that persist through Matlab/Simulink Coder such that I can either let the values be a default, or set a value if desired. Has anyone tried this before?
0 Kommentare
Antworten (1)
madhan ravi
am 6 Dez. 2023
Yes, you can do this by defining your signal as Simulink.Signal. Make sure to set all the properties that you need for your signal.
1 Kommentar
madhan ravi
am 6 Dez. 2023
Siehe auch
Kategorien
Mehr zu Simulink Coder 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!