I wish to write data to a file when an integrator saturates. I would like to route the integrator's saturation output port to one of the s-function's inputs. I realize that I can continuously poll the signal, but I'd like to explore triggering on the signal. In other words, for the s-function to behave similarly to a software interrupt.
I need to write a simulink s-function that is triggered by an input signal
472 Views Asked by F. Madison At
2
Madison,
If you like to call s-function based on trigger, you might explore using a relational operator to check the condition. When the condition is True, function would be triggered.
Trying to embed a screenshot below:
Screenshot