Ranged Optimization
Maximize a signal within a range.
Sweeps a setting \(z\) within a discrete interval \(I\), measures an optimization quantity \(f(z)\) and calculates \(z_0\) such that:
$$f(z_0) \geq f(z) \, \, \, \, \, \, \forall z \in I$$
finally sets \(z = z_0 + z_{offset}\).
Add to your app:
def setup(self):
from ScopeFoundry import RangedOptimization
self.add_measurement(RangedOptimization(self))
The interval \(I\) is defined by \((z_{center}, z_{span}, z_{num})\).
You can further post process the data to get a more accurate \(z_0\).