如何在Simulink中创建计数器 [英] How to create a counter in simulink
本文介绍了如何在Simulink中创建计数器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想计算信号归零的次数。例如,以脉冲信号作为输入,我想要一个变量,该变量计数脉冲变为零的次数。
I would like to count how many times my signal goes to zero. For example having an impulse signal as input I want a variable which counts how many times the impulse goes to zero.
我正在疯狂地思考某些东西...。有谁能够帮助我?
谢谢
I´m becoming crazy thinking of something....can anybody help me? Thanks
推荐答案
图1是脉冲计数器模型
,图2是示波器输出,它显示了5个输入脉冲,我们得到的计数器输出为5
figure 1 is a pulse counter model and figure 2 is scope output which shows for 5 input pulses we get counter output as 5
这篇关于如何在Simulink中创建计数器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文