hvl_ccb.dev.keysightb298xx.base
- class KeysightB2985AConfig(spoll_interval: int | float = 0.5, spoll_start_delay: int | float = 2, module: type[~hvl_ccb.dev.keysightb298xx.modules.submodules.sense.SensCharge | ~hvl_ccb.dev.keysightb298xx.modules.submodules.sense.SensCurrent | ~hvl_ccb.dev.keysightb298xx.modules.submodules.sense.SensResistance] = <class 'hvl_ccb.dev.keysightb298xx.modules.submodules.sense.SensCurrent'>)[source]
Bases:
VisaDeviceConfigConfigdataclass for the KeysightB2985A device.
- force_value(fieldname, value)
Forces a value to a dataclass field despite the class being frozen.
NOTE: you can define post_force_value method with same signature as this method to do extra processing after value has been forced on fieldname.
- Parameters:
fieldname – name of the field
value – value to assign
- classmethod keys() Sequence[str]
Returns a list of all configdataclass fields key-names.
- Returns:
a list of strings containing all keys.
- module
alias of
SensCurrent
- classmethod optional_defaults() dict[str, object]
Returns a list of all configdataclass fields, that have a default value assigned and may be optionally specified on instantiation.
- Returns:
a list of strings containing all optional keys.
- classmethod required_keys() Sequence[str]
Returns a list of all configdataclass fields, that have no default value assigned and need to be specified on instantiation.
- Returns:
a list of strings containing all required keys.
- exception KeysightB2985AError[source]
Bases:
DeviceErrorGeneral error class for the Keysight B2985A device.