| Class: PowerUp | hwdriver/anyhw.py | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Helper class to ensure proper power settings during a measurement.Raises generator power before a measurement if needed, and lowers power after the measurement is completed (but only if it was raised before the measurement; otherwise it is left untouched) This class should not be used by itself. An instance of the PowerUp() will be returned from the PowerUp() method of the hardware. If this instance is destroyed, the power is lowered: g=hardware.PowerUp() scan.Perform(scanparameters) del g
|