This model demonstrates the behaviour of a dimmer with phase-angle control with resistive load.
The reference voltage is prescribed by a trapezoid between zero and full voltage. The voltageToAngle block calculates the necessary phase angle, which is processed by the Signal2mPulse adaptor, applying the firing signals to the triac.