simulation - Display time for specific event in simulink/stateflow -
i trying time @ specific condition in simulation occurs. specifically, in simulink model comparing 2 inputs , need save workspace time @ equal each other. appreciated!
you can following 2 steps:
- inside triggered subsystem, put clock block feeding directly workspace block. make subsystem rising edge triggered.
- outside triggered subsystem, compare 2 signals, , feed comparison trigger port.
the times @ comparison true written (as vector) specified workspace variable.
Comments
Post a Comment