lightlab.equipment.abstract_drivers.electrical_sources module¶
Summary¶
Classes:
MultiChannelSource |
This thing basically holds a dict state and provides some critical methods |
MultiModalSource |
Checks modes for sources with multiple ways to specify. |
Reference¶
-
class
MultiModalSource[source]¶ Bases:
objectChecks modes for sources with multiple ways to specify.
Also checks ranges
Default class constants come from NI PCI source array
-
supportedModes= {'baseunit', 'wattperohm', 'milliamp', 'volt', 'amp', 'mwperohm'}¶
-
baseUnitBounds= [0, 1]¶
-
baseToVoltCoef= 10¶
-
v2maCoef= 4¶
-
exceptOnRangeError= False¶
-
-
class
MultiChannelSource(useChans=None, **kwargs)[source]¶ Bases:
objectThis thing basically holds a dict state and provides some critical methods
There is no mode
Checks for channel compliance. Handles range exceptions
-
maxChannel= None¶
-
elChans¶ Returns the blocked out channels as a list
-
setChannelTuning(chanValDict)[source]¶ Sets a number of channel values and updates hardware
Parameters: Returns: was there a change in value
Return type: (bool)
-