nibcq.switch.SwitchCapability
- class nibcq.switch.SwitchCapability(config: SwitchConfiguration = None)
Bases:
abc.ABC,SwitchCapableBase class for switch control functionality.
- Parameters:
config (SwitchConfiguration)
- classmethod create_for_device_family(device_family: nibcq.enums.DeviceFamily, config: SwitchConfiguration) SwitchCapability
Factory function to create appropriate switch capability.
- Parameters:
device_family (nibcq.enums.DeviceFamily) – The device family (DMM or SMU)
config (SwitchConfiguration) – SwitchConfiguration object
- Returns:
SwitchCapability instance appropriate for the device family.
- Raises:
ValueError – If device family is not supported for switching or config is None.
- Return type:
- abstractmethod initialize_switches() None
Initialize switch sessions based on device family requirements.
- Return type:
None
- abstractmethod connect_channel(cell: str | SMUCellData) None
Connect the current device to the specified Cell DUT on the switch.
- Parameters:
cell (str | SMUCellData) – Channel name string or SMUCellData containing connection information
- Return type:
None