Table of Contents

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
Methods   
__del__
__init__
down
up
  __del__ 
__del__ ( self )

  1. Lower power if it was touched.

  __init__ 
__init__ ( self,  hardware )

Constructor.

parameters:

hardware

hardware connection object.

  down 
down ( self )

Lower power. Called by destructor.

  up 
up ( self )

Raise power. Called by the constructor.


Table of Contents

This document was automatically generated on Fri Jul 3 09:28:36 2009 by HappyDoc version WORKING