Zero crossing detection with level-2 M s-functions

I know that level-2 M s-functions do not support Zero-crossing detection. Do you know if there is a work-around procedure in order to be able to do that anyway? For instance, by means of a specific external block that reads an s-function output... I don't know.
Thank you very much.
Marco Leonesio

1 个评论

Interesting question. Try using the Hit Crossing block at the output and check the "Enable zero-crossing detection" box on its dialog. Does that do the job for you?

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

提问:

2011-9-21

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by