Attached is an example of how to construct Dirac approximations for square and triangular approximation types. The example includes how to construct a single event or a periodic event. The approach uses simple geometry to ensure that an impulse of the specified width has a total area of 1. The integration of the Dirac approximations is 1, as expected.
Note that a few parameters are specified in the Model Initialization Commands.