IdnPattern#
- class IdnPattern( )[source]#
Bases:
objectWhich
*IDN?replies a driver handles.- Variables:
vendors (tuple[str, ...]) – Case-insensitive substrings, one of which must appear in the manufacturer field (e.g.
("KEYSIGHT TECHNOLOGIES", "AGILENT TECHNOLOGIES")).model (str) – Regular expression searched case-insensitively in the model field. Anchor it (
r"^DP83[12]") so a family pattern doesn’t swallow a longer model number.num_channels (int | None) – SCPI-programmable channel count for the matched model, or
Nonewhere the category doesn’t track channels (dmm, eload). Not necessarily the physical output count.
Example:
IdnPattern(vendors=("RIGOL TECHNOLOGIES",), model=r"^DP83[12]", num_channels=3)