This is a pretty vague question so please bear with me. I can add further information if required; just let me know in the comments. So here is the problem that I want to solve.
There is a system which gives certain voltage output which is the error in a system. It is a sinusoidal wave the peak to peak value of which is my error voltage. I have to take that error voltage and then give a voltage signal to an electronically controlled attenuator which then attenuates my system and changes the error voltage. Obviously I have to minimize the attenuator voltage. But here are the problematic parts:
There is an error null point of voltage which, when given to the attenuator, will nullify the error that null point is not known. The circuit has to find out that null point and keep the attenuator voltage there.
The error null point may change change during the operation of the system due to different things. That may create some problems too.
Can someone help me design an electronic systems (maybe using op-amps?) to solve this problem?
Edit: We have a microcontroller-based system for this already. It uses the ADC of the controller and a DAC to give the voltage to the attenuator. But I just thought maybe there are simpler ways to do this.