How can I realise an automatic switchover with a QDSL model?

Quasi-Dynamic Simulation

In the attached project a QDSL model is implemented which realises a switchover between a primary and a secondary supply. If the voltage at the chosen terminal "BB_voltage" decreases below "u_min", the secondary supply is activated with the selectable switch "S_secondary" and the normal supply is disconnected at the switch "S_primary". When the voltage at "BB_voltage" rises above "u_recurr" again, the primary supply is reactivated.

The transition process for the switchoff after meeting the criteria can be delayed with the parameters "t_delay_to_sec" and "t_delay_to_prim". If they are set to zero, the transition happens immediately.