Be the first to rate this file! 11 Downloads (last 30 days) File Size: 9.05 KB File ID: #39464
image thumbnail

Trigger a square pulse of programmatic width and amplitude in Simulink

by Jared Goodner

 

14 Dec 2012

Trigger a pulse with a zero or 1 (rather than a designated time) in Simulink

| Watch this File

File Information
Description

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.

Required Products Simulink
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File  
Everyone's Tags
modeling, signal processing, simulink, square wave
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us