摘要 |
A method and firmware for digitally controlling an electro-optical device include steps of receiving as input a first analog signal representative of a measured parameter from an electro-optical device generated by the electro-optical device in response to a second analog signal representative of a set parameter received by the electro-optical device, digitizing the first analog signal to generate a digital feedback value, subtracting the digital feedback value from a digital set point value to calculate a digital error value, calculating a digital cumulative error sum from the digital error value, calculating a digital control value as a function of the cumulative error sum, converting the digital control value to the second analog signal, and driving the electro-optical device toward the digital set point value with the second analog signal.
|