The Phase-Locked Loop Algorithm of the Function Generation/Controller