1
votes

Trying to disable the Zero-Crossing detection for only a given subsystem ( User-defined Matlab Function Block) in my simulink Model, I referred to the Matlab Central Guide, however, for User-defined blocks, this option is not available from the block parameters Menu.

Does any one have an idea?

1

1 Answers

2
votes

As you pointed out, MATLAB Function blocks are not part of the blocks that register zero crossings. Your options are either to enable/disable all zero crossings in the configuration parameters or to use a Stateflow chart in continuous-time mode. Alternatively, you can put your MATLAB Function block inside an Enabled/Triggered subsystem.