qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_base.py
def from_model_name(model: str, slot_nr: int, parent: 'KeysightB1500',
                        name: Optional[str] = None) -> 'B1500Module':
        """Creates the correct instance of instrument module by model name.

        Args:
            model: Model name such as 'B1517A'
            slot_nr: Slot number of this module (not channel number)
            parent: Reference to B1500 mainframe instance
            name: Name of the instrument instance to create. If `None`
                (Default), then the name is autogenerated from the instrument
                class.

        Returns:
            A specific instance of :class:`.B1500Module`
        """
        if model == "B1511B":
            return B1511B(slot_nr=slot_nr, parent=parent, name=name)
        elif model == "B1517A":
            return B1517A(slot_nr=slot_nr, parent=parent, name=name)
        elif model == "B1520A":
            return B1520A(slot_nr=slot_nr, parent=parent, name=name)
        elif model == "B1530A":
            return B1530A(slot_nr=slot_nr, parent=parent, name=name)
        else:
            raise NotImplementedError(f"Module type {model} in slot"
                                      f" {slot_nr} not yet supported.")
Creates the correct instance of instrument module by model name.

        Args:
            model: Model name such as 'B1517A'
            slot_nr: Slot number of this module (not channel number)
            parent: Reference to B1500 mainframe instance
            name: Name of the instrument instance to create. If `None`
                (Default), then the name is autogenerated from the instrument
                class.

        Returns:
            A specific instance of :class:`.B1500Module`
        
Creates the correct instance of instrument module by model name.
Creates the correct instance of instrument module by model name .
def from_model_name(model: str, slot_nr: int, parent: 'KeysightB1500',
                        name: Optional[str] = None) -> 'B1500Module':
        if model == "B1511B":
            return B1511B(slot_nr=slot_nr, parent=parent, name=name)
        elif model == "B1517A":
            return B1517A(slot_nr=slot_nr, parent=parent, name=name)
        elif model == "B1520A":
            return B1520A(slot_nr=slot_nr, parent=parent, name=name)
        elif model == "B1530A":
            return B1530A(slot_nr=slot_nr, parent=parent, name=name)
        else:
            raise NotImplementedError(f"Module type {model} in slot"
                                      f" {slot_nr} not yet supported.")
def from_model_name ( model : str , slot_nr : int , parent : 'KeysightB1500' , name : Optional [ str ] = None ) -> 'B1500Module' : if model == "B1511B" : return B1511B ( slot_nr = slot_nr , parent = parent , name = name ) elif model == "B1517A" : return B1517A ( slot_nr = slot_nr , parent = parent , name = name ) elif model == "B1520A" : return B1520A ( slot_nr = slot_nr , parent = parent , name = name ) elif model == "B1530A" : return B1530A ( slot_nr = slot_nr , parent = parent , name = name ) else : raise NotImplementedError ( f"Module type {model} in slot" f" {slot_nr} not yet supported." )
Creates the correct instance of instrument module by model name.
Creates the correct instance of instrument module by model name .
"""Creates the correct instance of instrument module by model name.

        Args:
            model: Model name such as 'B1517A'
            slot_nr: Slot number of this module (not channel number)
            parent: Reference to B1500 mainframe instance
            name: Name of the instrument instance to create. If `None`
                (Default), then the name is autogenerated from the instrument
                class.

        Returns:
            A specific instance of :class:`.B1500Module`
        """
A specific instance of :class:`.B1500Module`
A specific instance of : class : ` . B1500Module `
model
str
Model name such as 'B1517A'
Model name such as ' B1517A '
slot_nr
int
Slot number of this module (not channel number)
Slot number of this module ( not channel number )
parent
'KeysightB1500'
Reference to B1500 mainframe instance
Reference to B1500 mainframe instance
name
Optional[str]
Name of the instrument instance to create. If `None`
(Default), then the name is autogenerated from the instrument
class.
Name of the instrument instance to create . If ` None ` ( Default ) then the name is autogenerated from the instrument class .