Trigger a square pulse of programmatic width and amplitude in Simulink

版本 1.0.0.0 (9.0 KB) 作者: Jared Goodner
Trigger a pulse with a zero or 1 (rather than a designated time) in Simulink
767.0 次下载
更新时间 2012/12/14

查看许可证

I needed to trigger a square wave pulse using a signal within my Simulink model (in my case it was a position vector). All I could find within the Sim Library was pulses set to activate at a certain time (by using a delay or building a signal from scratch). So I baked one myself.

The biggest problem was the inability to "reset" the clock (I wanted to use it as a timer to set the width of my pulse). As a substitution for the clock timer, I compare the output of pulse_amplitude => integrator block with the value = pulse_amplitude*pulse_width.

引用格式

Jared Goodner (2024). Trigger a square pulse of programmatic width and amplitude in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/39464-trigger-a-square-pulse-of-programmatic-width-and-amplitude-in-simulink), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Sources 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0