Be the first to rate this file! 27 Downloads (last 30 days) File Size: 10.9 KB File ID: #40179
image thumbnail

Triangle Pulse Generator

by

 

Trigger a triangle pulse at any point in your simulation (not clock dependent)

| Watch this File

File Information
Description

I needed to trigger a triangle 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 use switch blocks to switch between zero and integration of a constant (calculated based on pulse duration and amplitude) in order to generate the triangle pulse.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us