Do you have an EMT example of a DSL based PLL model for single phase applications?

Dynamic Simulation

The example attached provides an example of a PLL capable of tracking a single phase EMT type signal. As such, the example is supporting only EMT type simulations. The PLL model is based on the Second Order Generalised Integrator (SOGI) topology. 

Due to the fact that the initial phase angle cannot be directly calculated based on the knowledge of the input's first value, a configuration script for initialisation is added to the DSL model such that the load flow phase angle of the measured bus is read and hence the dynamic simulation properly initialised (no initial transient). The script prints output window messages only if the "Verify initial conditions" flag is set.