In simulink, there is no model of a pulse generator which generates only single pulse. This model outputs a single pulse. The parametres of the pulse which can be set by the user are:
Pulse Amplitude with respect to Ground
"Normal Level" determines the Base Level of the signal and "Pulse Amplitude with respect to Ground" defines the level of the signal with respect to ground when the pulse has arrived.
The following parametres settings produces (outputs) a pulse shown in screenshot.
Start Time: 5
Stop Time: 6
Pulse Amplitude with respect to Ground: 9.25
Normal Level: 5.75
Khalil Sultan (2021). Single Pulse Generator (https://www.mathworks.com/matlabcentral/fileexchange/1762-single-pulse-generator), MATLAB Central File Exchange. Retrieved .
Does not Work on R2019a?
Error in 'siMsim1/Single Pulse Generator': Initialization commands cannot be evaluated.
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
Component:Simulink | Category:Block error
whatabout 24 pulse
Also, single pulse is available as a Timer Output (Search for TIMER).
Try using the SigBuilder Block (Ver. 5.0 (R13) ). In any case, generation of a single pulse is trivial !
Well done.Keep it up!
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!