diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebd7f524a..bda136ada 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,6 +49,7 @@ repos: rev: 1.16.0 hooks: - id: blacken-docs + files: \.(rst|md|markdown|tex)$ - repo: https://github.com/lyz-code/yamlfix/ rev: 1.16.0 hooks: @@ -122,7 +123,7 @@ repos: always_run: true args: [., --min=10] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.8 + rev: v0.1.11 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/CHANGELOG.md b/CHANGELOG.md index bf414161b..c7ee08d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ Things to be included in the next release go here. ### Added - Added a step during a device reboot that will reset all the cached properties in the event that one of them changed. +- Added command API support for MSO5K, DPO5K, and DPO7K models. +- Added a custom, read-only implementation of the [`cached_property`](https://docs.python.org/3/library/functools.html#functools.cached_property) decorator. ### Changed diff --git a/pyproject.toml b/pyproject.toml index a2a6b0292..d6f13ee04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,10 @@ requires = ["poetry-core>=1.0.0"] [tool] +[tool.coverage.coverage_conditional_plugin.rules] +py-gte-39 = "sys_version_info >= (3, 9)" +py-lt-39 = "sys_version_info < (3, 9)" + [tool.coverage.report] exclude_lines = [ "if TYPE_CHECKING:", @@ -20,6 +24,7 @@ skip_empty = true [tool.coverage.run] branch = true cover_pylib = false +plugins = ["coverage_conditional_plugin"] source = ["tm_devices"] [tool.docformatter] @@ -89,6 +94,7 @@ zeroconf = ">=0.54.0" # Development dependencies [tool.poetry.group.dev.dependencies] coverage = {extras = ["toml"], version = ">=7.2.2"} +coverage-conditional-plugin = ">=0.9.0" docformatter = {extras = ["tomli"], version = ">=1.6.5,<1.7.1"} # upper bound is due to https://github.com/PyCQA/docformatter/issues/174 flask = ">=2.2.2" graphviz = ">=0.20.1" diff --git a/src/tm_devices/commands/_60xy3r_smu/smu.py b/src/tm_devices/commands/_60xy3r_smu/smu.py index f5a1b14c7..de458f47a 100644 --- a/src/tm_devices/commands/_60xy3r_smu/smu.py +++ b/src/tm_devices/commands/_60xy3r_smu/smu.py @@ -1011,7 +1011,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1043,7 +1045,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2782,7 +2786,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2822,7 +2828,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3001,7 +3009,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3035,7 +3045,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3435,7 +3447,9 @@ def once(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.once()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.once()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3973,7 +3987,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4005,7 +4021,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4062,7 +4080,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4095,7 +4115,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4333,7 +4355,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4366,7 +4390,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5113,7 +5139,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_60xy3r_smu/upgrade.py b/src/tm_devices/commands/_60xy3r_smu/upgrade.py index ae9e04edc..60883646a 100644 --- a/src/tm_devices/commands/_60xy3r_smu/upgrade.py +++ b/src/tm_devices/commands/_60xy3r_smu/upgrade.py @@ -77,7 +77,9 @@ def unit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6srh1x_smu/smu.py b/src/tm_devices/commands/_6srh1x_smu/smu.py index 27b8899ec..0296dc51e 100644 --- a/src/tm_devices/commands/_6srh1x_smu/smu.py +++ b/src/tm_devices/commands/_6srh1x_smu/smu.py @@ -1011,7 +1011,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1043,7 +1045,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2782,7 +2786,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2822,7 +2828,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3001,7 +3009,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3035,7 +3045,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3435,7 +3447,9 @@ def once(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.once()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.once()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3973,7 +3987,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4005,7 +4021,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4062,7 +4080,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4095,7 +4115,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4333,7 +4355,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4366,7 +4390,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5113,7 +5139,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6srh1x_smu/upgrade.py b/src/tm_devices/commands/_6srh1x_smu/upgrade.py index 9f4b583e6..d47e13266 100644 --- a/src/tm_devices/commands/_6srh1x_smu/upgrade.py +++ b/src/tm_devices/commands/_6srh1x_smu/upgrade.py @@ -77,7 +77,9 @@ def unit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6vynmi_smu/acal.py b/src/tm_devices/commands/_6vynmi_smu/acal.py index 2b323df00..8767b6540 100644 --- a/src/tm_devices/commands/_6vynmi_smu/acal.py +++ b/src/tm_devices/commands/_6vynmi_smu/acal.py @@ -118,7 +118,9 @@ def time(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".time" - return self._device.query(f"print({self._cmd_syntax}.time)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.time)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -193,7 +195,9 @@ def run(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.run()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.run()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6vynmi_smu/smu.py b/src/tm_devices/commands/_6vynmi_smu/smu.py index 44a1296d4..9d3c0db94 100644 --- a/src/tm_devices/commands/_6vynmi_smu/smu.py +++ b/src/tm_devices/commands/_6vynmi_smu/smu.py @@ -1314,7 +1314,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1346,7 +1348,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3507,7 +3511,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3547,7 +3553,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3726,7 +3734,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3760,7 +3770,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4161,7 +4173,9 @@ def once(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.once()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.once()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4699,7 +4713,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4731,7 +4747,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4788,7 +4806,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4821,7 +4841,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5059,7 +5081,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5092,7 +5116,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6311,7 +6337,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6351,7 +6379,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6618,7 +6648,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6650,7 +6682,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6921,7 +6955,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6954,7 +6990,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7918,7 +7956,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6vynmi_smu/trigger.py b/src/tm_devices/commands/_6vynmi_smu/trigger.py index e0dfaf411..f1e405e65 100644 --- a/src/tm_devices/commands/_6vynmi_smu/trigger.py +++ b/src/tm_devices/commands/_6vynmi_smu/trigger.py @@ -378,7 +378,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -402,7 +404,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -450,7 +454,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -487,7 +493,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -544,7 +552,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1279,7 +1289,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1303,7 +1315,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1420,7 +1434,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1496,7 +1512,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1611,7 +1629,9 @@ def load_empty(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.load()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.load()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2001,7 +2021,9 @@ def pause(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.pause()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.pause()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2022,7 +2044,9 @@ def resume(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.resume()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.resume()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3264,7 +3288,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3288,7 +3314,9 @@ def connect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.connect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.connect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3312,7 +3340,9 @@ def disconnect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disconnect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disconnect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3360,7 +3390,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3397,7 +3429,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3453,7 +3487,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3748,7 +3784,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3772,7 +3810,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3820,7 +3860,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3857,7 +3899,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3913,7 +3957,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4127,7 +4173,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4151,7 +4199,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4883,7 +4933,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6vynmi_smu/upgrade.py b/src/tm_devices/commands/_6vynmi_smu/upgrade.py index c326ca0ec..d1c682b84 100644 --- a/src/tm_devices/commands/_6vynmi_smu/upgrade.py +++ b/src/tm_devices/commands/_6vynmi_smu/upgrade.py @@ -77,7 +77,9 @@ def unit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6w7311_smu/trigger.py b/src/tm_devices/commands/_6w7311_smu/trigger.py index d331f6d87..880be137c 100644 --- a/src/tm_devices/commands/_6w7311_smu/trigger.py +++ b/src/tm_devices/commands/_6w7311_smu/trigger.py @@ -377,7 +377,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -401,7 +403,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -449,7 +453,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -486,7 +492,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -543,7 +551,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1278,7 +1288,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1302,7 +1314,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1417,7 +1431,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1493,7 +1509,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1608,7 +1626,9 @@ def load_empty(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.load()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.load()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1998,7 +2018,9 @@ def pause(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.pause()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.pause()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2019,7 +2041,9 @@ def resume(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.resume()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.resume()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3232,7 +3256,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3256,7 +3282,9 @@ def connect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.connect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.connect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3280,7 +3308,9 @@ def disconnect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disconnect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disconnect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3328,7 +3358,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3365,7 +3397,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3421,7 +3455,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3716,7 +3752,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3740,7 +3778,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3788,7 +3828,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3825,7 +3867,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3881,7 +3925,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4095,7 +4141,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4119,7 +4167,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4864,7 +4914,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6xiuc2_smu/smu.py b/src/tm_devices/commands/_6xiuc2_smu/smu.py index ebeaea7de..8ae92febc 100644 --- a/src/tm_devices/commands/_6xiuc2_smu/smu.py +++ b/src/tm_devices/commands/_6xiuc2_smu/smu.py @@ -1012,7 +1012,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1044,7 +1046,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2783,7 +2787,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2823,7 +2829,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3002,7 +3010,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3036,7 +3046,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3437,7 +3449,9 @@ def once(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.once()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.once()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.once()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3975,7 +3989,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4007,7 +4023,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4064,7 +4082,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4097,7 +4117,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4335,7 +4357,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4368,7 +4392,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5187,7 +5213,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_6xiuc2_smu/upgrade.py b/src/tm_devices/commands/_6xiuc2_smu/upgrade.py index d952f247e..8ab71c898 100644 --- a/src/tm_devices/commands/_6xiuc2_smu/upgrade.py +++ b/src/tm_devices/commands/_6xiuc2_smu/upgrade.py @@ -77,7 +77,9 @@ def unit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7kqm9p_smu/buffervar.py b/src/tm_devices/commands/_7kqm9p_smu/buffervar.py index 8c9fe3e92..45311abae 100644 --- a/src/tm_devices/commands/_7kqm9p_smu/buffervar.py +++ b/src/tm_devices/commands/_7kqm9p_smu/buffervar.py @@ -1,5 +1,6 @@ # ruff: noqa: D402,PLR0913 # pyright: reportConstantRedefinition=none +# pylint: disable=too-many-lines """The buffervar commands module. These commands are used in the following models: @@ -621,7 +622,9 @@ def n(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".n" - return self._device.query(f"print({self._cmd_syntax}.n)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.n)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -993,7 +996,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7kqm9p_smu/display.py b/src/tm_devices/commands/_7kqm9p_smu/display.py index a12e1e77f..f0a979f9b 100644 --- a/src/tm_devices/commands/_7kqm9p_smu/display.py +++ b/src/tm_devices/commands/_7kqm9p_smu/display.py @@ -621,7 +621,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7kqm9p_smu/tsplink.py b/src/tm_devices/commands/_7kqm9p_smu/tsplink.py index 972953bfd..368c5f6ce 100644 --- a/src/tm_devices/commands/_7kqm9p_smu/tsplink.py +++ b/src/tm_devices/commands/_7kqm9p_smu/tsplink.py @@ -77,7 +77,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -113,7 +115,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -211,7 +215,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -390,7 +396,9 @@ def node(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".node" - return self._device.query(f"print({self._cmd_syntax}.node)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.node)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -422,7 +430,9 @@ def node(self, value: Union[str, float]) -> None: self._cmd_syntax + ".node", value ) else: - self._device.write(f"{self._cmd_syntax}.node = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.node = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -531,7 +541,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7kqm9p_smu/tspnet.py b/src/tm_devices/commands/_7kqm9p_smu/tspnet.py index 15133659c..e3c93e2f0 100644 --- a/src/tm_devices/commands/_7kqm9p_smu/tspnet.py +++ b/src/tm_devices/commands/_7kqm9p_smu/tspnet.py @@ -593,7 +593,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7ryhce_smu/status.py b/src/tm_devices/commands/_7ryhce_smu/status.py index 63d1b821d..d314e7438 100644 --- a/src/tm_devices/commands/_7ryhce_smu/status.py +++ b/src/tm_devices/commands/_7ryhce_smu/status.py @@ -399,7 +399,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -433,7 +435,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -464,7 +468,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -498,7 +504,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -674,7 +682,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -708,7 +718,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -739,7 +751,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -773,7 +787,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -949,7 +965,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -983,7 +1001,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1014,7 +1034,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1048,7 +1070,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1224,7 +1248,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1258,7 +1284,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1289,7 +1317,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1323,7 +1353,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1499,7 +1531,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1533,7 +1567,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1564,7 +1600,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1598,7 +1636,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1826,7 +1866,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1859,7 +1901,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1889,7 +1933,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1922,7 +1968,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2105,7 +2153,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2139,7 +2189,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2170,7 +2222,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2204,7 +2258,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2385,7 +2441,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2419,7 +2477,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2450,7 +2510,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2484,7 +2546,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2723,7 +2787,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2761,7 +2827,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2796,7 +2864,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2834,7 +2904,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3024,7 +3096,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3058,7 +3132,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3089,7 +3165,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3123,7 +3201,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3335,7 +3415,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3369,7 +3451,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3400,7 +3484,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3434,7 +3520,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3692,7 +3780,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3725,7 +3815,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3774,7 +3866,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3807,7 +3901,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4081,7 +4177,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4114,7 +4212,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4144,7 +4244,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4177,7 +4279,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4380,7 +4484,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4414,7 +4520,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4445,7 +4553,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4479,7 +4589,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4659,7 +4771,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4692,7 +4806,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4722,7 +4838,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4755,7 +4873,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4939,7 +5059,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4972,7 +5094,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5002,7 +5126,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5035,7 +5161,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5217,7 +5345,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5250,7 +5380,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5280,7 +5412,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5313,7 +5447,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5491,7 +5627,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5526,7 +5664,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5558,7 +5698,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5593,7 +5735,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5778,7 +5922,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5813,7 +5959,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5845,7 +5993,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5880,7 +6030,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6106,7 +6258,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6140,7 +6294,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6171,7 +6327,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6205,7 +6363,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6396,7 +6556,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6430,7 +6592,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6461,7 +6625,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6495,7 +6661,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6738,7 +6906,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6772,7 +6942,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6803,7 +6975,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6837,7 +7011,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7028,7 +7204,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7062,7 +7240,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7093,7 +7273,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7127,7 +7309,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7368,7 +7552,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7402,7 +7588,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7433,7 +7621,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7467,7 +7657,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7720,7 +7912,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7758,7 +7952,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7793,7 +7989,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7831,7 +8029,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8070,7 +8270,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8104,7 +8306,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8135,7 +8339,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8169,7 +8375,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8374,7 +8582,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8408,7 +8618,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8439,7 +8651,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8473,7 +8687,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8683,7 +8899,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8718,7 +8936,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8750,7 +8970,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8785,7 +9007,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8981,7 +9205,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9016,7 +9242,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9048,7 +9276,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9083,7 +9313,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9371,7 +9603,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9405,7 +9639,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9436,7 +9672,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9470,7 +9708,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9740,7 +9980,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9774,7 +10016,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9805,7 +10049,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9839,7 +10085,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10158,7 +10406,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10191,7 +10441,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10221,7 +10473,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10254,7 +10508,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10533,7 +10789,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10567,7 +10825,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10598,7 +10858,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10632,7 +10894,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10813,7 +11077,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10847,7 +11113,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10878,7 +11146,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10912,7 +11182,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11162,7 +11434,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11201,7 +11475,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11237,7 +11513,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11276,7 +11554,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11471,7 +11751,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11506,7 +11788,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11538,7 +11822,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11573,7 +11859,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11784,7 +12072,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11818,7 +12108,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11849,7 +12141,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11883,7 +12177,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12072,7 +12368,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12106,7 +12404,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12137,7 +12437,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12171,7 +12473,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12469,7 +12773,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12502,7 +12808,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12532,7 +12840,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12565,7 +12875,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13173,7 +13485,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7s2p1p_smu/display.py b/src/tm_devices/commands/_7s2p1p_smu/display.py index 32780da03..ccd6be87f 100644 --- a/src/tm_devices/commands/_7s2p1p_smu/display.py +++ b/src/tm_devices/commands/_7s2p1p_smu/display.py @@ -79,7 +79,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -112,7 +114,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -150,7 +154,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -183,7 +189,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7s2p1p_smu/serial.py b/src/tm_devices/commands/_7s2p1p_smu/serial.py index b7e97f879..fdbf5ccf6 100644 --- a/src/tm_devices/commands/_7s2p1p_smu/serial.py +++ b/src/tm_devices/commands/_7s2p1p_smu/serial.py @@ -61,7 +61,9 @@ def baud(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".baud" - return self._device.query(f"print({self._cmd_syntax}.baud)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.baud)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -93,7 +95,9 @@ def baud(self, value: Union[str, float]) -> None: self._cmd_syntax + ".baud", value ) else: - self._device.write(f"{self._cmd_syntax}.baud = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.baud = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7s2p1p_smu/smux.py b/src/tm_devices/commands/_7s2p1p_smu/smux.py index 49f86ac54..b00591969 100644 --- a/src/tm_devices/commands/_7s2p1p_smu/smux.py +++ b/src/tm_devices/commands/_7s2p1p_smu/smux.py @@ -671,7 +671,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -847,7 +849,9 @@ def i(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.i({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.i({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -900,7 +904,9 @@ def p(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.p({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.p({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -925,7 +931,9 @@ def r(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.r({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.r({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -950,7 +958,9 @@ def v(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.v({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.v({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -971,7 +981,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1213,7 +1225,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1380,7 +1394,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1670,7 +1686,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1963,7 +1981,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1995,7 +2015,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3088,7 +3110,9 @@ def sink(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".sink" - return self._device.query(f"print({self._cmd_syntax}.sink)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.sink)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3120,7 +3144,9 @@ def sink(self, value: Union[str, float]) -> None: self._cmd_syntax + ".sink", value ) else: - self._device.write(f"{self._cmd_syntax}.sink = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.sink = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4548,7 +4574,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4582,7 +4610,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5341,7 +5371,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5374,7 +5406,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6216,7 +6250,9 @@ def check(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.check()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.check()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6240,7 +6276,9 @@ def r(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.r())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.r())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6353,7 +6391,9 @@ def date(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".date" - return self._device.query(f"print({self._cmd_syntax}.date)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.date)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6385,7 +6425,9 @@ def date(self, value: Union[str, float]) -> None: self._cmd_syntax + ".date", value ) else: - self._device.write(f"{self._cmd_syntax}.date = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.date = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6414,7 +6456,9 @@ def due(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".due" - return self._device.query(f"print({self._cmd_syntax}.due)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.due)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6446,7 +6490,9 @@ def due(self, value: Union[str, float]) -> None: self._cmd_syntax + ".due", value ) else: - self._device.write(f"{self._cmd_syntax}.due = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.due = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6495,7 +6541,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6612,7 +6660,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6661,7 +6711,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6685,7 +6737,9 @@ def unlock(self, password: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unlock({password})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unlock({password})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7314,7 +7368,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7515,7 +7571,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7540,7 +7598,9 @@ def savebuffer(self, y: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.savebuffer({y})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.savebuffer({y})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7s2p1p_smu/status.py b/src/tm_devices/commands/_7s2p1p_smu/status.py index e06bba924..05e353207 100644 --- a/src/tm_devices/commands/_7s2p1p_smu/status.py +++ b/src/tm_devices/commands/_7s2p1p_smu/status.py @@ -699,7 +699,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -733,7 +735,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -764,7 +768,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -798,7 +804,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -976,7 +984,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1010,7 +1020,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1041,7 +1053,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1075,7 +1089,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1294,7 +1310,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1328,7 +1346,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1359,7 +1379,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1393,7 +1415,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1579,7 +1603,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1613,7 +1639,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1644,7 +1672,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1678,7 +1708,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1886,7 +1918,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1920,7 +1954,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1951,7 +1987,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1985,7 +2023,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2238,7 +2278,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2271,7 +2313,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2318,7 +2362,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2351,7 +2397,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2633,7 +2681,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2667,7 +2717,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2698,7 +2750,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2732,7 +2786,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2909,7 +2965,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2942,7 +3000,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2972,7 +3032,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3005,7 +3067,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3205,7 +3269,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3238,7 +3304,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3268,7 +3336,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3301,7 +3371,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4150,7 +4222,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4184,7 +4258,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4215,7 +4291,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4249,7 +4327,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4499,7 +4579,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4533,7 +4615,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4564,7 +4648,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4598,7 +4684,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5022,7 +5110,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5056,7 +5146,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5087,7 +5179,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5121,7 +5215,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5299,7 +5395,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5333,7 +5431,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5364,7 +5464,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5398,7 +5500,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5575,7 +5679,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5610,7 +5716,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5642,7 +5750,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5677,7 +5787,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5907,7 +6019,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5942,7 +6056,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5974,7 +6090,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6009,7 +6127,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6200,7 +6320,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6235,7 +6357,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6267,7 +6391,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6302,7 +6428,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6510,7 +6638,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6544,7 +6674,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6575,7 +6707,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6609,7 +6743,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6791,7 +6927,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6825,7 +6963,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6856,7 +6996,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6890,7 +7032,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7184,7 +7328,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7217,7 +7363,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7260,7 +7408,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7293,7 +7443,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7s43m8_smu/status.py b/src/tm_devices/commands/_7s43m8_smu/status.py index 2e52f1cac..79c673f87 100644 --- a/src/tm_devices/commands/_7s43m8_smu/status.py +++ b/src/tm_devices/commands/_7s43m8_smu/status.py @@ -434,7 +434,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -468,7 +470,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -499,7 +503,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -533,7 +539,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -776,7 +784,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -810,7 +820,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -841,7 +853,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -875,7 +889,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1118,7 +1134,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1152,7 +1170,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1183,7 +1203,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1217,7 +1239,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1460,7 +1484,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1494,7 +1520,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1525,7 +1553,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1559,7 +1589,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1802,7 +1834,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1836,7 +1870,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1867,7 +1903,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1901,7 +1939,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2129,7 +2169,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2162,7 +2204,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2192,7 +2236,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2225,7 +2271,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2408,7 +2456,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2442,7 +2492,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2473,7 +2525,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2507,7 +2561,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2688,7 +2744,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2722,7 +2780,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2753,7 +2813,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2787,7 +2849,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3026,7 +3090,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3064,7 +3130,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3099,7 +3167,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3137,7 +3207,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3327,7 +3399,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3361,7 +3435,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3392,7 +3468,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3426,7 +3504,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3638,7 +3718,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3672,7 +3754,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3703,7 +3787,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3737,7 +3823,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3995,7 +4083,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4028,7 +4118,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4077,7 +4169,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4110,7 +4204,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4384,7 +4480,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4417,7 +4515,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4447,7 +4547,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4480,7 +4582,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4695,7 +4799,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4729,7 +4835,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4760,7 +4868,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4794,7 +4904,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4974,7 +5086,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5007,7 +5121,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5037,7 +5153,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5070,7 +5188,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5254,7 +5374,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5287,7 +5409,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5317,7 +5441,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5350,7 +5476,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5532,7 +5660,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5565,7 +5695,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5595,7 +5727,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5628,7 +5762,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5821,7 +5957,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5856,7 +5994,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5888,7 +6028,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5923,7 +6065,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6119,7 +6263,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6154,7 +6300,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6186,7 +6334,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6221,7 +6371,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6455,7 +6607,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6489,7 +6643,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6520,7 +6676,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6554,7 +6712,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6745,7 +6905,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6779,7 +6941,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6810,7 +6974,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6844,7 +7010,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7087,7 +7255,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7121,7 +7291,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7152,7 +7324,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7186,7 +7360,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7377,7 +7553,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7411,7 +7589,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7442,7 +7622,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7476,7 +7658,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7717,7 +7901,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7751,7 +7937,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7782,7 +7970,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7816,7 +8006,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8069,7 +8261,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8107,7 +8301,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8142,7 +8338,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8180,7 +8378,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8419,7 +8619,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8453,7 +8655,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8484,7 +8688,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8518,7 +8724,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8723,7 +8931,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8757,7 +8967,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8788,7 +9000,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8822,7 +9036,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9091,7 +9307,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9126,7 +9344,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9158,7 +9378,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9193,7 +9415,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9389,7 +9613,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9424,7 +9650,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9456,7 +9684,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9491,7 +9721,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9821,7 +10053,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9855,7 +10089,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9886,7 +10122,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9920,7 +10158,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10196,7 +10436,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10230,7 +10472,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10261,7 +10505,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10295,7 +10541,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10620,7 +10868,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10653,7 +10903,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10683,7 +10935,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10716,7 +10970,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11001,7 +11257,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11035,7 +11293,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11066,7 +11326,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11100,7 +11362,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11281,7 +11545,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11315,7 +11581,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11346,7 +11614,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11380,7 +11650,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11630,7 +11902,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11669,7 +11943,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11705,7 +11981,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11744,7 +12022,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11939,7 +12219,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11974,7 +12256,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12006,7 +12290,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12041,7 +12327,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12252,7 +12540,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12286,7 +12576,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12317,7 +12609,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12351,7 +12645,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12540,7 +12836,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12574,7 +12872,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12605,7 +12905,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12639,7 +12941,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12937,7 +13241,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12970,7 +13276,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13000,7 +13308,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13033,7 +13343,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13802,7 +14114,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_7s6wr5_smu/status.py b/src/tm_devices/commands/_7s6wr5_smu/status.py index e89e057b1..3b8563d7b 100644 --- a/src/tm_devices/commands/_7s6wr5_smu/status.py +++ b/src/tm_devices/commands/_7s6wr5_smu/status.py @@ -434,7 +434,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -468,7 +470,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -499,7 +503,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -533,7 +539,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -776,7 +784,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -810,7 +820,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -841,7 +853,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -875,7 +889,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1118,7 +1134,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1152,7 +1170,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1183,7 +1203,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1217,7 +1239,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1460,7 +1484,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1494,7 +1520,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1525,7 +1553,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1559,7 +1589,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1802,7 +1834,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1836,7 +1870,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1867,7 +1903,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1901,7 +1939,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2129,7 +2169,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2162,7 +2204,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2192,7 +2236,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2225,7 +2271,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2397,7 +2445,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2431,7 +2481,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2462,7 +2514,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2496,7 +2550,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2668,7 +2724,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2702,7 +2760,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2733,7 +2793,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2767,7 +2829,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3006,7 +3070,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3044,7 +3110,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3079,7 +3147,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3117,7 +3187,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3303,7 +3375,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3337,7 +3411,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3368,7 +3444,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3402,7 +3480,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3610,7 +3690,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3644,7 +3726,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3675,7 +3759,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3709,7 +3795,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3938,7 +4026,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3971,7 +4061,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4014,7 +4106,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4047,7 +4141,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4267,7 +4363,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4300,7 +4398,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4330,7 +4430,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4363,7 +4465,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4574,7 +4678,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4608,7 +4714,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4639,7 +4747,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4673,7 +4783,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4850,7 +4962,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4883,7 +4997,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4913,7 +5029,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4946,7 +5064,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5130,7 +5250,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5163,7 +5285,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5193,7 +5317,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5226,7 +5352,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5404,7 +5532,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5437,7 +5567,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5467,7 +5599,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5500,7 +5634,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5693,7 +5829,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5728,7 +5866,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5760,7 +5900,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5795,7 +5937,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5991,7 +6135,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6026,7 +6172,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6058,7 +6206,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6093,7 +6243,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6327,7 +6479,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6361,7 +6515,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6392,7 +6548,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6426,7 +6584,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6617,7 +6777,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6651,7 +6813,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6682,7 +6846,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6716,7 +6882,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6959,7 +7127,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6993,7 +7163,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7024,7 +7196,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7058,7 +7232,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7249,7 +7425,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7283,7 +7461,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7314,7 +7494,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7348,7 +7530,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7589,7 +7773,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7623,7 +7809,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7654,7 +7842,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7688,7 +7878,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7941,7 +8133,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7979,7 +8173,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8014,7 +8210,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8052,7 +8250,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8291,7 +8491,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8325,7 +8527,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8356,7 +8560,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8390,7 +8596,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8595,7 +8803,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8629,7 +8839,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8660,7 +8872,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8694,7 +8908,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8963,7 +9179,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8998,7 +9216,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9030,7 +9250,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9065,7 +9287,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9261,7 +9485,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9296,7 +9522,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9328,7 +9556,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9363,7 +9593,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9689,7 +9921,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9723,7 +9957,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9754,7 +9990,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9788,7 +10026,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10061,7 +10301,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10095,7 +10337,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10126,7 +10370,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10160,7 +10406,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10480,7 +10728,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10513,7 +10763,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10543,7 +10795,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10576,7 +10830,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10837,7 +11093,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10871,7 +11129,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10902,7 +11162,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10936,7 +11198,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11114,7 +11378,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11148,7 +11414,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11179,7 +11447,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11213,7 +11483,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11463,7 +11735,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11502,7 +11776,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11538,7 +11814,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11577,7 +11855,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11768,7 +12048,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11803,7 +12085,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11835,7 +12119,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11870,7 +12156,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12078,7 +12366,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12112,7 +12402,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12143,7 +12435,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12177,7 +12471,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12359,7 +12655,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12393,7 +12691,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12424,7 +12724,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12458,7 +12760,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12750,7 +13054,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12783,7 +13089,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12813,7 +13121,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12846,7 +13156,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13600,7 +13912,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_8ojdkz_smu/display.py b/src/tm_devices/commands/_8ojdkz_smu/display.py index 68a78831e..a6cd45bf4 100644 --- a/src/tm_devices/commands/_8ojdkz_smu/display.py +++ b/src/tm_devices/commands/_8ojdkz_smu/display.py @@ -112,7 +112,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -179,7 +181,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -212,7 +216,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -259,7 +265,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -297,7 +305,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1035,7 +1045,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1393,7 +1405,9 @@ def settext(self, text: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.settext("{text}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.settext("{text}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_8ojdkz_smu/smux.py b/src/tm_devices/commands/_8ojdkz_smu/smux.py index 6a33f2620..8de5ed26e 100644 --- a/src/tm_devices/commands/_8ojdkz_smu/smux.py +++ b/src/tm_devices/commands/_8ojdkz_smu/smux.py @@ -630,7 +630,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -826,7 +828,9 @@ def i(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.i({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.i({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -879,7 +883,9 @@ def p(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.p({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.p({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -904,7 +910,9 @@ def r(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.r({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.r({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -929,7 +937,9 @@ def v(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.v({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.v({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -954,7 +964,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1232,7 +1244,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1423,7 +1437,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1754,7 +1770,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2083,7 +2101,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2119,7 +2139,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4290,7 +4312,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4328,7 +4352,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5176,7 +5202,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5212,7 +5240,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6023,7 +6053,9 @@ def check(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.check()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.check()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6051,7 +6083,9 @@ def r(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.r())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.r())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6180,7 +6214,9 @@ def date(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".date" - return self._device.query(f"print({self._cmd_syntax}.date)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.date)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6216,7 +6252,9 @@ def date(self, value: Union[str, float]) -> None: self._cmd_syntax + ".date", value ) else: - self._device.write(f"{self._cmd_syntax}.date = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.date = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6249,7 +6287,9 @@ def due(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".due" - return self._device.query(f"print({self._cmd_syntax}.due)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.due)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6285,7 +6325,9 @@ def due(self, value: Union[str, float]) -> None: self._cmd_syntax + ".due", value ) else: - self._device.write(f"{self._cmd_syntax}.due = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.due = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6340,7 +6382,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6471,7 +6515,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6524,7 +6570,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6548,7 +6596,9 @@ def unlock(self, password: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unlock({password})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unlock({password})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7203,7 +7253,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7408,7 +7460,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7433,7 +7487,9 @@ def savebuffer(self, y: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.savebuffer({y})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.savebuffer({y})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_8ojdkz_smu/status.py b/src/tm_devices/commands/_8ojdkz_smu/status.py index 9bc319bd4..6fe822685 100644 --- a/src/tm_devices/commands/_8ojdkz_smu/status.py +++ b/src/tm_devices/commands/_8ojdkz_smu/status.py @@ -429,7 +429,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -462,7 +464,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -492,7 +496,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -525,7 +531,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -763,7 +771,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -796,7 +806,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -826,7 +838,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -859,7 +873,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1097,7 +1113,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1130,7 +1148,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1160,7 +1180,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1193,7 +1215,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1431,7 +1455,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1464,7 +1490,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1494,7 +1522,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1527,7 +1557,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1765,7 +1797,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1798,7 +1832,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1828,7 +1864,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1861,7 +1899,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2089,7 +2129,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2122,7 +2164,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2152,7 +2196,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2185,7 +2231,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2368,7 +2416,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2402,7 +2452,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2433,7 +2485,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2467,7 +2521,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2648,7 +2704,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2682,7 +2740,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2713,7 +2773,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2747,7 +2809,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2966,7 +3030,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3000,7 +3066,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3031,7 +3099,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3065,7 +3135,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3255,7 +3327,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3289,7 +3363,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3320,7 +3396,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3354,7 +3432,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3566,7 +3646,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3600,7 +3682,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3631,7 +3715,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3665,7 +3751,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3923,7 +4011,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3956,7 +4046,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4005,7 +4097,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4038,7 +4132,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4312,7 +4408,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4345,7 +4443,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4375,7 +4475,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4408,7 +4510,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4623,7 +4727,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4657,7 +4763,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4688,7 +4796,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4722,7 +4832,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4902,7 +5014,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4935,7 +5049,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4965,7 +5081,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4998,7 +5116,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5182,7 +5302,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5215,7 +5337,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5245,7 +5369,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5278,7 +5404,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5460,7 +5588,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5493,7 +5623,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5523,7 +5655,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5556,7 +5690,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5744,7 +5880,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5778,7 +5916,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5809,7 +5949,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5843,7 +5985,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6034,7 +6178,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6068,7 +6214,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6099,7 +6247,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6133,7 +6283,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6367,7 +6519,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6401,7 +6555,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6432,7 +6588,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6466,7 +6624,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6657,7 +6817,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6691,7 +6853,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6722,7 +6886,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6756,7 +6922,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6999,7 +7167,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7033,7 +7203,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7064,7 +7236,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7098,7 +7272,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7289,7 +7465,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7323,7 +7501,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7354,7 +7534,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7388,7 +7570,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7629,7 +7813,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7663,7 +7849,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7694,7 +7882,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7728,7 +7918,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7981,7 +8173,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8019,7 +8213,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8054,7 +8250,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8092,7 +8290,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8331,7 +8531,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8365,7 +8567,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8396,7 +8600,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8430,7 +8636,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8635,7 +8843,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8669,7 +8879,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8700,7 +8912,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8734,7 +8948,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8998,7 +9214,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9032,7 +9250,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9063,7 +9283,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9097,7 +9319,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9288,7 +9512,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9322,7 +9548,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9353,7 +9581,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9387,7 +9617,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9717,7 +9949,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9751,7 +9985,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9782,7 +10018,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9816,7 +10054,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10092,7 +10332,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10126,7 +10368,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10157,7 +10401,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10191,7 +10437,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10516,7 +10764,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10549,7 +10799,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10579,7 +10831,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10612,7 +10866,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10897,7 +11153,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10931,7 +11189,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10962,7 +11222,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10996,7 +11258,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11177,7 +11441,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11211,7 +11477,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11242,7 +11510,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11276,7 +11546,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11506,7 +11778,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11541,7 +11815,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11573,7 +11849,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11608,7 +11886,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11803,7 +12083,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11838,7 +12120,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11870,7 +12154,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11905,7 +12191,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12116,7 +12404,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12150,7 +12440,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12181,7 +12473,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12215,7 +12509,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12404,7 +12700,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12438,7 +12736,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12469,7 +12769,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12503,7 +12805,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12801,7 +13105,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12834,7 +13140,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12864,7 +13172,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12897,7 +13207,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13664,7 +13976,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_8wm55i_smu/smux.py b/src/tm_devices/commands/_8wm55i_smu/smux.py index 507d2ac7e..33d7e308d 100644 --- a/src/tm_devices/commands/_8wm55i_smu/smux.py +++ b/src/tm_devices/commands/_8wm55i_smu/smux.py @@ -632,7 +632,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -828,7 +830,9 @@ def i(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.i({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.i({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -881,7 +885,9 @@ def p(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.p({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.p({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -906,7 +912,9 @@ def r(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.r({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.r({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -931,7 +939,9 @@ def v(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.v({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.v({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -956,7 +966,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1234,7 +1246,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1425,7 +1439,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1756,7 +1772,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2086,7 +2104,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2122,7 +2142,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3418,7 +3440,9 @@ def sink(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".sink" - return self._device.query(f"print({self._cmd_syntax}.sink)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.sink)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3454,7 +3478,9 @@ def sink(self, value: Union[str, float]) -> None: self._cmd_syntax + ".sink", value ) else: - self._device.write(f"{self._cmd_syntax}.sink = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.sink = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4362,7 +4388,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4400,7 +4428,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5326,7 +5356,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5362,7 +5394,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6180,7 +6214,9 @@ def check(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.check()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.check()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6209,7 +6245,9 @@ def r(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.r())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.r())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6338,7 +6376,9 @@ def date(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".date" - return self._device.query(f"print({self._cmd_syntax}.date)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.date)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6374,7 +6414,9 @@ def date(self, value: Union[str, float]) -> None: self._cmd_syntax + ".date", value ) else: - self._device.write(f"{self._cmd_syntax}.date = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.date = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6407,7 +6449,9 @@ def due(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".due" - return self._device.query(f"print({self._cmd_syntax}.due)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.due)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6443,7 +6487,9 @@ def due(self, value: Union[str, float]) -> None: self._cmd_syntax + ".due", value ) else: - self._device.write(f"{self._cmd_syntax}.due = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.due = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6498,7 +6544,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6629,7 +6677,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6682,7 +6732,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6706,7 +6758,9 @@ def unlock(self, password: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unlock({password})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unlock({password})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7363,7 +7417,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7568,7 +7624,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7593,7 +7651,9 @@ def savebuffer(self, y: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.savebuffer({y})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.savebuffer({y})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_9kezla_smu/smux.py b/src/tm_devices/commands/_9kezla_smu/smux.py index bee5c2899..2ebc0c169 100644 --- a/src/tm_devices/commands/_9kezla_smu/smux.py +++ b/src/tm_devices/commands/_9kezla_smu/smux.py @@ -632,7 +632,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -828,7 +830,9 @@ def i(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.i({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.i({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -881,7 +885,9 @@ def p(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.p({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.p({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -906,7 +912,9 @@ def r(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.r({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.r({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -931,7 +939,9 @@ def v(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.v({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.v({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -956,7 +966,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1234,7 +1246,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1425,7 +1439,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1756,7 +1772,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2086,7 +2104,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2122,7 +2142,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3418,7 +3440,9 @@ def sink(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".sink" - return self._device.query(f"print({self._cmd_syntax}.sink)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.sink)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3454,7 +3478,9 @@ def sink(self, value: Union[str, float]) -> None: self._cmd_syntax + ".sink", value ) else: - self._device.write(f"{self._cmd_syntax}.sink = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.sink = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4362,7 +4388,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4400,7 +4428,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5326,7 +5356,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5362,7 +5394,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6180,7 +6214,9 @@ def check(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.check()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.check()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6209,7 +6245,9 @@ def r(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.r())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.r())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6338,7 +6376,9 @@ def date(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".date" - return self._device.query(f"print({self._cmd_syntax}.date)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.date)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6374,7 +6414,9 @@ def date(self, value: Union[str, float]) -> None: self._cmd_syntax + ".date", value ) else: - self._device.write(f"{self._cmd_syntax}.date = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.date = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6407,7 +6449,9 @@ def due(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".due" - return self._device.query(f"print({self._cmd_syntax}.due)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.due)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6443,7 +6487,9 @@ def due(self, value: Union[str, float]) -> None: self._cmd_syntax + ".due", value ) else: - self._device.write(f"{self._cmd_syntax}.due = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.due = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6498,7 +6544,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6629,7 +6677,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6682,7 +6732,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6706,7 +6758,9 @@ def unlock(self, password: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unlock({password})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unlock({password})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7353,7 +7407,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7558,7 +7614,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7583,7 +7641,9 @@ def savebuffer(self, y: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.savebuffer({y})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.savebuffer({y})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_9mzp2j_smu/digio.py b/src/tm_devices/commands/_9mzp2j_smu/digio.py index a6de6eeb7..37fa07305 100644 --- a/src/tm_devices/commands/_9mzp2j_smu/digio.py +++ b/src/tm_devices/commands/_9mzp2j_smu/digio.py @@ -102,7 +102,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -140,7 +142,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -350,7 +354,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -375,7 +381,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -400,7 +408,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -425,7 +435,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -676,7 +688,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_9mzp2j_smu/display.py b/src/tm_devices/commands/_9mzp2j_smu/display.py index a6e4ac67d..6537f9e5e 100644 --- a/src/tm_devices/commands/_9mzp2j_smu/display.py +++ b/src/tm_devices/commands/_9mzp2j_smu/display.py @@ -112,7 +112,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -187,7 +189,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -224,7 +228,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -271,7 +277,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -309,7 +317,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1043,7 +1053,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1400,7 +1412,9 @@ def settext(self, text: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.settext("{text}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.settext("{text}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_9mzp2j_smu/tsplink.py b/src/tm_devices/commands/_9mzp2j_smu/tsplink.py index d48a4d9b5..b8e9947e1 100644 --- a/src/tm_devices/commands/_9mzp2j_smu/tsplink.py +++ b/src/tm_devices/commands/_9mzp2j_smu/tsplink.py @@ -106,7 +106,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -143,7 +145,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -353,7 +357,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -378,7 +384,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -403,7 +411,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -428,7 +438,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -609,7 +621,9 @@ def node(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".node" - return self._device.query(f"print({self._cmd_syntax}.node)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.node)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -642,7 +656,9 @@ def node(self, value: Union[str, float]) -> None: self._cmd_syntax + ".node", value ) else: - self._device.write(f"{self._cmd_syntax}.node = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.node = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -907,7 +923,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_9ncc6e_smu/display.py b/src/tm_devices/commands/_9ncc6e_smu/display.py index f93fdab74..5eea3deed 100644 --- a/src/tm_devices/commands/_9ncc6e_smu/display.py +++ b/src/tm_devices/commands/_9ncc6e_smu/display.py @@ -112,7 +112,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -187,7 +189,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -224,7 +228,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -271,7 +277,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -309,7 +317,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -944,7 +954,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1301,7 +1313,9 @@ def settext(self, text: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.settext("{text}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.settext("{text}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_9nnkq7_smu/status.py b/src/tm_devices/commands/_9nnkq7_smu/status.py index cffc3a9da..ebee087a7 100644 --- a/src/tm_devices/commands/_9nnkq7_smu/status.py +++ b/src/tm_devices/commands/_9nnkq7_smu/status.py @@ -399,7 +399,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -433,7 +435,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -464,7 +468,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -498,7 +504,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -674,7 +682,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -708,7 +718,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -739,7 +751,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -773,7 +787,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -949,7 +965,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -983,7 +1001,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1014,7 +1034,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1048,7 +1070,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1224,7 +1248,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1258,7 +1284,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1289,7 +1317,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1323,7 +1353,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1499,7 +1531,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1533,7 +1567,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1564,7 +1600,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1598,7 +1636,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1826,7 +1866,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1859,7 +1901,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1889,7 +1933,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1922,7 +1968,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2105,7 +2153,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2139,7 +2189,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2170,7 +2222,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2204,7 +2258,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2385,7 +2441,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2419,7 +2477,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2450,7 +2510,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2484,7 +2546,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2723,7 +2787,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2761,7 +2827,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2796,7 +2864,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2834,7 +2904,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3024,7 +3096,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3058,7 +3132,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3089,7 +3165,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3123,7 +3201,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3335,7 +3415,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3369,7 +3451,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3400,7 +3484,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3434,7 +3520,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3698,7 +3786,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3731,7 +3821,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3780,7 +3872,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3813,7 +3907,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4087,7 +4183,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4120,7 +4218,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4150,7 +4250,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4183,7 +4285,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4386,7 +4490,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4420,7 +4526,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4451,7 +4559,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4485,7 +4595,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4665,7 +4777,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4698,7 +4812,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4728,7 +4844,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4761,7 +4879,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4945,7 +5065,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4978,7 +5100,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5008,7 +5132,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5041,7 +5167,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5223,7 +5351,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5256,7 +5386,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5286,7 +5418,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5319,7 +5453,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5497,7 +5633,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5532,7 +5670,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5564,7 +5704,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5599,7 +5741,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5784,7 +5928,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5819,7 +5965,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5851,7 +5999,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5886,7 +6036,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6112,7 +6264,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6146,7 +6300,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6177,7 +6333,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6211,7 +6369,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6402,7 +6562,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6436,7 +6598,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6467,7 +6631,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6501,7 +6667,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6744,7 +6912,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6778,7 +6948,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6809,7 +6981,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6843,7 +7017,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7034,7 +7210,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7068,7 +7246,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7099,7 +7279,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7133,7 +7315,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7374,7 +7558,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7408,7 +7594,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7439,7 +7627,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7473,7 +7663,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7726,7 +7918,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7764,7 +7958,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7799,7 +7995,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7837,7 +8035,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8076,7 +8276,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8110,7 +8312,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8141,7 +8345,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8175,7 +8381,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8380,7 +8588,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8414,7 +8624,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8445,7 +8657,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8479,7 +8693,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8689,7 +8905,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8724,7 +8942,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8756,7 +8976,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8791,7 +9013,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8987,7 +9211,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9022,7 +9248,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9054,7 +9282,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9089,7 +9319,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9377,7 +9609,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9411,7 +9645,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9442,7 +9678,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9476,7 +9714,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9746,7 +9986,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9780,7 +10022,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9811,7 +10055,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9845,7 +10091,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10164,7 +10412,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10197,7 +10447,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10227,7 +10479,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10260,7 +10514,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10539,7 +10795,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10573,7 +10831,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10604,7 +10864,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10638,7 +10900,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10819,7 +11083,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10853,7 +11119,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10884,7 +11152,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10918,7 +11188,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11168,7 +11440,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11207,7 +11481,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11243,7 +11519,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11282,7 +11560,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11477,7 +11757,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11512,7 +11794,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11544,7 +11828,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11579,7 +11865,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11790,7 +12078,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11824,7 +12114,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11855,7 +12147,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11889,7 +12183,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12078,7 +12374,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12112,7 +12410,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12143,7 +12443,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12177,7 +12479,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12475,7 +12779,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12508,7 +12814,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12538,7 +12846,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12571,7 +12881,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13183,7 +13495,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_9slyux_smu/status.py b/src/tm_devices/commands/_9slyux_smu/status.py index 1bef2fec9..d8828e7b3 100644 --- a/src/tm_devices/commands/_9slyux_smu/status.py +++ b/src/tm_devices/commands/_9slyux_smu/status.py @@ -434,7 +434,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -468,7 +470,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -499,7 +503,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -533,7 +539,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -776,7 +784,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -810,7 +820,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -841,7 +853,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -875,7 +889,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1118,7 +1134,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1152,7 +1170,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1183,7 +1203,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1217,7 +1239,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1460,7 +1484,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1494,7 +1520,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1525,7 +1553,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1559,7 +1589,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1802,7 +1834,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1836,7 +1870,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1867,7 +1903,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1901,7 +1939,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2129,7 +2169,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2162,7 +2204,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2192,7 +2236,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2225,7 +2271,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2397,7 +2445,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2431,7 +2481,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2462,7 +2514,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2496,7 +2550,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2668,7 +2724,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2702,7 +2760,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2733,7 +2793,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2767,7 +2829,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3006,7 +3070,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3044,7 +3110,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3079,7 +3147,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3117,7 +3187,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3303,7 +3375,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3337,7 +3411,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3368,7 +3444,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3402,7 +3480,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3610,7 +3690,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3644,7 +3726,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3675,7 +3759,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3709,7 +3795,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3944,7 +4032,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3977,7 +4067,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4020,7 +4112,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4053,7 +4147,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4273,7 +4369,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4306,7 +4404,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4336,7 +4436,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4369,7 +4471,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4580,7 +4684,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4614,7 +4720,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4645,7 +4753,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4679,7 +4789,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4856,7 +4968,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4889,7 +5003,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4919,7 +5035,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4952,7 +5070,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5136,7 +5256,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5169,7 +5291,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5199,7 +5323,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5232,7 +5358,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5410,7 +5538,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5443,7 +5573,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5473,7 +5605,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5506,7 +5640,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5699,7 +5835,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5734,7 +5872,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5766,7 +5906,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5801,7 +5943,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5997,7 +6141,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6032,7 +6178,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6064,7 +6212,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6099,7 +6249,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6333,7 +6485,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6367,7 +6521,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6398,7 +6554,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6432,7 +6590,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6623,7 +6783,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6657,7 +6819,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6688,7 +6852,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6722,7 +6888,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6965,7 +7133,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6999,7 +7169,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7030,7 +7202,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7064,7 +7238,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7255,7 +7431,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7289,7 +7467,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7320,7 +7500,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7354,7 +7536,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7595,7 +7779,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7629,7 +7815,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7660,7 +7848,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7694,7 +7884,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7947,7 +8139,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7985,7 +8179,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8020,7 +8216,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8058,7 +8256,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8297,7 +8497,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8331,7 +8533,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8362,7 +8566,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8396,7 +8602,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8601,7 +8809,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8635,7 +8845,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8666,7 +8878,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8700,7 +8914,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8969,7 +9185,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9004,7 +9222,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9036,7 +9256,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9071,7 +9293,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9267,7 +9491,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9302,7 +9528,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9334,7 +9562,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9369,7 +9599,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9695,7 +9927,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9729,7 +9963,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9760,7 +9996,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9794,7 +10032,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10067,7 +10307,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10101,7 +10343,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10132,7 +10376,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10166,7 +10412,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10486,7 +10734,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10519,7 +10769,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10549,7 +10801,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10582,7 +10836,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10843,7 +11099,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10877,7 +11135,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10908,7 +11168,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10942,7 +11204,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11120,7 +11384,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11154,7 +11420,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11185,7 +11453,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11219,7 +11489,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11469,7 +11741,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11508,7 +11782,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11544,7 +11820,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11583,7 +11861,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11774,7 +12054,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11809,7 +12091,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11841,7 +12125,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11876,7 +12162,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12084,7 +12372,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12118,7 +12408,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12149,7 +12441,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12183,7 +12477,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12365,7 +12661,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12399,7 +12697,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12430,7 +12730,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12464,7 +12766,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12756,7 +13060,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12789,7 +13095,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12819,7 +13127,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12852,7 +13162,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13610,7 +13922,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/__init__.py b/src/tm_devices/commands/__init__.py index 8b680010f..26ecc7b1a 100644 --- a/src/tm_devices/commands/__init__.py +++ b/src/tm_devices/commands/__init__.py @@ -21,7 +21,9 @@ from ._dpo2kb_commands import DPO2KBCommandConstants, DPO2KBCommands, DPO2KBMixin from ._dpo4k_commands import DPO4KCommandConstants, DPO4KCommands, DPO4KMixin from ._dpo4kb_commands import DPO4KBCommandConstants, DPO4KBCommands, DPO4KBMixin +from ._dpo5k_commands import DPO5KCommandConstants, DPO5KCommands, DPO5KMixin from ._dpo5kb_commands import DPO5KBCommandConstants, DPO5KBCommands, DPO5KBMixin +from ._dpo7k_commands import DPO7KCommandConstants, DPO7KCommands, DPO7KMixin from ._dpo7kc_commands import DPO7KCCommandConstants, DPO7KCCommands, DPO7KCMixin from ._dpo70kc_commands import DPO70KCCommandConstants, DPO70KCCommands, DPO70KCMixin from ._dpo70kd_commands import DPO70KDCommandConstants, DPO70KDCommands, DPO70KDMixin @@ -45,6 +47,7 @@ from ._mso4kb_commands import MSO4KBCommandConstants, MSO4KBCommands, MSO4KBMixin from ._mso5_commands import MSO5CommandConstants, MSO5Commands, MSO5Mixin from ._mso5b_commands import MSO5BCommandConstants, MSO5BCommands, MSO5BMixin +from ._mso5k_commands import MSO5KCommandConstants, MSO5KCommands, MSO5KMixin from ._mso5kb_commands import MSO5KBCommandConstants, MSO5KBCommands, MSO5KBMixin from ._mso5lp_commands import MSO5LPCommandConstants, MSO5LPCommands, MSO5LPMixin from ._mso6_commands import MSO6CommandConstants, MSO6Commands, MSO6Mixin @@ -129,6 +132,9 @@ "DPO5KBCommandConstants", "DPO5KBCommands", "DPO5KBMixin", + "DPO5KCommandConstants", + "DPO5KCommands", + "DPO5KMixin", "DPO70KCCommandConstants", "DPO70KCCommands", "DPO70KCMixin", @@ -144,6 +150,9 @@ "DPO7KCCommandConstants", "DPO7KCCommands", "DPO7KCMixin", + "DPO7KCommandConstants", + "DPO7KCommands", + "DPO7KMixin", "DSA70KCCommandConstants", "DSA70KCCommands", "DSA70KCMixin", @@ -197,6 +206,9 @@ "MSO5KBCommandConstants", "MSO5KBCommands", "MSO5KBMixin", + "MSO5KCommandConstants", + "MSO5KCommands", + "MSO5KMixin", "MSO5LPCommandConstants", "MSO5LPCommands", "MSO5LPMixin", diff --git a/src/tm_devices/commands/_afg3k_commands.py b/src/tm_devices/commands/_afg3k_commands.py index 9a1024a02..d057ba55b 100644 --- a/src/tm_devices/commands/_afg3k_commands.py +++ b/src/tm_devices/commands/_afg3k_commands.py @@ -28,10 +28,10 @@ from ._22daqs_afg.trigger import Trigger from ._33ijgq_afgawg.abort import Abort from ._33ijgq_afgawg.calibration import Calibration -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/_afg3kb_commands.py b/src/tm_devices/commands/_afg3kb_commands.py index 02d005c62..4accb8645 100644 --- a/src/tm_devices/commands/_afg3kb_commands.py +++ b/src/tm_devices/commands/_afg3kb_commands.py @@ -28,10 +28,10 @@ from ._22daqs_afg.trigger import Trigger from ._33ijgq_afgawg.abort import Abort from ._33ijgq_afgawg.calibration import Calibration -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/_afg3kc_commands.py b/src/tm_devices/commands/_afg3kc_commands.py index 8629a9bfc..6df578d7b 100644 --- a/src/tm_devices/commands/_afg3kc_commands.py +++ b/src/tm_devices/commands/_afg3kc_commands.py @@ -28,10 +28,10 @@ from ._22daqs_afg.trigger import Trigger from ._33ijgq_afgawg.abort import Abort from ._33ijgq_afgawg.calibration import Calibration -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt # pylint: disable=too-few-public-methods diff --git a/src/tm_devices/commands/_ahkybr_smu/buffervar.py b/src/tm_devices/commands/_ahkybr_smu/buffervar.py index 52c383a51..9dc0a38ca 100644 --- a/src/tm_devices/commands/_ahkybr_smu/buffervar.py +++ b/src/tm_devices/commands/_ahkybr_smu/buffervar.py @@ -726,7 +726,9 @@ def n(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".n" - return self._device.query(f"print({self._cmd_syntax}.n)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.n)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1026,7 +1028,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1051,7 +1055,9 @@ def clearcache(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clearcache()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clearcache()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearcache()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ahkybr_smu/eventlog.py b/src/tm_devices/commands/_ahkybr_smu/eventlog.py index d242d55ab..69b02431f 100644 --- a/src/tm_devices/commands/_ahkybr_smu/eventlog.py +++ b/src/tm_devices/commands/_ahkybr_smu/eventlog.py @@ -275,7 +275,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ahkybr_smu/lan.py b/src/tm_devices/commands/_ahkybr_smu/lan.py index 9131abe04..bc8742b2c 100644 --- a/src/tm_devices/commands/_ahkybr_smu/lan.py +++ b/src/tm_devices/commands/_ahkybr_smu/lan.py @@ -244,7 +244,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -281,7 +283,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -559,7 +563,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -583,7 +589,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -607,7 +615,9 @@ def connect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.connect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.connect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -631,7 +641,9 @@ def disconnect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disconnect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disconnect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -704,7 +716,9 @@ def dst(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".dst" - return self._device.query(f"print({self._cmd_syntax}.dst)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.dst)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dst`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -869,7 +883,9 @@ def name(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".name" - return self._device.query(f"print({self._cmd_syntax}.name)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.name)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2348,7 +2364,9 @@ def applysettings(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.applysettings()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.applysettings()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.applysettings()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2369,7 +2387,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2390,7 +2410,9 @@ def restoredefaults(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.restoredefaults()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.restoredefaults()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restoredefaults()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ahkybr_smu/script.py b/src/tm_devices/commands/_ahkybr_smu/script.py index 312e3f739..cb1790838 100644 --- a/src/tm_devices/commands/_ahkybr_smu/script.py +++ b/src/tm_devices/commands/_ahkybr_smu/script.py @@ -234,7 +234,9 @@ def restore(self, name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.restore({name})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.restore({name})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -255,7 +257,9 @@ def run(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.run()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.run()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ahkybr_smu/scriptvar.py b/src/tm_devices/commands/_ahkybr_smu/scriptvar.py index d6c1f4882..048e2d4d1 100644 --- a/src/tm_devices/commands/_ahkybr_smu/scriptvar.py +++ b/src/tm_devices/commands/_ahkybr_smu/scriptvar.py @@ -145,7 +145,9 @@ def name(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".name" - return self._device.query(f"print({self._cmd_syntax}.name)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.name)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -180,7 +182,9 @@ def name(self, value: Union[str, float]) -> None: self._cmd_syntax + ".name", value ) else: - self._device.write(f"{self._cmd_syntax}.name = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.name = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -277,7 +281,9 @@ def list(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.list()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.list()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -301,7 +307,9 @@ def run(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.run()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.run()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ahkybr_smu/setup_1.py b/src/tm_devices/commands/_ahkybr_smu/setup_1.py index f47cb7c2b..b2ef95de2 100644 --- a/src/tm_devices/commands/_ahkybr_smu/setup_1.py +++ b/src/tm_devices/commands/_ahkybr_smu/setup_1.py @@ -122,7 +122,9 @@ def recall(self, id_: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.recall({id_})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.recall({id_})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -146,7 +148,9 @@ def save(self, id_: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save({id_})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save({id_})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ahkybr_smu/tspnet.py b/src/tm_devices/commands/_ahkybr_smu/tspnet.py index 949259de4..7a7330138 100644 --- a/src/tm_devices/commands/_ahkybr_smu/tspnet.py +++ b/src/tm_devices/commands/_ahkybr_smu/tspnet.py @@ -586,7 +586,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_aih9e2_smu/trigger.py b/src/tm_devices/commands/_aih9e2_smu/trigger.py index fe3002110..ca3fd5eb2 100644 --- a/src/tm_devices/commands/_aih9e2_smu/trigger.py +++ b/src/tm_devices/commands/_aih9e2_smu/trigger.py @@ -1,5 +1,6 @@ # ruff: noqa: D402,PLR0913 # pyright: reportConstantRedefinition=none +# pylint: disable=too-many-lines """The trigger commands module. These commands are used in the following models: @@ -496,7 +497,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -520,7 +523,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -597,7 +602,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -792,7 +799,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -816,7 +825,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -954,7 +965,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ak4990_smu/smux.py b/src/tm_devices/commands/_ak4990_smu/smux.py index 7ef3b6108..09de0b6b2 100644 --- a/src/tm_devices/commands/_ak4990_smu/smux.py +++ b/src/tm_devices/commands/_ak4990_smu/smux.py @@ -632,7 +632,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -828,7 +830,9 @@ def i(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.i({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.i({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -881,7 +885,9 @@ def p(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.p({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.p({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -906,7 +912,9 @@ def r(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.r({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.r({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -931,7 +939,9 @@ def v(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.v({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.v({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -956,7 +966,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1234,7 +1246,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1425,7 +1439,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1756,7 +1772,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2086,7 +2104,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2122,7 +2142,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3418,7 +3440,9 @@ def sink(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".sink" - return self._device.query(f"print({self._cmd_syntax}.sink)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.sink)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3454,7 +3478,9 @@ def sink(self, value: Union[str, float]) -> None: self._cmd_syntax + ".sink", value ) else: - self._device.write(f"{self._cmd_syntax}.sink = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.sink = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4362,7 +4388,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4400,7 +4428,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5326,7 +5356,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5362,7 +5394,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6180,7 +6214,9 @@ def check(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.check()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.check()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6209,7 +6245,9 @@ def r(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.r())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.r())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6338,7 +6376,9 @@ def date(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".date" - return self._device.query(f"print({self._cmd_syntax}.date)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.date)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6374,7 +6414,9 @@ def date(self, value: Union[str, float]) -> None: self._cmd_syntax + ".date", value ) else: - self._device.write(f"{self._cmd_syntax}.date = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.date = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6407,7 +6449,9 @@ def due(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".due" - return self._device.query(f"print({self._cmd_syntax}.due)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.due)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6443,7 +6487,9 @@ def due(self, value: Union[str, float]) -> None: self._cmd_syntax + ".due", value ) else: - self._device.write(f"{self._cmd_syntax}.due = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.due = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6498,7 +6544,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6629,7 +6677,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6682,7 +6732,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6706,7 +6758,9 @@ def unlock(self, password: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unlock({password})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unlock({password})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7360,7 +7414,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7565,7 +7621,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7590,7 +7648,9 @@ def savebuffer(self, y: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.savebuffer({y})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.savebuffer({y})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_am6pcr_smu/smux.py b/src/tm_devices/commands/_am6pcr_smu/smux.py index dd20348be..4b86f0b71 100644 --- a/src/tm_devices/commands/_am6pcr_smu/smux.py +++ b/src/tm_devices/commands/_am6pcr_smu/smux.py @@ -593,7 +593,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -769,7 +771,9 @@ def i(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.i({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.i({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -822,7 +826,9 @@ def p(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.p({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.p({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -847,7 +853,9 @@ def r(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.r({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.r({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -872,7 +880,9 @@ def v(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.v({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.v({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -893,7 +903,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1135,7 +1147,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1302,7 +1316,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1591,7 +1607,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1885,7 +1903,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1917,7 +1937,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3077,7 +3099,9 @@ def sink(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".sink" - return self._device.query(f"print({self._cmd_syntax}.sink)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.sink)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3109,7 +3133,9 @@ def sink(self, value: Union[str, float]) -> None: self._cmd_syntax + ".sink", value ) else: - self._device.write(f"{self._cmd_syntax}.sink = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.sink = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3925,7 +3951,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3959,7 +3987,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4033,7 +4063,9 @@ def adc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".adc" - return self._device.query(f"print({self._cmd_syntax}.adc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.adc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4069,7 +4101,9 @@ def adc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".adc", value ) else: - self._device.write(f"{self._cmd_syntax}.adc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.adc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4787,7 +4821,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4819,7 +4855,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5586,7 +5624,9 @@ def check(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.check()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.check()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5610,7 +5650,9 @@ def r(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.r())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.r())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5724,7 +5766,9 @@ def date(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".date" - return self._device.query(f"print({self._cmd_syntax}.date)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.date)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5756,7 +5800,9 @@ def date(self, value: Union[str, float]) -> None: self._cmd_syntax + ".date", value ) else: - self._device.write(f"{self._cmd_syntax}.date = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.date = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5785,7 +5831,9 @@ def due(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".due" - return self._device.query(f"print({self._cmd_syntax}.due)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.due)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5817,7 +5865,9 @@ def due(self, value: Union[str, float]) -> None: self._cmd_syntax + ".due", value ) else: - self._device.write(f"{self._cmd_syntax}.due = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.due = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5866,7 +5916,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5983,7 +6035,9 @@ def fastadc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.fastadc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.fastadc()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.fastadc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6004,7 +6058,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6053,7 +6109,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6077,7 +6135,9 @@ def unlock(self, password: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unlock({password})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unlock({password})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6694,7 +6754,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6895,7 +6957,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6920,7 +6984,9 @@ def savebuffer(self, y: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.savebuffer({y})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.savebuffer({y})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_am6pcr_smu/status.py b/src/tm_devices/commands/_am6pcr_smu/status.py index 5bf04671d..e2c99e46a 100644 --- a/src/tm_devices/commands/_am6pcr_smu/status.py +++ b/src/tm_devices/commands/_am6pcr_smu/status.py @@ -434,7 +434,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -467,7 +469,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -497,7 +501,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -530,7 +536,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -768,7 +776,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -801,7 +811,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -831,7 +843,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -864,7 +878,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1102,7 +1118,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1135,7 +1153,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1165,7 +1185,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1198,7 +1220,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1436,7 +1460,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1469,7 +1495,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1499,7 +1527,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1532,7 +1562,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1770,7 +1802,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1803,7 +1837,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1833,7 +1869,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1866,7 +1904,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2094,7 +2134,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2127,7 +2169,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2157,7 +2201,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2190,7 +2236,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2370,7 +2418,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2404,7 +2454,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2435,7 +2487,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2469,7 +2523,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2647,7 +2703,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2681,7 +2739,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2712,7 +2772,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2746,7 +2808,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2965,7 +3029,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2999,7 +3065,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3030,7 +3098,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3064,7 +3134,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3250,7 +3322,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3284,7 +3358,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3315,7 +3391,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3349,7 +3427,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3557,7 +3637,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3591,7 +3673,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3622,7 +3706,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3656,7 +3742,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3909,7 +3997,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3942,7 +4032,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3989,7 +4081,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4022,7 +4116,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4294,7 +4390,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4327,7 +4425,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4357,7 +4457,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4390,7 +4492,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4601,7 +4705,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4635,7 +4741,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4666,7 +4774,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4700,7 +4810,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4877,7 +4989,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4910,7 +5024,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4940,7 +5056,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4973,7 +5091,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5157,7 +5277,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5190,7 +5312,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5220,7 +5344,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5253,7 +5379,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5431,7 +5559,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5464,7 +5594,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5494,7 +5626,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5527,7 +5661,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5715,7 +5851,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5749,7 +5887,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5780,7 +5920,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5814,7 +5956,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6005,7 +6149,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6039,7 +6185,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6070,7 +6218,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6104,7 +6254,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6338,7 +6490,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6372,7 +6526,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6403,7 +6559,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6437,7 +6595,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6628,7 +6788,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6662,7 +6824,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6693,7 +6857,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6727,7 +6893,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6970,7 +7138,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7004,7 +7174,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7035,7 +7207,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7069,7 +7243,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7260,7 +7436,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7294,7 +7472,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7325,7 +7505,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7359,7 +7541,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7600,7 +7784,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7634,7 +7820,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7665,7 +7853,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7699,7 +7889,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7932,7 +8124,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7966,7 +8160,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7997,7 +8193,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8031,7 +8229,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8270,7 +8470,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8304,7 +8506,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8335,7 +8539,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8369,7 +8575,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8574,7 +8782,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8608,7 +8818,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8639,7 +8851,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8673,7 +8887,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8937,7 +9153,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8971,7 +9189,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9002,7 +9222,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9036,7 +9258,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9227,7 +9451,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9261,7 +9487,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9292,7 +9520,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9326,7 +9556,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9652,7 +9884,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9686,7 +9920,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9717,7 +9953,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9751,7 +9989,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10024,7 +10264,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10058,7 +10300,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10089,7 +10333,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10123,7 +10369,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10443,7 +10691,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10476,7 +10726,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10506,7 +10758,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10539,7 +10793,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10817,7 +11073,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10851,7 +11109,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10882,7 +11142,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10916,7 +11178,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11088,7 +11352,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11122,7 +11388,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11153,7 +11421,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11187,7 +11457,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11365,7 +11637,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11399,7 +11673,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11430,7 +11706,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11464,7 +11742,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11694,7 +11974,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11729,7 +12011,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11761,7 +12045,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11796,7 +12082,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11987,7 +12275,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12022,7 +12312,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12054,7 +12346,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12089,7 +12383,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12297,7 +12593,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12331,7 +12629,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12362,7 +12662,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12396,7 +12698,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12578,7 +12882,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12612,7 +12918,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12643,7 +12951,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12677,7 +12987,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12971,7 +13283,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13004,7 +13318,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13034,7 +13350,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13067,7 +13385,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13845,7 +14165,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_amm5lc_smu/digio.py b/src/tm_devices/commands/_amm5lc_smu/digio.py index 8117558a2..25444e2d0 100644 --- a/src/tm_devices/commands/_amm5lc_smu/digio.py +++ b/src/tm_devices/commands/_amm5lc_smu/digio.py @@ -102,7 +102,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -140,7 +142,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -350,7 +354,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -375,7 +381,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -400,7 +408,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -425,7 +435,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -728,7 +740,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_amm5lc_smu/tsplink.py b/src/tm_devices/commands/_amm5lc_smu/tsplink.py index 504afb4fc..a9cc492e1 100644 --- a/src/tm_devices/commands/_amm5lc_smu/tsplink.py +++ b/src/tm_devices/commands/_amm5lc_smu/tsplink.py @@ -107,7 +107,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -144,7 +146,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -354,7 +358,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -379,7 +385,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -404,7 +412,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -429,7 +439,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -655,7 +667,9 @@ def node(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".node" - return self._device.query(f"print({self._cmd_syntax}.node)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.node)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -688,7 +702,9 @@ def node(self, value: Union[str, float]) -> None: self._cmd_syntax + ".node", value ) else: - self._device.write(f"{self._cmd_syntax}.node = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.node = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -953,7 +969,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_aostep_smu/serial.py b/src/tm_devices/commands/_aostep_smu/serial.py index a040f2408..655e8568e 100644 --- a/src/tm_devices/commands/_aostep_smu/serial.py +++ b/src/tm_devices/commands/_aostep_smu/serial.py @@ -86,7 +86,9 @@ def baud(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".baud" - return self._device.query(f"print({self._cmd_syntax}.baud)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.baud)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -118,7 +120,9 @@ def baud(self, value: Union[str, float]) -> None: self._cmd_syntax + ".baud", value ) else: - self._device.write(f"{self._cmd_syntax}.baud = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.baud = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.baud`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -372,7 +376,9 @@ def write(self, data: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.write("{data}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.write("{data}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.write()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_aqr1t1_smu/localnode.py b/src/tm_devices/commands/_aqr1t1_smu/localnode.py index 4a409542b..bc25a34c5 100644 --- a/src/tm_devices/commands/_aqr1t1_smu/localnode.py +++ b/src/tm_devices/commands/_aqr1t1_smu/localnode.py @@ -379,7 +379,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -736,7 +738,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_as1ejq_smu/localnode.py b/src/tm_devices/commands/_as1ejq_smu/localnode.py index 9e92587e1..9b19245ac 100644 --- a/src/tm_devices/commands/_as1ejq_smu/localnode.py +++ b/src/tm_devices/commands/_as1ejq_smu/localnode.py @@ -308,7 +308,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -665,7 +667,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_as1ejq_smu/smux.py b/src/tm_devices/commands/_as1ejq_smu/smux.py index 23ce4dec0..d7c9a3382 100644 --- a/src/tm_devices/commands/_as1ejq_smu/smux.py +++ b/src/tm_devices/commands/_as1ejq_smu/smux.py @@ -593,7 +593,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -769,7 +771,9 @@ def i(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.i({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.i({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.i()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -822,7 +826,9 @@ def p(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.p({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.p({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.p()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -847,7 +853,9 @@ def r(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.r({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.r({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -872,7 +880,9 @@ def v(self, rbuffer: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.v({rbuffer})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.v({rbuffer})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.v()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -893,7 +903,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1135,7 +1147,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1302,7 +1316,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1591,7 +1607,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1885,7 +1903,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1917,7 +1937,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3077,7 +3099,9 @@ def sink(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".sink" - return self._device.query(f"print({self._cmd_syntax}.sink)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.sink)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3109,7 +3133,9 @@ def sink(self, value: Union[str, float]) -> None: self._cmd_syntax + ".sink", value ) else: - self._device.write(f"{self._cmd_syntax}.sink = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.sink = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.sink`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3925,7 +3951,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3959,7 +3987,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4032,7 +4062,9 @@ def adc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".adc" - return self._device.query(f"print({self._cmd_syntax}.adc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.adc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4068,7 +4100,9 @@ def adc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".adc", value ) else: - self._device.write(f"{self._cmd_syntax}.adc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.adc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.adc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4715,7 +4749,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4747,7 +4783,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5514,7 +5552,9 @@ def check(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.check()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.check()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.check()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5538,7 +5578,9 @@ def r(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.r())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.r())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.r()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5653,7 +5695,9 @@ def date(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".date" - return self._device.query(f"print({self._cmd_syntax}.date)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.date)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5685,7 +5729,9 @@ def date(self, value: Union[str, float]) -> None: self._cmd_syntax + ".date", value ) else: - self._device.write(f"{self._cmd_syntax}.date = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.date = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.date`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5714,7 +5760,9 @@ def due(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".due" - return self._device.query(f"print({self._cmd_syntax}.due)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.due)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5746,7 +5794,9 @@ def due(self, value: Union[str, float]) -> None: self._cmd_syntax + ".due", value ) else: - self._device.write(f"{self._cmd_syntax}.due = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.due = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.due`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5795,7 +5845,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5912,7 +5964,9 @@ def fastadc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.fastadc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.fastadc()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.fastadc()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5933,7 +5987,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5954,7 +6010,9 @@ def ovp(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.ovp()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ovp()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.ovp()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6003,7 +6061,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6027,7 +6087,9 @@ def unlock(self, password: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unlock({password})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unlock({password})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unlock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6644,7 +6706,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6845,7 +6909,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6870,7 +6936,9 @@ def savebuffer(self, y: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.savebuffer({y})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.savebuffer({y})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.savebuffer()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_as1ejq_smu/status.py b/src/tm_devices/commands/_as1ejq_smu/status.py index 68adf1c04..aaf0d8006 100644 --- a/src/tm_devices/commands/_as1ejq_smu/status.py +++ b/src/tm_devices/commands/_as1ejq_smu/status.py @@ -439,7 +439,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -472,7 +474,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -502,7 +506,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -535,7 +541,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -773,7 +781,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -806,7 +816,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -836,7 +848,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -869,7 +883,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1107,7 +1123,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1140,7 +1158,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1170,7 +1190,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1203,7 +1225,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1441,7 +1465,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1474,7 +1500,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1504,7 +1532,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1537,7 +1567,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1775,7 +1807,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1808,7 +1842,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1838,7 +1874,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1871,7 +1909,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2099,7 +2139,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2132,7 +2174,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2162,7 +2206,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2195,7 +2241,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2375,7 +2423,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2409,7 +2459,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2440,7 +2492,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2474,7 +2528,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2652,7 +2708,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2686,7 +2744,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2717,7 +2777,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2751,7 +2813,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2970,7 +3034,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3004,7 +3070,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3035,7 +3103,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3069,7 +3139,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3255,7 +3327,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3289,7 +3363,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3320,7 +3396,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3354,7 +3432,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3562,7 +3642,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3596,7 +3678,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3627,7 +3711,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3661,7 +3747,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3914,7 +4002,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3947,7 +4037,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3994,7 +4086,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4027,7 +4121,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4299,7 +4395,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4332,7 +4430,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4362,7 +4462,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4395,7 +4497,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4606,7 +4710,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4640,7 +4746,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4671,7 +4779,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4705,7 +4815,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4882,7 +4994,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4915,7 +5029,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4945,7 +5061,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4978,7 +5096,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5162,7 +5282,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5195,7 +5317,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5225,7 +5349,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5258,7 +5384,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5436,7 +5564,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5469,7 +5599,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5499,7 +5631,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5532,7 +5666,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5720,7 +5856,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5754,7 +5892,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5785,7 +5925,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5819,7 +5961,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6010,7 +6154,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6044,7 +6190,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6075,7 +6223,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6109,7 +6259,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6343,7 +6495,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6377,7 +6531,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6408,7 +6564,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6442,7 +6600,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6633,7 +6793,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6667,7 +6829,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6698,7 +6862,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6732,7 +6898,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6975,7 +7143,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7009,7 +7179,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7040,7 +7212,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7074,7 +7248,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7265,7 +7441,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7299,7 +7477,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7330,7 +7510,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7364,7 +7546,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7605,7 +7789,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7639,7 +7825,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7670,7 +7858,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7704,7 +7894,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7937,7 +8129,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7971,7 +8165,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8002,7 +8198,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8036,7 +8234,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8275,7 +8475,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8309,7 +8511,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8340,7 +8544,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8374,7 +8580,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8579,7 +8787,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8613,7 +8823,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8644,7 +8856,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8678,7 +8892,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8942,7 +9158,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8976,7 +9194,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9007,7 +9227,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9041,7 +9263,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9232,7 +9456,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9266,7 +9492,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9297,7 +9525,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9331,7 +9561,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9657,7 +9889,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9691,7 +9925,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9722,7 +9958,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9756,7 +9994,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10029,7 +10269,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10063,7 +10305,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10094,7 +10338,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10128,7 +10374,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10448,7 +10696,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10481,7 +10731,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10511,7 +10763,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10544,7 +10798,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10822,7 +11078,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10856,7 +11114,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10887,7 +11147,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10921,7 +11183,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11093,7 +11357,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11127,7 +11393,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11158,7 +11426,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11192,7 +11462,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11370,7 +11642,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11404,7 +11678,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11435,7 +11711,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11469,7 +11747,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11641,7 +11921,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11675,7 +11957,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11706,7 +11990,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11740,7 +12026,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11970,7 +12258,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12005,7 +12295,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12037,7 +12329,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12072,7 +12366,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12263,7 +12559,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12298,7 +12596,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12330,7 +12630,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12365,7 +12667,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12573,7 +12877,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12607,7 +12913,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12638,7 +12946,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12672,7 +12982,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12854,7 +13166,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12888,7 +13202,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12919,7 +13235,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12953,7 +13271,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13249,7 +13569,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13282,7 +13604,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13325,7 +13649,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13358,7 +13684,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -14137,7 +14465,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_at7jl1_smu/display.py b/src/tm_devices/commands/_at7jl1_smu/display.py index fae42ef98..424bb650f 100644 --- a/src/tm_devices/commands/_at7jl1_smu/display.py +++ b/src/tm_devices/commands/_at7jl1_smu/display.py @@ -112,7 +112,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -187,7 +189,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -224,7 +228,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -271,7 +277,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -309,7 +317,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1049,7 +1059,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1406,7 +1418,9 @@ def settext(self, text: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.settext("{text}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.settext("{text}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_au597k_smu/digio.py b/src/tm_devices/commands/_au597k_smu/digio.py index 86985f3c2..16f770adc 100644 --- a/src/tm_devices/commands/_au597k_smu/digio.py +++ b/src/tm_devices/commands/_au597k_smu/digio.py @@ -101,7 +101,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -138,7 +140,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -346,7 +350,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -370,7 +376,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -394,7 +402,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -418,7 +428,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -714,7 +726,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_au597k_smu/format.py b/src/tm_devices/commands/_au597k_smu/format.py index 3d1c4ec50..c851bd1eb 100644 --- a/src/tm_devices/commands/_au597k_smu/format.py +++ b/src/tm_devices/commands/_au597k_smu/format.py @@ -283,7 +283,9 @@ def data(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".data" - return self._device.query(f"print({self._cmd_syntax}.data)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.data)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -316,7 +318,9 @@ def data(self, value: Union[str, float]) -> None: self._cmd_syntax + ".data", value ) else: - self._device.write(f"{self._cmd_syntax}.data = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.data = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_au597k_smu/tsplink.py b/src/tm_devices/commands/_au597k_smu/tsplink.py index c92dec5a0..90e52dc1c 100644 --- a/src/tm_devices/commands/_au597k_smu/tsplink.py +++ b/src/tm_devices/commands/_au597k_smu/tsplink.py @@ -106,7 +106,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -142,7 +144,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -352,7 +356,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -376,7 +382,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -400,7 +408,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -425,7 +435,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -646,7 +658,9 @@ def node(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".node" - return self._device.query(f"print({self._cmd_syntax}.node)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.node)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -678,7 +692,9 @@ def node(self, value: Union[str, float]) -> None: self._cmd_syntax + ".node", value ) else: - self._device.write(f"{self._cmd_syntax}.node = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.node = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -935,7 +951,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_auyr50_smu/format.py b/src/tm_devices/commands/_auyr50_smu/format.py index d55adba76..d4977e7e1 100644 --- a/src/tm_devices/commands/_auyr50_smu/format.py +++ b/src/tm_devices/commands/_auyr50_smu/format.py @@ -271,7 +271,9 @@ def data(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".data" - return self._device.query(f"print({self._cmd_syntax}.data)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.data)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -304,7 +306,9 @@ def data(self, value: Union[str, float]) -> None: self._cmd_syntax + ".data", value ) else: - self._device.write(f"{self._cmd_syntax}.data = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.data = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_auyr50_smu/localnode.py b/src/tm_devices/commands/_auyr50_smu/localnode.py index cac4c4ae5..6acf47b16 100644 --- a/src/tm_devices/commands/_auyr50_smu/localnode.py +++ b/src/tm_devices/commands/_auyr50_smu/localnode.py @@ -379,7 +379,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -736,7 +738,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_avh0iw_smu/display.py b/src/tm_devices/commands/_avh0iw_smu/display.py index 7e1d463f4..85e03783d 100644 --- a/src/tm_devices/commands/_avh0iw_smu/display.py +++ b/src/tm_devices/commands/_avh0iw_smu/display.py @@ -112,7 +112,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -179,7 +181,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -212,7 +216,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -250,7 +256,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -283,7 +291,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -960,7 +970,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1318,7 +1330,9 @@ def settext(self, text: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.settext("{text}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.settext("{text}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.settext()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_avh0iw_smu/trigger.py b/src/tm_devices/commands/_avh0iw_smu/trigger.py index be5a88528..98cd9ceae 100644 --- a/src/tm_devices/commands/_avh0iw_smu/trigger.py +++ b/src/tm_devices/commands/_avh0iw_smu/trigger.py @@ -495,7 +495,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -519,7 +521,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -762,7 +766,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -786,7 +792,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -918,7 +926,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_awg5200_commands.py b/src/tm_devices/commands/_awg5200_commands.py index 37ad20812..d4257c1fe 100644 --- a/src/tm_devices/commands/_awg5200_commands.py +++ b/src/tm_devices/commands/_awg5200_commands.py @@ -31,11 +31,11 @@ from ._3n9auv_awg.slist import Slist from ._3n9auv_awg.status import Status from ._3n9auv_awg.wplugin import Wplugin -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_awg5k_commands.py b/src/tm_devices/commands/_awg5k_commands.py index 6c674d900..8c1058021 100644 --- a/src/tm_devices/commands/_awg5k_commands.py +++ b/src/tm_devices/commands/_awg5k_commands.py @@ -24,11 +24,11 @@ from ._32dszm_awg.wlist import Wlist from ._33ijgq_afgawg.abort import Abort from ._33ijgq_afgawg.calibration import Calibration -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_awg5kc_commands.py b/src/tm_devices/commands/_awg5kc_commands.py index a8c066c77..1c39e2985 100644 --- a/src/tm_devices/commands/_awg5kc_commands.py +++ b/src/tm_devices/commands/_awg5kc_commands.py @@ -24,11 +24,11 @@ from ._32dszm_awg.wlist import Wlist from ._33ijgq_afgawg.abort import Abort from ._33ijgq_afgawg.calibration import Calibration -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_awg70ka_commands.py b/src/tm_devices/commands/_awg70ka_commands.py index e2f638f6d..e6e50fe69 100644 --- a/src/tm_devices/commands/_awg70ka_commands.py +++ b/src/tm_devices/commands/_awg70ka_commands.py @@ -30,11 +30,11 @@ from ._3rs8qy_awg.system import System from ._3rs8qy_awg.trigger import Trigger from ._3rs8qy_awg.wlist import Wlist -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_awg70kb_commands.py b/src/tm_devices/commands/_awg70kb_commands.py index 1792f8a4f..f70fa382a 100644 --- a/src/tm_devices/commands/_awg70kb_commands.py +++ b/src/tm_devices/commands/_awg70kb_commands.py @@ -30,11 +30,11 @@ from ._3rs8qy_awg.system import System from ._3rs8qy_awg.trigger import Trigger from ._3rs8qy_awg.wlist import Wlist -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_awg7k_commands.py b/src/tm_devices/commands/_awg7k_commands.py index 9b687f5d4..da28e7e32 100644 --- a/src/tm_devices/commands/_awg7k_commands.py +++ b/src/tm_devices/commands/_awg7k_commands.py @@ -24,11 +24,11 @@ from ._32dszm_awg.wlist import Wlist from ._33ijgq_afgawg.abort import Abort from ._33ijgq_afgawg.calibration import Calibration -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_awg7kc_commands.py b/src/tm_devices/commands/_awg7kc_commands.py index 98a51a172..19751fa4b 100644 --- a/src/tm_devices/commands/_awg7kc_commands.py +++ b/src/tm_devices/commands/_awg7kc_commands.py @@ -24,11 +24,11 @@ from ._32dszm_awg.wlist import Wlist from ._33ijgq_afgawg.abort import Abort from ._33ijgq_afgawg.calibration import Calibration -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_awhjao_smu/status.py b/src/tm_devices/commands/_awhjao_smu/status.py index 6c18661c1..8f4ff8108 100644 --- a/src/tm_devices/commands/_awhjao_smu/status.py +++ b/src/tm_devices/commands/_awhjao_smu/status.py @@ -434,7 +434,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -468,7 +470,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -499,7 +503,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -533,7 +539,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -776,7 +784,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -810,7 +820,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -841,7 +853,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -875,7 +889,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1118,7 +1134,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1152,7 +1170,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1183,7 +1203,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1217,7 +1239,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1460,7 +1484,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1494,7 +1520,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1525,7 +1553,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1559,7 +1589,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1802,7 +1834,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1836,7 +1870,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1867,7 +1903,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1901,7 +1939,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2129,7 +2169,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2162,7 +2204,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2192,7 +2236,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2225,7 +2271,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2408,7 +2456,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2442,7 +2492,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2473,7 +2525,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2507,7 +2561,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2688,7 +2744,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2722,7 +2780,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2753,7 +2813,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2787,7 +2849,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3026,7 +3090,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3064,7 +3130,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3099,7 +3167,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3137,7 +3207,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3327,7 +3399,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3361,7 +3435,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3392,7 +3468,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3426,7 +3504,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3638,7 +3718,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3672,7 +3754,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3703,7 +3787,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3737,7 +3823,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4001,7 +4089,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4034,7 +4124,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4083,7 +4175,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4116,7 +4210,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4390,7 +4486,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4423,7 +4521,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4453,7 +4553,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4486,7 +4588,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4701,7 +4805,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4735,7 +4841,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4766,7 +4874,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4800,7 +4910,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4980,7 +5092,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5013,7 +5127,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5043,7 +5159,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5076,7 +5194,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5260,7 +5380,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5293,7 +5415,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5323,7 +5447,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5356,7 +5482,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5538,7 +5666,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5571,7 +5701,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5601,7 +5733,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5634,7 +5768,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5827,7 +5963,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5862,7 +6000,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5894,7 +6034,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5929,7 +6071,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6125,7 +6269,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6160,7 +6306,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6192,7 +6340,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6227,7 +6377,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6461,7 +6613,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6495,7 +6649,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6526,7 +6682,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6560,7 +6718,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6751,7 +6911,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6785,7 +6947,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6816,7 +6980,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6850,7 +7016,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7093,7 +7261,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7127,7 +7297,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7158,7 +7330,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7192,7 +7366,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7383,7 +7559,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7417,7 +7595,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7448,7 +7628,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7482,7 +7664,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7723,7 +7907,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7757,7 +7943,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7788,7 +7976,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7822,7 +8012,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8075,7 +8267,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8113,7 +8307,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8148,7 +8344,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8186,7 +8384,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8425,7 +8625,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8459,7 +8661,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8490,7 +8694,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8524,7 +8730,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8729,7 +8937,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8763,7 +8973,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8794,7 +9006,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -8828,7 +9042,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9097,7 +9313,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9132,7 +9350,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9164,7 +9384,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9199,7 +9421,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9395,7 +9619,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9430,7 +9656,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9462,7 +9690,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9497,7 +9727,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9827,7 +10059,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9861,7 +10095,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9892,7 +10128,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -9926,7 +10164,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10202,7 +10442,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10236,7 +10478,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10267,7 +10511,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10301,7 +10547,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10626,7 +10874,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10659,7 +10909,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10689,7 +10941,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -10722,7 +10976,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11007,7 +11263,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11041,7 +11299,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11072,7 +11332,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11106,7 +11368,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11287,7 +11551,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11321,7 +11587,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11352,7 +11620,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11386,7 +11656,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11636,7 +11908,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11675,7 +11949,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11711,7 +11987,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11750,7 +12028,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11945,7 +12225,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -11980,7 +12262,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12012,7 +12296,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12047,7 +12333,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12258,7 +12546,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12292,7 +12582,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12323,7 +12615,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12357,7 +12651,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12546,7 +12842,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12580,7 +12878,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12611,7 +12911,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12645,7 +12947,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12943,7 +13247,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -12976,7 +13282,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13006,7 +13314,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13039,7 +13349,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -13812,7 +14124,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_by991s_smudaq/digio.py b/src/tm_devices/commands/_by991s_smudaq/digio.py index 06797cc70..b7509060a 100644 --- a/src/tm_devices/commands/_by991s_smudaq/digio.py +++ b/src/tm_devices/commands/_by991s_smudaq/digio.py @@ -72,7 +72,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -108,7 +110,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -207,7 +211,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -320,7 +326,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_by991s_smudaq/status.py b/src/tm_devices/commands/_by991s_smudaq/status.py index f8d45c0b0..9e35113fb 100644 --- a/src/tm_devices/commands/_by991s_smudaq/status.py +++ b/src/tm_devices/commands/_by991s_smudaq/status.py @@ -781,7 +781,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -802,7 +804,9 @@ def preset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.preset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.preset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.preset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/buffervar.py b/src/tm_devices/commands/_canxny_daq/buffervar.py index 98dbb993e..a9ce1e823 100644 --- a/src/tm_devices/commands/_canxny_daq/buffervar.py +++ b/src/tm_devices/commands/_canxny_daq/buffervar.py @@ -629,7 +629,9 @@ def n(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".n" - return self._device.query(f"print({self._cmd_syntax}.n)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.n)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -886,7 +888,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/display.py b/src/tm_devices/commands/_canxny_daq/display.py index 34d98a2dd..f4a00aa08 100644 --- a/src/tm_devices/commands/_canxny_daq/display.py +++ b/src/tm_devices/commands/_canxny_daq/display.py @@ -719,7 +719,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/dmm.py b/src/tm_devices/commands/_canxny_daq/dmm.py index 0394768d4..0c6c9e29f 100644 --- a/src/tm_devices/commands/_canxny_daq/dmm.py +++ b/src/tm_devices/commands/_canxny_daq/dmm.py @@ -1413,7 +1413,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1611,7 +1613,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1645,7 +1649,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2581,7 +2587,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2615,7 +2623,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3398,7 +3408,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3430,7 +3442,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3620,7 +3634,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3653,7 +3669,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4592,7 +4610,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4625,7 +4645,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5736,7 +5758,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6179,7 +6203,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6214,7 +6240,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6641,7 +6669,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6673,7 +6703,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6943,7 +6975,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6976,7 +7010,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -7815,7 +7851,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/scan.py b/src/tm_devices/commands/_canxny_daq/scan.py index 9606eaaf3..ab170545d 100644 --- a/src/tm_devices/commands/_canxny_daq/scan.py +++ b/src/tm_devices/commands/_canxny_daq/scan.py @@ -420,7 +420,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -453,7 +455,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -966,7 +970,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -998,7 +1004,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/slot.py b/src/tm_devices/commands/_canxny_daq/slot.py index 4826b01ff..6b306b31e 100644 --- a/src/tm_devices/commands/_canxny_daq/slot.py +++ b/src/tm_devices/commands/_canxny_daq/slot.py @@ -268,7 +268,9 @@ def rows(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".rows" - return self._device.query(f"print({self._cmd_syntax}.rows)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.rows)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.rows`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -721,7 +723,9 @@ def idn(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".idn" - return self._device.query(f"print({self._cmd_syntax}.idn)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.idn)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/trigger.py b/src/tm_devices/commands/_canxny_daq/trigger.py index e120c393c..8dfeb64ec 100644 --- a/src/tm_devices/commands/_canxny_daq/trigger.py +++ b/src/tm_devices/commands/_canxny_daq/trigger.py @@ -383,7 +383,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -407,7 +409,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -455,7 +459,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -492,7 +498,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -549,7 +557,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1284,7 +1294,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1308,7 +1320,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1421,7 +1435,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1497,7 +1513,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1608,7 +1626,9 @@ def load_empty(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.load()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.load()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1784,7 +1804,9 @@ def pause(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.pause()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.pause()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1805,7 +1827,9 @@ def resume(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.resume()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.resume()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2979,7 +3003,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3003,7 +3029,9 @@ def connect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.connect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.connect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3027,7 +3055,9 @@ def disconnect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disconnect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disconnect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3075,7 +3105,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3112,7 +3144,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3168,7 +3202,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3366,7 +3402,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3407,7 +3445,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3440,7 +3480,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3490,7 +3532,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3549,7 +3593,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3821,7 +3867,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3845,7 +3893,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3893,7 +3943,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3930,7 +3982,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3990,7 +4044,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4204,7 +4260,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4228,7 +4286,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4919,7 +4979,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/tsplink.py b/src/tm_devices/commands/_canxny_daq/tsplink.py index 8edfc63d2..96886c8b0 100644 --- a/src/tm_devices/commands/_canxny_daq/tsplink.py +++ b/src/tm_devices/commands/_canxny_daq/tsplink.py @@ -140,7 +140,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -318,7 +320,9 @@ def node(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".node" - return self._device.query(f"print({self._cmd_syntax}.node)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.node)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -350,7 +354,9 @@ def node(self, value: Union[str, float]) -> None: self._cmd_syntax + ".node", value ) else: - self._device.write(f"{self._cmd_syntax}.node = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.node = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -459,7 +465,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_canxny_daq/upgrade.py b/src/tm_devices/commands/_canxny_daq/upgrade.py index 2613077cc..611385308 100644 --- a/src/tm_devices/commands/_canxny_daq/upgrade.py +++ b/src/tm_devices/commands/_canxny_daq/upgrade.py @@ -77,7 +77,9 @@ def unit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d6b496_dmm/acal.py b/src/tm_devices/commands/_d6b496_dmm/acal.py index 6d569f68f..7d63ea097 100644 --- a/src/tm_devices/commands/_d6b496_dmm/acal.py +++ b/src/tm_devices/commands/_d6b496_dmm/acal.py @@ -60,7 +60,9 @@ def time(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".time" - return self._device.query(f"print({self._cmd_syntax}.time)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.time)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -157,7 +159,9 @@ def time(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".time" - return self._device.query(f"print({self._cmd_syntax}.time)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.time)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.time`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -271,7 +275,9 @@ def run(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.run()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.run()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d6b496_dmm/buffervar.py b/src/tm_devices/commands/_d6b496_dmm/buffervar.py index 251d45285..37b067d50 100644 --- a/src/tm_devices/commands/_d6b496_dmm/buffervar.py +++ b/src/tm_devices/commands/_d6b496_dmm/buffervar.py @@ -586,7 +586,9 @@ def n(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".n" - return self._device.query(f"print({self._cmd_syntax}.n)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.n)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -841,7 +843,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d6b496_dmm/display.py b/src/tm_devices/commands/_d6b496_dmm/display.py index c60ea5463..2aa78f122 100644 --- a/src/tm_devices/commands/_d6b496_dmm/display.py +++ b/src/tm_devices/commands/_d6b496_dmm/display.py @@ -621,7 +621,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d6b496_dmm/dmm.py b/src/tm_devices/commands/_d6b496_dmm/dmm.py index daadf886e..962019a35 100644 --- a/src/tm_devices/commands/_d6b496_dmm/dmm.py +++ b/src/tm_devices/commands/_d6b496_dmm/dmm.py @@ -1651,7 +1651,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1849,7 +1851,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1883,7 +1887,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2926,7 +2932,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2960,7 +2968,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3730,7 +3740,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3762,7 +3774,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3951,7 +3965,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3984,7 +4000,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4723,7 +4741,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4756,7 +4776,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4997,7 +5019,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5030,7 +5054,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5820,7 +5846,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -5855,7 +5883,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -6270,7 +6300,9 @@ def reset(self, scope: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset({scope})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset({scope})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d6b496_dmm/localnode.py b/src/tm_devices/commands/_d6b496_dmm/localnode.py index e2ed5c2cc..f15b7816f 100644 --- a/src/tm_devices/commands/_d6b496_dmm/localnode.py +++ b/src/tm_devices/commands/_d6b496_dmm/localnode.py @@ -278,7 +278,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -562,7 +564,9 @@ def gettime(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.gettime()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.gettime()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d6b496_dmm/trigger.py b/src/tm_devices/commands/_d6b496_dmm/trigger.py index 2c61e31c0..8a83e7468 100644 --- a/src/tm_devices/commands/_d6b496_dmm/trigger.py +++ b/src/tm_devices/commands/_d6b496_dmm/trigger.py @@ -379,7 +379,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -403,7 +405,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -451,7 +455,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -488,7 +494,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -545,7 +553,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1280,7 +1290,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1304,7 +1316,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1410,7 +1424,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1486,7 +1502,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1550,7 +1568,9 @@ def load_empty(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.load()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.load()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1790,7 +1810,9 @@ def pause(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.pause()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.pause()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1811,7 +1833,9 @@ def resume(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.resume()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.resume()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2856,7 +2880,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2880,7 +2906,9 @@ def connect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.connect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.connect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2904,7 +2932,9 @@ def disconnect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disconnect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disconnect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2952,7 +2982,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2989,7 +3021,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3045,7 +3079,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3243,7 +3279,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3284,7 +3322,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3317,7 +3357,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3368,7 +3410,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3427,7 +3471,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3699,7 +3745,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3723,7 +3771,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3771,7 +3821,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3808,7 +3860,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3868,7 +3922,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4082,7 +4138,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4106,7 +4164,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4766,7 +4826,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d83qe0_dmm/buffervar.py b/src/tm_devices/commands/_d83qe0_dmm/buffervar.py index 2d0de9b83..d71672c16 100644 --- a/src/tm_devices/commands/_d83qe0_dmm/buffervar.py +++ b/src/tm_devices/commands/_d83qe0_dmm/buffervar.py @@ -622,7 +622,9 @@ def n(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".n" - return self._device.query(f"print({self._cmd_syntax}.n)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.n)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -877,7 +879,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d83qe0_dmm/display.py b/src/tm_devices/commands/_d83qe0_dmm/display.py index 2be2f0711..8747c4823 100644 --- a/src/tm_devices/commands/_d83qe0_dmm/display.py +++ b/src/tm_devices/commands/_d83qe0_dmm/display.py @@ -692,7 +692,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d83qe0_dmm/dmm.py b/src/tm_devices/commands/_d83qe0_dmm/dmm.py index cd4b11d9f..330b94eb7 100644 --- a/src/tm_devices/commands/_d83qe0_dmm/dmm.py +++ b/src/tm_devices/commands/_d83qe0_dmm/dmm.py @@ -1304,7 +1304,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1502,7 +1504,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1536,7 +1540,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2183,7 +2189,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2217,7 +2225,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2904,7 +2914,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2936,7 +2948,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3125,7 +3139,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3158,7 +3174,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4028,7 +4046,9 @@ def unit(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".unit" - return self._device.query(f"print({self._cmd_syntax}.unit)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.unit)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4061,7 +4081,9 @@ def unit(self, value: Union[str, float]) -> None: self._cmd_syntax + ".unit", value ) else: - self._device.write(f"{self._cmd_syntax}.unit = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.unit`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4549,7 +4571,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4584,7 +4608,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4951,7 +4977,9 @@ def reset(self, scope: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset({scope})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset({scope})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d83qe0_dmm/scan.py b/src/tm_devices/commands/_d83qe0_dmm/scan.py index 99d78bb3e..9bb43065a 100644 --- a/src/tm_devices/commands/_d83qe0_dmm/scan.py +++ b/src/tm_devices/commands/_d83qe0_dmm/scan.py @@ -418,7 +418,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -451,7 +453,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -880,7 +884,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -912,7 +918,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d83qe0_dmm/slot.py b/src/tm_devices/commands/_d83qe0_dmm/slot.py index a6e33fbe1..68902c9b8 100644 --- a/src/tm_devices/commands/_d83qe0_dmm/slot.py +++ b/src/tm_devices/commands/_d83qe0_dmm/slot.py @@ -131,7 +131,9 @@ def idn(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".idn" - return self._device.query(f"print({self._cmd_syntax}.idn)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.idn)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_d83qe0_dmm/trigger.py b/src/tm_devices/commands/_d83qe0_dmm/trigger.py index a74af00c5..a7ad7cd80 100644 --- a/src/tm_devices/commands/_d83qe0_dmm/trigger.py +++ b/src/tm_devices/commands/_d83qe0_dmm/trigger.py @@ -378,7 +378,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -402,7 +404,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -450,7 +454,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -487,7 +493,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -544,7 +552,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1279,7 +1289,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1303,7 +1315,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1408,7 +1422,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1484,7 +1500,9 @@ def initiate(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.initiate()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.initiate()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.initiate()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1548,7 +1566,9 @@ def load_empty(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.load()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.load()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.load()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1724,7 +1744,9 @@ def pause(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.pause()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.pause()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.pause()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1745,7 +1767,9 @@ def resume(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.resume()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.resume()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.resume()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2790,7 +2814,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2814,7 +2840,9 @@ def connect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.connect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.connect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2838,7 +2866,9 @@ def disconnect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disconnect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disconnect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2886,7 +2916,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2923,7 +2955,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2979,7 +3013,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3177,7 +3213,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3218,7 +3256,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3251,7 +3291,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3302,7 +3344,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3361,7 +3405,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3633,7 +3679,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3657,7 +3705,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3705,7 +3755,9 @@ def edge(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".edge" - return self._device.query(f"print({self._cmd_syntax}.edge)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.edge)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3742,7 +3794,9 @@ def edge(self, value: Union[str, float]) -> None: self._cmd_syntax + ".edge", value ) else: - self._device.write(f"{self._cmd_syntax}.edge = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.edge = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.edge`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3802,7 +3856,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4016,7 +4072,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4040,7 +4098,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -4699,7 +4759,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_daq6510_commands.py b/src/tm_devices/commands/_daq6510_commands.py index 0fe42922e..56a6e9d01 100644 --- a/src/tm_devices/commands/_daq6510_commands.py +++ b/src/tm_devices/commands/_daq6510_commands.py @@ -1854,7 +1854,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1878,7 +1880,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -1899,7 +1903,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -1921,7 +1927,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -1945,7 +1953,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2006,7 +2016,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2031,7 +2043,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2056,7 +2070,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dawv9y_smudaqdmm/localnode.py b/src/tm_devices/commands/_dawv9y_smudaqdmm/localnode.py index afb4b6834..dc166c766 100644 --- a/src/tm_devices/commands/_dawv9y_smudaqdmm/localnode.py +++ b/src/tm_devices/commands/_dawv9y_smudaqdmm/localnode.py @@ -247,7 +247,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -531,7 +533,9 @@ def gettime(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.gettime()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.gettime()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.gettime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbdq3i_smudaqdmm/eventlog.py b/src/tm_devices/commands/_dbdq3i_smudaqdmm/eventlog.py index dc1cc07e7..048658b9d 100644 --- a/src/tm_devices/commands/_dbdq3i_smudaqdmm/eventlog.py +++ b/src/tm_devices/commands/_dbdq3i_smudaqdmm/eventlog.py @@ -72,7 +72,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbdq3i_smudaqdmm/file.py b/src/tm_devices/commands/_dbdq3i_smudaqdmm/file.py index 5a833114c..09d60664c 100644 --- a/src/tm_devices/commands/_dbdq3i_smudaqdmm/file.py +++ b/src/tm_devices/commands/_dbdq3i_smudaqdmm/file.py @@ -141,7 +141,9 @@ def mkdir(self, path: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.mkdir("{path}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.mkdir("{path}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.mkdir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbdq3i_smudaqdmm/format.py b/src/tm_devices/commands/_dbdq3i_smudaqdmm/format.py index f1976b9dd..58348395c 100644 --- a/src/tm_devices/commands/_dbdq3i_smudaqdmm/format.py +++ b/src/tm_devices/commands/_dbdq3i_smudaqdmm/format.py @@ -252,7 +252,9 @@ def data(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".data" - return self._device.query(f"print({self._cmd_syntax}.data)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.data)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -285,7 +287,9 @@ def data(self, value: Union[str, float]) -> None: self._cmd_syntax + ".data", value ) else: - self._device.write(f"{self._cmd_syntax}.data = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.data = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbdq3i_smudaqdmm/scriptvar.py b/src/tm_devices/commands/_dbdq3i_smudaqdmm/scriptvar.py index 4ccd2ac3b..97e2b1e60 100644 --- a/src/tm_devices/commands/_dbdq3i_smudaqdmm/scriptvar.py +++ b/src/tm_devices/commands/_dbdq3i_smudaqdmm/scriptvar.py @@ -92,7 +92,9 @@ def run(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.run()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.run()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbdq3i_smudaqdmm/timer.py b/src/tm_devices/commands/_dbdq3i_smudaqdmm/timer.py index a2c367251..e312a6f20 100644 --- a/src/tm_devices/commands/_dbdq3i_smudaqdmm/timer.py +++ b/src/tm_devices/commands/_dbdq3i_smudaqdmm/timer.py @@ -51,7 +51,9 @@ def cleartime(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.cleartime()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.cleartime()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.cleartime()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbqd7k_dmm/digio.py b/src/tm_devices/commands/_dbqd7k_dmm/digio.py index abb0b9440..7dfe1abd0 100644 --- a/src/tm_devices/commands/_dbqd7k_dmm/digio.py +++ b/src/tm_devices/commands/_dbqd7k_dmm/digio.py @@ -71,7 +71,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -106,7 +108,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -205,7 +209,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -318,7 +324,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbqd7k_dmm/status.py b/src/tm_devices/commands/_dbqd7k_dmm/status.py index ab856a15f..dbbf61695 100644 --- a/src/tm_devices/commands/_dbqd7k_dmm/status.py +++ b/src/tm_devices/commands/_dbqd7k_dmm/status.py @@ -729,7 +729,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -750,7 +752,9 @@ def preset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.preset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.preset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.preset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbqd7k_dmm/tsplink.py b/src/tm_devices/commands/_dbqd7k_dmm/tsplink.py index c9e2c0681..04e3dfe4e 100644 --- a/src/tm_devices/commands/_dbqd7k_dmm/tsplink.py +++ b/src/tm_devices/commands/_dbqd7k_dmm/tsplink.py @@ -140,7 +140,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -318,7 +320,9 @@ def node(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".node" - return self._device.query(f"print({self._cmd_syntax}.node)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.node)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -350,7 +354,9 @@ def node(self, value: Union[str, float]) -> None: self._cmd_syntax + ".node", value ) else: - self._device.write(f"{self._cmd_syntax}.node = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.node = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -460,7 +466,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbqd7k_dmm/tspnet.py b/src/tm_devices/commands/_dbqd7k_dmm/tspnet.py index 6c1b45ef9..ffc718e25 100644 --- a/src/tm_devices/commands/_dbqd7k_dmm/tspnet.py +++ b/src/tm_devices/commands/_dbqd7k_dmm/tspnet.py @@ -571,7 +571,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dbqd7k_dmm/upgrade.py b/src/tm_devices/commands/_dbqd7k_dmm/upgrade.py index acd6f0642..df412fedc 100644 --- a/src/tm_devices/commands/_dbqd7k_dmm/upgrade.py +++ b/src/tm_devices/commands/_dbqd7k_dmm/upgrade.py @@ -77,7 +77,9 @@ def unit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dmm6500_commands.py b/src/tm_devices/commands/_dmm6500_commands.py index ee84cb5f1..36d3ae718 100644 --- a/src/tm_devices/commands/_dmm6500_commands.py +++ b/src/tm_devices/commands/_dmm6500_commands.py @@ -1221,7 +1221,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1245,7 +1247,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -1266,7 +1270,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -1288,7 +1294,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -1312,7 +1320,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -1373,7 +1383,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -1398,7 +1410,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -1423,7 +1437,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dmm7510_commands.py b/src/tm_devices/commands/_dmm7510_commands.py index 440311dc7..0cb20a1b7 100644 --- a/src/tm_devices/commands/_dmm7510_commands.py +++ b/src/tm_devices/commands/_dmm7510_commands.py @@ -1181,7 +1181,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1205,7 +1207,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -1226,7 +1230,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -1248,7 +1254,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -1272,7 +1280,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -1333,7 +1343,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -1358,7 +1370,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -1383,7 +1397,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_dpo2k_commands.py b/src/tm_devices/commands/_dpo2k_commands.py index 2f3061b2f..2eae47110 100644 --- a/src/tm_devices/commands/_dpo2k_commands.py +++ b/src/tm_devices/commands/_dpo2k_commands.py @@ -20,34 +20,34 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fkjfe8_msodpodsa.time import Time +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory from ._u301s_msodpo.acquire import Acquire from ._u301s_msodpo.alias import Alias diff --git a/src/tm_devices/commands/_dpo2kb_commands.py b/src/tm_devices/commands/_dpo2kb_commands.py index 7b49c118a..9507ce1f1 100644 --- a/src/tm_devices/commands/_dpo2kb_commands.py +++ b/src/tm_devices/commands/_dpo2kb_commands.py @@ -20,34 +20,34 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fkjfe8_msodpodsa.time import Time +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory from ._u301s_msodpo.acquire import Acquire from ._u301s_msodpo.alias import Alias diff --git a/src/tm_devices/commands/_dpo4k_commands.py b/src/tm_devices/commands/_dpo4k_commands.py index 11c850aee..0127edf61 100644 --- a/src/tm_devices/commands/_dpo4k_commands.py +++ b/src/tm_devices/commands/_dpo4k_commands.py @@ -68,36 +68,36 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dpo4kb_commands.py b/src/tm_devices/commands/_dpo4kb_commands.py index a8e031388..307037839 100644 --- a/src/tm_devices/commands/_dpo4kb_commands.py +++ b/src/tm_devices/commands/_dpo4kb_commands.py @@ -68,36 +68,36 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dpo5k_commands.py b/src/tm_devices/commands/_dpo5k_commands.py new file mode 100644 index 000000000..ebe2716c5 --- /dev/null +++ b/src/tm_devices/commands/_dpo5k_commands.py @@ -0,0 +1,3986 @@ +# pylint: disable=too-many-lines +"""The DPO5K commands module. + +THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. + +Please report an issue if one is found. +""" +from typing import Any, Dict, Optional + +from tm_devices.drivers.pi.pi_device import PIDevice + +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fn2qbf_msodpo.errordetector import Errordetector +from ._fn2qbf_msodpo.trigger import Trigger +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock +from ._helpers import DefaultDictPassKeyToFactory + + +# pylint: disable=too-few-public-methods +class DPO5KCommandConstants: + """The DPO5K command argument constants. + + This provides access to all the string constants which can be used as arguments for DPO5K + commands. + """ + + A = "A" + ABSOLUTE = "ABSOLUTE" # ABSolute + AC = "AC" + ACCEPT = "ACCEPT" # ACCept + ACK = "ACK" + ACKERRORREPORT = "ACKERRORREPORT" # ACKErrorreport + ACKMISS = "ACKMISS" + ADDR10 = "ADDR10" + ADDR7 = "ADDR7" + ADDRANDDATA = "ADDRANDDATA" + ADDRESS = "ADDRESS" # ADDress + ALL = "ALL" + ALLFIELDS = "ALLFIELDS" # ALLFields + ALLLINES = "ALLLINES" # ALLLines + AMI = "AMI" + AMPLITUDE = "AMPLITUDE" # AMPlitude + ANALOG = "ANALOG" # ANALog + AND = "AND" + ANY = "ANY" + AREA = "AREA" + # AREA = "AREa" + ARMATRIGB = "ARMATRIGB" # ARMAtrigb + ASCII = "ASCII" # ASCIi + # ASCII = "ASCii" + ATI = "ATI" + ATRIGGER = "ATRIGGER" # ATRIGger + AUTO = "AUTO" + AUXILIARY = "AUXILIARY" # AUXiliary + AVERAGE = "AVERAGE" # AVErage + B = "B" + B3ZS = "B3ZS" + B6ZS = "B6ZS" + B8ZS = "B8ZS" + BACKWARDS = "BACKWARDS" # BACKWards + BASE = "BASE" # BASe + BILEVELCUSTOM = "BILEVELCUSTOM" # BILevelcustom + BINARY = "BINARY" + # BINARY = "BINary" + # BINARY = "Binary" + BIT = "BIT" + BITSTUFFING = "BITSTUFFING" # BITSTUFFing + BLACKMANHARRIS = "BLACKMANHARRIS" # BLACKMANHarris + BLANK = "BLANK" + BLOCK = "BLOCK" + BLOCK1THEN2 = "BLOCK1THEN2" + BMP = "BMP" + BOTH = "BOTH" # BOTh + BTA = "BTA" + BTRIGGER = "BTRIGGER" # BTRIGger + BURST = "BURST" # BURst + BUS = "BUS" + BYPASS = "BYPASS" # BYPass + CAN = "CAN" + CANH = "CANH" + CANL = "CANL" + CAREA = "CAREA" # CARea + CHAR = "CHAR" + CHARACTER = "CHARACTER" + CHECKSUM = "CHECKSUM" # CHecksum + CHECKSUMERROR = "CHECKSUMERROR" # CHECKsumerror + CHKSUMERROR = "CHKSUMERROR" # CHKSUMError + CLEAR = "CLEAR" + CLOCK = "CLOCK" # CLOCk + CMEAN = "CMEAN" # CMEan + CMI = "CMI" + COLOR = "COLOR" # COLOr + COLOROFF = "COLOROFF" + COLORON = "COLORON" + COLUMN = "COLUMN" + COMMAND = "COMMAND" + COMMONMODE = "COMMONMODE" # COMmonmode + COMMUNICATION = "COMMUNICATION" # COMMunication + COMPAT = "COMPAT" + CONTENTION = "CONTENTION" # CONTention + CONTROL = "CONTROL" # CONtrol + COUNT = "COUNT" + CR = "CR" + CRC16 = "CRC16" + CRC5 = "CRC5" + CRMS = "CRMS" # CRMs + CROSSHAIR = "CROSSHAIR" # CROSSHair + CSPLIT = "CSPLIT" + CTRLSKP = "CTRLSKP" + CUSTOM = "CUSTOM" + # CUSTOM = "CUSTom" + DASHED = "DASHED" # DASHed + DATA = "DATA" + # DATA = "DATa" + DATAPACKET = "DATAPACKET" # DATAPacket + DB = "DB" + DBM = "DBM" + DC = "DC" + DCREJECT = "DCREJECT" # DCREJect + DCSLONGREAD = "DCSLONGREAD" # DCSLONGRead + DCSLONGWRITE = "DCSLONGWRITE" # DCSLONGWrite + DCSR = "DCSR" + DCSRR2 = "DCSRR2" + DCSSRR1 = "DCSSRR1" + DDRREAD = "DDRREAD" # DDRRead + DDRREADWRITE = "DDRREADWRITE" # DDRREADWrite + DDRWRITE = "DDRWRITE" # DDRWrite + DECIMAL = "DECIMAL" # DECImal + DECODEFILENAME = "DECODEFILENAME" # decodeFileName + DEFAULT = "DEFAULT" + # DEFAULT = "DEFAult" + # DEFAULT = "DEFault" + DELAY = "DELAY" # DELay + DELAYED = "DELAYED" # DELayed + DELETE = "DELETE" # DELEte + DETAILED = "DETAILED" # DETAiled + DIFFERENTIAL = "DIFFERENTIAL" # DIFFerential + DIGITAL = "DIGITAL" # DIGItal + DISABLE = "DISABLE" # DISable + DISTDUTY = "DISTDUTY" # DISTDUty + DONE = "DONE" + DONTCARE = "DONTCARE" # DONTCare + # DONTCARE = "DONTcare" + DP = "DP" + DSINR = "DSINR" + DSIVC = "DSIVC" + DSIVIOLATION = "DSIVIOLATION" # DSIViolation + DYNAMIC = "DYNAMIC" + ECCERROR = "ECCERROR" # ECCError + ECCMBERROR = "ECCMBERROR" # ECCMBError + ECCSBERROR = "ECCSBERROR" # ECCSBError + ECCWARN = "ECCWARN" # ECCWarn + ECL = "ECL" + EDGE = "EDGE" + EI = "EI" + EIE = "EIE" + EIGHTYTWENTY = "EIGHTYTWENTY" # EIGHtytwenty + EITHER = "EITHER" # EITHer + # EITHER = "EITher" + EMBEDDED = "EMBEDDED" # EMBEDded + ENABLE = "ENABLE" # ENable + ENET100BASETX = "ENET100BASETX" + ENET100FX = "ENET100FX" + ENET10BASET = "ENET10BASET" + ENET1250 = "ENET1250" + ENETXAUI = "ENETXAUI" + ENETXAUI2 = "ENETXAUI2" + ENTERSWINDOW = "ENTERSWINDOW" # ENTERSWindow + ENV = "ENV" + ENVELOPE = "ENVELOPE" # ENVelope + EOF = "EOF" + EOP = "EOP" + # EOP = "EOp" + EOT = "EOT" + EOTSYNC = "EOTSYNC" # EOTSync + EQUAL = "EQUAL" # EQUal + # EQUAL = "EQual" + ERR = "ERR" + ERROR = "ERROR" + # ERROR = "ERRor" + ESCMODE = "ESCMODE" # ESCMode + ESCMODEERROR = "ESCMODEERROR" # ESCMODEError + ET = "ET" + ETHERNET = "ETHERNET" # ETHernet + EVEN = "EVEN" + EVENT = "EVENT" + EVENTS = "EVENTS" + EXECUTE = "EXECUTE" # EXECute + EXITSWINDOW = "EXITSWINDOW" # EXITSWindow + EXTENDED = "EXTENDED" # EXTENDed + # EXTENDED = "EXTENded" + EXTINCTDB = "EXTINCTDB" + EXTINCTPCT = "EXTINCTPCT" + EXTINCTRATIO = "EXTINCTRATIO" + EYE = "EYE" + EYEDIAGRAM = "EYEDIAGRAM" # EYEdiagram + EYEHEIGHT = "EYEHEIGHT" # EYEHeight + FALL = "FALL" + FALLING = "FALLING" # FALling + FALSE = "FALSE" # FALSe + FAST = "FAST" + FASTERTHAN = "FASTERTHAN" # FASTERthan + FASTEST = "FASTEST" # FAStest + FC1063 = "FC1063" + FC133 = "FC133" + FC2125 = "FC2125" + FC266 = "FC266" + FC4250 = "FC4250" + FC531 = "FC531" + FCE = "FCE" + FCSERROR = "FCSERROR" # FCSError + FFWD = "FFWD" + FIFTYFIFTY = "FIFTYFIFTY" # FIFtyfifty + FIRST = "FIRST" # FIRst + FLATTOP2 = "FLATTOP2" + FLEXRAY = "FLEXRAY" + FORCE = "FORCE" # FORCe + FORWARD = "FORWARD" # FORWard + FORWARDS = "FORWARDS" # FORWards + FP = "FP" + FPBINARY = "FPBINARY" # FPBinary + FRAME = "FRAME" + # FRAME = "FRAme" + FRAMEEND = "FRAMEEND" # FRAMEEnd + FRAMESTART = "FRAMESTART" # FRAMEStart + FRAMETYPE = "FRAMETYPE" # FRAMEtype + FREQUENCY = "FREQUENCY" # FREQuency + FREV = "FREV" + FTS = "FTS" + FULL = "FULL" + # FULL = "FULl" + FULLNOMENU = "FULLNOMENU" # FULLNOmenu + FULLSCREEN = "FULLSCREEN" + FULLSPEED = "FULLSPEED" # FULLSPeed + FW1394BS1600B = "FW1394BS1600B" + FW1394BS400B = "FW1394BS400B" + FW1394BS800B = "FW1394BS800B" + FWD = "FWD" + GAUSSIAN = "GAUSSIAN" # GAUSSian + GLITCH = "GLITCH" # GLItch + GLONGREAD = "GLONGREAD" # GLONGRead + GLONGWRITE = "GLONGWRITE" # GLONGWrite + GND = "GND" + GPIB = "GPIB" # GPIb + GRATICULE = "GRATICULE" # GRAticule + GREATERTHAN = "GREATERTHAN" # GREATerthan + GRID = "GRID" # GRId + HAMMING = "HAMMING" # HAMMing + HANDSHAKEPACKET = "HANDSHAKEPACKET" # HANDSHAKEPacket + HANNING = "HANNING" # HANNing + HBARS = "HBARS" # HBArs + HD1080I50 = "HD1080I50" + HD1080I60 = "HD1080I60" + HD1080P24 = "HD1080P24" + HD1080P25 = "HD1080P25" + HD1080P30 = "HD1080P30" + HD1080P50 = "HD1080P50" + HD1080P60 = "HD1080P60" + HD1080SF24 = "HD1080SF24" + HD480P60 = "HD480P60" + HD576P50 = "HD576P50" + HD720P30 = "HD720P30" + HD720P50 = "HD720P50" + HD720P60 = "HD720P60" + HD875I60 = "HD875I60" + HDB3 = "HDB3" + HERTZ = "HERTZ" # HERtz + HEX = "HEX" + HEXADECIMAL = "HEXADECIMAL" # HEXadecimal + HFREJ = "HFREJ" # HFRej + HIGH = "HIGH" + # HIGH = "high" + HIRES = "HIRES" # HIRes + HISTOGRAM = "HISTOGRAM" # HIStogram + HITS = "HITS" # HITs + HLS = "HLS" + HORIZONTAL = "HORIZONTAL" + # HORIZONTAL = "HORizontal" + HSRTERROR = "HSRTERROR" # HSRTError + HSYNCEND = "HSYNCEND" # HSYNCEnd + HSYNCSTART = "HSYNCSTART" # HSYNCStart + I2C = "I2C" + IDANDDATA = "IDANDDATA" + IDENTIFIER = "IDENTIFIER" # IDENTifier + IDLE = "IDLE" + IN = "IN" + INDEPENDENT = "INDEPENDENT" # INDependent + INFINIBAND = "INFINIBAND" + INFPERSIST = "INFPERSIST" # INFPersist + INHERIT = "INHERIT" + INIT = "INIT" + INKSAVER = "INKSAVER" # INKSaver + INRANGE = "INRANGE" # INrange + INSIDE = "INSIDE" # INSide + INSIDEGREATER = "INSIDEGREATER" # INSIDEGreater + INVALID = "INVALID" + INVERTED = "INVERTED" # INVERTed + # INVERTED = "INVerted" + IRE = "IRE" + ISOALL = "ISOALL" + ISOEND = "ISOEND" + ISOMID = "ISOMID" + ISOSTART = "ISOSTART" + IT = "IT" + ITP = "ITP" + JPEG = "JPEG" + KAISERBESSEL = "KAISERBESSEL" # KAISERBessel + LANDSCAPE = "LANDSCAPE" # LANdscape + LARGE = "LARGE" + # LARGE = "LARge" + LAST = "LAST" + LEARN = "LEARN" + LESSEQUAL = "LESSEQUAL" # LESSEQual + LESSTHAN = "LESSTHAN" # LESSThan + # LESSTHAN = "LESSthan" + LF = "LF" + LFREJ = "LFREJ" # LFRej + LIN = "LIN" + LINE = "LINE" + LINEAR = "LINEAR" # LINEAr + LINEEND = "LINEEND" # LINEEnd + LINES = "LINES" + LINESTART = "LINESTART" # LINEStart + LINE_X = "LINE_X" + LIVE = "LIVE" + LMP = "LMP" + LMPCONFIG = "LMPCONFIG" # LMPConfig + LMPDEVICE = "LMPDEVICE" # LMPDevice + LMPLINK = "LMPLINK" # LMPLink + LMPRESPONSE = "LMPRESPONSE" # LMPResponse + LMPUTWO = "LMPUTWO" # LMPUtwo + LOCK = "LOCK" + # LOCK = "LOck" + LOGIC = "LOGIC" + # LOGIC = "LOGIc" + LONG = "LONG" + LOW = "LOW" + # LOW = "low" + LOWSPEED = "LOWSPEED" # LOWSPeed + LPDATA = "LPDATA" + LPS666 = "LPS666" + LPTSERROR = "LPTSERROR" # LPTSError + LSB = "LSB" + MACADDRESS = "MACADDRESS" # MACADDRess + MANCHESTER = "MANCHESTER" # MANCHester + MANUAL = "MANUAL" + # MANUAL = "MANual" + MAXIMUM = "MAXIMUM" # MAXimum + MAXRETSIZE = "MAXRETSIZE" # MAXRETsize + MDATA = "MDATA" + MEAN = "MEAN" + MEANSTDDEV = "MEANSTDDEV" # MEANSTDdev + MEDIAN = "MEDIAN" # MEDian + MEDIUM = "MEDIUM" # MEDium + MHZ10 = "MHZ10" + MHZ100 = "MHZ100" + MINIMIZED = "MINIMIZED" + MINIMUM = "MINIMUM" # MINImum + MINMAX = "MINMAX" # MINMax + MINUSONE = "MINUSONE" # MINUSOne + MIPICSITWO = "MIPICSITWO" # MIPICSITWo + MIPIDSIONE = "MIPIDSIONE" # MIPIDSIOne + MISO = "MISO" + MISOMOSI = "MISOMOSI" + MIXED = "MIXED" # MIXed + MLT3 = "MLT3" + MONOGRAY = "MONOGRAY" + MONOGREEN = "MONOGREEN" + MOREEQUA = "MOREEQUA" # MOREEQua + MOREEQUAL = "MOREEQUAL" # MOREEQual + MORETHAN = "MORETHAN" # MOREThan + # MORETHAN = "MOREthan" + MOSI = "MOSI" + MSB = "MSB" + MV = "MV" + NAK = "NAK" + NAND = "NAND" # NANd + NCROSS = "NCROSS" # NCROss + NDUTY = "NDUTY" # NDUty + NEGATIVE = "NEGATIVE" # NEGAtive + NEXT = "NEXT" + NO = "NO" + # NO = "No" + NOCARE = "NOCARE" + NOISEREJ = "NOISEREJ" # NOISErej + NOPARITY = "NOPARITY" # NOPARity + NOR = "NOR" + NORMAL = "NORMAL" # NORMal + NOVERSHOOT = "NOVERSHOOT" # NOVershoot + NRZ = "NRZ" + NTSC = "NTSC" + # NTSC = "NTSc" + NULL = "NULL" + NUMERIC = "NUMERIC" # NUMERic + NWIDTH = "NWIDTH" # NWIdth + NYET = "NYET" + OC1 = "OC1" + OC12 = "OC12" + OC3 = "OC3" + OCCURS = "OCCURS" # OCCurs + ODD = "ODD" + OFF = "OFF" + ON = "ON" + ONE = "ONE" + OR = "OR" + OUT = "OUT" + OUTRANGE = "OUTRANGE" # OUTrange + OUTSIDE = "OUTSIDE" # OUTside + OUTSIDEGREATER = "OUTSIDEGREATER" # OUTSIDEGreater + OVERLAY = "OVERLAY" # OVERlay + OVERLOAD = "OVERLOAD" + # OVERLOAD = "OVERLoad" + PACKET = "PACKET" + PAL = "PAL" + PARALLEL = "PARALLEL" # PARallel + PARITY = "PARITY" # PARity + PARITYERROR = "PARITYERROR" # PARItyerror + PASS = "PASS" + PATTERN = "PATTERN" # PATtern + PAYLOAD = "PAYLOAD" # PAYload + PBASE = "PBASE" # PBASe + PCIE = "PCIE" + PCIEXPRESS = "PCIEXPRESS" # PCIExpress + PCIEXPRESS2 = "PCIEXPRESS2" # PCIExpress2 + PCROSS = "PCROSS" # PCROss + PCTCROSS = "PCTCROSS" # PCTCROss + PCX = "PCX" + PDUTY = "PDUTY" # PDUty + PEAKDETECT = "PEAKDETECT" # PEAKdetect + PEAKHITS = "PEAKHITS" # PEAKHits + PENDING = "PENDING" + PERCENT = "PERCENT" # PERCent + PERIOD = "PERIOD" # PERIod + PHASE = "PHASE" # PHAse + PID = "PID" + PING = "PING" + PK2PK = "PK2PK" # PK2Pk + PKPKJITTER = "PKPKJITTER" # PKPKJitter + PKPKNOISE = "PKPKNOISE" # PKPKNoise + PLUSONE = "PLUSONE" # PLUSOne + PNG = "PNG" + POLARCOORD = "POLARCOORD" # POLARCoord + PORTRAIT = "PORTRAIT" # PORTRait + POSITIVE = "POSITIVE" # POSITIVe + PPS101010 = "PPS101010" + PPS121212 = "PPS121212" + PPS565 = "PPS565" + PPS666 = "PPS666" + PPS888 = "PPS888" + PRBS7 = "PRBS7" + PRBS9 = "PRBS9" + PRE = "PRE" + PREVIOUS = "PREVIOUS" # PREVious + PRODUCT = "PRODUCT" # PRODuct + PULSE = "PULSE" # PULse + PWIDTH = "PWIDTH" # PWIdth + QFACTOR = "QFACTOR" # QFACtor + QTAG = "QTAG" + RANDOM = "RANDOM" + RATE10000 = "RATE10000" + RATE12000 = "RATE12000" + RATE1250 = "RATE1250" + RATE14000 = "RATE14000" + RATE1500 = "RATE1500" + RATE2125 = "RATE2125" + RATE2500 = "RATE2500" + RATE3000 = "RATE3000" + RATE3125 = "RATE3125" + RATE4250 = "RATE4250" + RATE5000 = "RATE5000" + RATE6000 = "RATE6000" + RATE6250 = "RATE6250" + RATIO = "RATIO" # RATio + RAW10 = "RAW10" + RAW12 = "RAW12" + RAW14 = "RAW14" + RDMINUS = "RDMINUS" + RDPLUS = "RDPLUS" + READ = "READ" + RECOVERED = "RECOVERED" # RECOVered + RECTANGULAR = "RECTANGULAR" # RECTANGular + # RECTANGULAR = "RECTangular" + REFOUT = "REFOUT" + REJECT = "REJECT" # REJect + RELOAD = "RELOAD" # RELoad + REMOTE = "REMOTE" # REMote + REPEATSTART = "REPEATSTART" # REPEATstart + RESERVED = "RESERVED" + RESET = "RESET" + # RESET = "RESet" + RESETLIVE = "RESETLIVE" # RESETLive + RESTORE = "RESTORE" # RESTore + RESUME = "RESUME" + REV = "REV" + REVERSE = "REVERSE" # REVErse + RGB444 = "RGB444" + RGB555 = "RGB555" + RGB565 = "RGB565" + RGB666 = "RGB666" + RGB888 = "RGB888" + RI = "RI" + RIBINARY = "RIBINARY" # RIBinary + RIO_1G = "RIO_1G" + RIO_2G = "RIO_2G" + RIO_500M = "RIO_500M" + RIO_750M = "RIO_750M" + RIO_SERIAL_1G = "RIO_SERIAL_1G" + RIO_SERIAL_2_5G = "RIO_SERIAL_2_5G" + RIO_SERIAL_3G = "RIO_SERIAL_3G" + RISE = "RISE" + # RISE = "RISe" + RISING = "RISING" # RISing + RMS = "RMS" + RMSJITTER = "RMSJITTER" # RMSJitter + RMSNOISE = "RMSNOISE" # RMSNoise + RP = "RP" + RPBINARY = "RPBINARY" # RPBinary + RS232 = "RS232" + RT = "RT" + RUNSTOP = "RUNSTOP" # RUNSTop + RUNT = "RUNT" + RX = "RX" + S8B10B = "S8B10B" + SAMPLE = "SAMPLE" # SAMple + SAS6_0 = "SAS6_0" + SATA1_5 = "SATA1_5" + SATA3_0 = "SATA3_0" + SATA6_0 = "SATA6_0" + SAVE = "SAVE" # SAVe + SCREEN = "SCREEN" + SDASHED = "SDASHED" # SDASHed + SDS = "SDS" + SEARCHTOTRIGGER = "SEARCHTOTRIGGER" # SEARCHtotrigger + SECAM = "SECAM" + SECONDS = "SECONDS" # SECOnds + SELECTED = "SELECTED" + SEQUENCE = "SEQUENCE" # SEQuence + SEQUENTIAL = "SEQUENTIAL" + SERIAL = "SERIAL" + SETHOLD = "SETHOLD" # SETHold + SETLEVEL = "SETLEVEL" # SETLevel + SETUP = "SETUP" + SFPBINARY = "SFPBINARY" # SFPbinary + SHORT = "SHORT" + # SHORT = "SHORt" + SHUTDOWN = "SHUTDOWN" # SHUTDown + SIGMA1 = "SIGMA1" + SIGMA2 = "SIGMA2" + SIGMA3 = "SIGMA3" + SINGLEENDED = "SINGLEENDED" # SINGleended + SINX = "SINX" + SIXSIGMAJIT = "SIXSIGMAJIT" # SIXSigmajit + SKP = "SKP" + SLOWERTHAN = "SLOWERTHAN" # SLOWERthan + SMALL = "SMALL" # SMAll + SNAP = "SNAP" # SNAp + SNRATIO = "SNRATIO" # SNRatio + SOF = "SOF" + SOLID = "SOLID" + SOT = "SOT" + SOTERROR = "SOTERROR" # SOTError + SOTSYNC = "SOTSYNC" # SOTSync + SPACE = "SPACE" # SPace + SPECIALPACKET = "SPECIALPACKET" # SPECIALPacket + SPECTRAL = "SPECTRAL" # SPECTral + SPI = "SPI" + SPLIT = "SPLIT" + SRCDEPENDENT = "SRCDEPENDENT" # SRCDependent + SRCINDEPENDENT = "SRCINDEPENDENT" # SRCIndependent + SRIBINARY = "SRIBINARY" # SRIbinary + SRPBINARY = "SRPBINARY" # SRPbinary + SS = "SS" + SSPLIT = "SSPLIT" + STABLE = "STABLE" # STABle + STALL = "STALL" + STANDARD = "STANDARD" + # STANDARD = "STANdard" + # STANDARD = "STandard" + START = "START" + # START = "STARt" + STARTUP = "STARTUP" # STARTup + STATE = "STATE" + STATIC = "STATIC" + STATUS = "STATUS" + # STATUS = "STATus" + STAYSHIGH = "STAYSHIGH" # STAYSHigh + STAYSLOW = "STAYSLOW" # STAYSLow + STDDEV = "STDDEV" # STDdev + STOP = "STOP" + SUBSYS = "SUBSYS" + SUSPEND = "SUSPEND" + SYMBOL = "SYMBOL" + SYMBOLIC = "SYMBOLIC" # SYMBolic + SYNC = "SYNC" + TCPHEADER = "TCPHEADER" # TCPHeader + TEAR = "TEAR" + TEKEXPONENTIAL = "TEKEXPONENTIAL" # TEKEXPonential + TEMPERATURE = "TEMPERATURE" # TEMPErature + TEST = "TEST" + # TEST = "TESt" + TIFF = "TIFF" + TIME = "TIME" + # TIME = "TIMe" + TIMEOUT = "TIMEOUT" # TIMEOut + TOGGLE = "TOGGLE" + TOKENPACKET = "TOKENPACKET" # TOKENPacket + TP = "TP" + TPACK = "TPACK" + TPERDY = "TPERDY" + TPNOTIFY = "TPNOTIFY" # TPNotify + TPNRDY = "TPNRDY" + TPPING = "TPPING" # TPPing + TPRESPONSE = "TPRESPONSE" # TPResponse + TPSTALL = "TPSTALL" # TPSTall + TPSTATUS = "TPSTATUS" # TPStatus + TRACK = "TRACK" # TRACk + TRAINING = "TRAINING" # TRAining + TRANSITION = "TRANSITION" # TRANsition + TRIGGERTOSEARCH = "TRIGGERTOSEARCH" # TRIGgertosearch + TRILEVELCUSTOM = "TRILEVELCUSTOM" # TRILevelcustom + TRUE = "TRUE" # TRUe + TTL = "TTL" + TURNON = "TURNON" + TX = "TX" + ULTRALP = "ULTRALP" + UNDEFINED = "UNDEFINED" + UNDO = "UNDO" # UNDo + UNEQUAL = "UNEQUAL" # UNEQual + UNLOCK = "UNLOCK" + USB = "USB" + USER = "USER" # USEr + V1X = "V1X" + V2X = "V2X" + VALUEMEAN = "VALUEMEAN" # VALUEMean + VBARS = "VBARS" # VBArs + VERTICAL = "VERTICAL" + # VERTICAL = "VERTical" + VFIELDS = "VFIELDS" # VFields + VIDEO = "VIDEO" # VIDeo + VLINES = "VLINES" # VLines + VSROC192 = "VSROC192" + VSYNCEND = "VSYNCEND" # VSYNCEnd + VSYNCSTART = "VSYNCSTART" # VSYNCStart + WAIT = "WAIT" + WARNING = "WARNING" # WARNing + WAVEFORM = "WAVEFORM" # WAVEform + WAVEFORMS = "WAVEFORMS" + WFMDB = "WFMDB" + WIDERTHAN = "WIDERTHAN" # WIDERthan + WIDTH = "WIDTH" # WIDth + WINDOW = "WINDOW" # WINdow + WITHIN = "WITHIN" # WITHin + # WITHIN = "WIThin" + WRITE = "WRITE" + X = "X" + XFF = "XFF" + XLARGE = "XLARGE" + XSMALL = "XSMALL" # XSMAll + XY = "XY" + XYZ = "XYZ" + Y = "Y" + YCBCR12 = "YCBCR12" + YCBCR16 = "YCBCR16" + YCBCR20 = "YCBCR20" + YCBCR24 = "YCBCR24" + YES = "YES" + # YES = "Yes" + YT = "YT" + YUV420B10 = "YUV420B10" + YUV420B8 = "YUV420B8" + YUV420C10 = "YUV420C10" + YUV420C8 = "YUV420C8" + YUV420L8 = "YUV420L8" + YUV422B10 = "YUV422B10" + YUV422B8 = "YUV422B8" + ZERO = "ZERO" + + +# pylint: disable=too-many-instance-attributes,too-many-public-methods +class DPO5KCommands: + """The DPO5K commands. + + This provides access to all the commands for the DPO5K device. See the documentation of each + property for more usage information. + + Properties: + - ``.acquire``: The ``ACQuire`` command tree. + - ``.alias``: The ``ALIas`` command. + - ``.allev``: The ``ALLEv`` command. + - ``.allocate``: The ``ALLOcate`` command tree. + - ``.application``: The ``APPLication`` command tree. + - ``.autoset``: The ``AUTOSet`` command. + - ``.auxin``: The ``AUXIn`` command tree. + - ``.auxout``: The ``AUXout`` command. + - ``.bell``: The ``BELl`` command. + - ``.bus``: The ``BUS`` command tree. + - ``.busy``: The ``BUSY`` command. + - ``.cal``: The ``*CAL`` command. + - ``.calibrate``: The ``CALibrate`` command. + - ``.ch``: The ``CH`` command. + - ``.clear``: The ``CLEAR`` command. + - ``.cls``: The ``*CLS`` command. + - ``.cmdbatch``: The ``CMDBatch`` command. + - ``.counter``: The ``COUnter`` command tree. + - ``.cq``: The ``CQ`` command tree. + - ``.cursor``: The ``CURSor`` command. + - ``.curve``: The ``CURVe`` command. + - ``.curvenext``: The ``CURVENext`` command. + - ``.curvestream``: The ``CURVEStream`` command. + - ``.custom``: The ``CUSTOM`` command tree. + - ``.d``: The ``D`` command tree. + - ``.data``: The ``DATa`` command. + - ``.date``: The ``DATE`` command. + - ``.ddt``: The ``*DDT`` command. + - ``.delete``: The ``DELEte`` command tree. + - ``.dese``: The ``DESE`` command. + - ``.diag``: The ``DIAg`` command tree. + - ``.display``: The ``DISplay`` command. + - ``.email``: The ``EMail`` command. + - ``.errordetector``: The ``ERRORDetector`` command tree. + - ``.ese``: The ``*ESE`` command. + - ``.esr``: The ``*ESR`` command. + - ``.event``: The ``EVENT`` command. + - ``.evmsg``: The ``EVMsg`` command. + - ``.evqty``: The ``EVQty`` command. + - ``.export``: The ``EXPort`` command. + - ``.factory``: The ``FACtory`` command. + - ``.fastacq``: The ``FASTAcq`` command. + - ``.filesystem``: The ``FILESystem`` command. + - ``.gpibusb``: The ``GPIBUsb`` command tree. + - ``.hardcopy``: The ``HARDCopy`` command. + - ``.hdr``: The ``HDR`` command. + - ``.header``: The ``HEADer`` command. + - ``.histogram``: The ``HIStogram`` command. + - ``.horizontal``: The ``HORizontal`` command. + - ``.id``: The ``ID`` command. + - ``.idn``: The ``*IDN`` command. + - ``.limit``: The ``LIMit`` command. + - ``.linktraining``: The ``LINKTRaining`` command tree. + - ``.lock``: The ``LOCk`` command. + - ``.lrn``: The ``*LRN`` command. + - ``.mark``: The ``MARK`` command. + - ``.mask``: The ``MASK`` command. + - ``.math``: The ``MATH`` command. + - ``.matharbflt``: The ``MATHArbflt`` command tree. + - ``.mathvar``: The ``MATHVAR`` command. + - ``.mch``: The ``MCH`` command tree. + - ``.measurement``: The ``MEASUrement`` command. + - ``.multiscope``: The ``MULTiscope`` command tree. + - ``.newpass``: The ``NEWpass`` command. + - ``.opc``: The ``*OPC`` command. + - ``.opcextended``: The ``OPCEXtended`` command. + - ``.opt``: The ``*OPT`` command. + - ``.password``: The ``PASSWord`` command. + - ``.pcenable``: The ``PCENable`` command. + - ``.psc``: The ``*PSC`` command. + - ``.pud``: The ``*PUD`` command. + - ``.rcl``: The ``*RCL`` command. + - ``.recall``: The ``RECAll`` command tree. + - ``.ref``: The ``REF`` command tree. + - ``.rem``: The ``REM`` command. + - ``.rosc``: The ``ROSc`` command tree. + - ``.rst``: The ``*RST`` command. + - ``.sav``: The ``*SAV`` command. + - ``.save``: The ``SAVe`` command tree. + - ``.saveon``: The ``SAVEON`` command. + - ``.sds``: The ``*SDS`` command. + - ``.search``: The ``SEARCH`` command tree. + - ``.select``: The ``SELect`` command. + - ``.set``: The ``SET`` command. + - ``.setup``: The ``SETUp`` command tree. + - ``.sre``: The ``*SRE`` command. + - ``.stb``: The ``*STB`` command. + - ``.system``: The ``SYSTem`` command tree. + - ``.teklink``: The ``TEKLink`` command tree. + - ``.teksecure``: The ``TEKSecure`` command. + - ``.test``: The ``TEST`` command. + - ``.time``: The ``TIME`` command. + - ``.trg``: The ``*TRG`` command. + - ``.trig``: The ``TRIG`` command tree. + - ``.trigger``: The ``TRIGger`` command. + - ``.tst``: The ``*TST`` command. + - ``.unlock``: The ``UNLock`` command. + - ``.usbtmc``: The ``USBTMC`` command tree. + - ``.verbose``: The ``VERBose`` command. + - ``.visual``: The ``VISual`` command. + - ``.wai``: The ``*WAI`` command. + - ``.wavfrm``: The ``WAVFrm`` command. + - ``.wavfrmstream``: The ``WAVFRMStream`` command. + - ``.wfminpre``: The ``WFMInpre`` command. + - ``.wfmoutpre``: The ``WFMOutpre`` command. + - ``.wfmpre``: The ``WFMPre`` command tree. + - ``.zoom``: The ``ZOOm`` command. + """ + + # pylint: disable=too-many-statements + def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + self._acquire = Acquire(device) + self._alias = Alias(device) + self._allev = Allev(device) + self._allocate = Allocate(device) + self._application = Application(device) + self._autoset = Autoset(device) + self._auxin = Auxin(device) + self._auxout = Auxout(device) + self._bell = Bell(device) + self._bus = Bus(device) + self._busy = Busy(device) + self._cal = Cal(device) + self._calibrate = Calibrate(device) + self._ch: Dict[int, Channel] = DefaultDictPassKeyToFactory( + lambda x: Channel(device, f"CH{x}") + ) + self._clear = Clear(device) + self._cls = Cls(device) + self._cmdbatch = Cmdbatch(device) + self._counter = Counter(device) + self._cq: Dict[int, CqItem] = DefaultDictPassKeyToFactory( + lambda x: CqItem(device, f"CQ{x}") + ) + self._cursor = Cursor(device) + self._curve = Curve(device) + self._curvenext = Curvenext(device) + self._curvestream = Curvestream(device) + self._custom = Custom(device) + self._d: Dict[int, DigitalBit] = DefaultDictPassKeyToFactory( + lambda x: DigitalBit(device, f"D{x}") + ) + self._data = Data(device) + self._date = Date(device) + self._ddt = Ddt(device) + self._delete = Delete(device) + self._dese = Dese(device) + self._diag = Diag(device) + self._display = Display(device) + self._email = Email(device) + self._errordetector = Errordetector(device) + self._ese = Ese(device) + self._esr = Esr(device) + self._event = Event(device) + self._evmsg = Evmsg(device) + self._evqty = Evqty(device) + self._export = Export(device) + self._factory = Factory(device) + self._fastacq = Fastacq(device) + self._filesystem = Filesystem(device) + self._gpibusb = Gpibusb(device) + self._hardcopy = Hardcopy(device) + self._hdr = Hdr(device) + self._header = Header(device) + self._histogram = Histogram(device) + self._horizontal = Horizontal(device) + self._id = Id(device) + self._idn = Idn(device) + self._limit = Limit(device) + self._linktraining = Linktraining(device) + self._lock = Lock(device) + self._lrn = Lrn(device) + self._mark = Mark(device) + self._mask = Mask(device) + self._math: Dict[int, MathItem] = DefaultDictPassKeyToFactory( + lambda x: MathItem(device, f"MATH{x}") + ) + self._matharbflt: Dict[int, MatharbfltItem] = DefaultDictPassKeyToFactory( + lambda x: MatharbfltItem(device, f"MATHArbflt{x}") + ) + self._mathvar = Mathvar(device) + self._mch: Dict[int, MchItem] = DefaultDictPassKeyToFactory( + lambda x: MchItem(device, f"MCH{x}") + ) + self._measurement = Measurement(device) + self._multiscope = Multiscope(device) + self._newpass = Newpass(device) + self._opc = Opc(device) + self._opcextended = Opcextended(device) + self._opt = Opt(device) + self._password = Password(device) + self._pcenable = Pcenable(device) + self._psc = Psc(device) + self._pud = Pud(device) + self._rcl = Rcl(device) + self._recall = Recall(device) + self._ref: Dict[int, RefItem] = DefaultDictPassKeyToFactory( + lambda x: RefItem(device, f"REF{x}") + ) + self._rem = Rem(device) + self._rosc = Rosc(device) + self._rst = Rst(device) + self._sav = Sav(device) + self._save = Save(device) + self._saveon = Saveon(device) + self._sds = Sds(device) + self._search = Search(device) + self._select = Select(device) + self._set = Set(device) + self._setup = Setup(device) + self._sre = Sre(device) + self._stb = Stb(device) + self._system = System(device) + self._teklink = Teklink(device) + self._teksecure = Teksecure(device) + self._test = Test(device) + self._time = Time(device) + self._trg = Trg(device) + self._trig = Trig(device) + self._trigger = Trigger(device) + self._tst = Tst(device) + self._unlock = Unlock(device) + self._usbtmc = Usbtmc(device) + self._verbose = Verbose(device) + self._visual = Visual(device) + self._wai = Wai(device) + self._wavfrm = Wavfrm(device) + self._wavfrmstream = Wavfrmstream(device) + self._wfminpre = Wfminpre(device) + self._wfmoutpre = Wfmoutpre(device) + self._wfmpre = Wfmpre(device) + self._zoom = Zoom(device) + + @property + def acquire(self) -> Acquire: + """Return the ``ACQuire`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ACQuire?`` query. + - Using the ``.verify(value)`` method will send the ``ACQuire?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.enhancedenob``: The ``ACQuire:ENHANCEDEnob`` command. + - ``.interpeightbit``: The ``ACQuire:INTERPEightbit`` command. + - ``.magnivu``: The ``ACQuire:MAGnivu`` command. + - ``.mode``: The ``ACQuire:MODe`` command. + - ``.numacq``: The ``ACQuire:NUMACq`` command. + - ``.numavg``: The ``ACQuire:NUMAVg`` command. + - ``.numenv``: The ``ACQuire:NUMEnv`` command. + - ``.numframesacquired``: The ``ACQuire:NUMFRAMESACQuired`` command. + - ``.numsamples``: The ``ACQuire:NUMSAMples`` command. + - ``.samplingmode``: The ``ACQuire:SAMPlingmode`` command. + - ``.state``: The ``ACQuire:STATE`` command. + - ``.stopafter``: The ``ACQuire:STOPAfter`` command. + - ``.syncsamples``: The ``ACQuire:SYNcsamples`` command. + """ + return self._acquire + + @property + def alias(self) -> Alias: + """Return the ``ALIas`` command. + + **Description:** + - This command sets or queries the state of alias functionality, and it is identical to + the ``ALIAS:STATE`` command. + + **Usage:** + - Using the ``.query()`` method will send the ``ALIas?`` query. + - Using the ``.verify(value)`` method will send the ``ALIas?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ALIas value`` command. + + **SCPI Syntax:** + + :: + + - ALIas {OFF|ON|} + - ALIas? + + **Info:** + - ``OFF`` turns Alias expansion off. + - ``ON`` turns Alias expansion on. When a defined alias is received, the specified + command sequence is substituted for the alias and executed. + - ```` = 0 disables Alias mode; any other value enables Alias mode. + + Sub-properties: + - ``.catalog``: The ``ALIas:CATalog`` command. + - ``.define``: The ``ALIas:DEFine`` command. + - ``.delete``: The ``ALIas:DELEte`` command. + - ``.state``: The ``ALIas:STATE`` command. + """ + return self._alias + + @property + def allev(self) -> Allev: + """Return the ``ALLEv`` command. + + **Description:** + - This query-only command prompts the instrument to return all events and their messages + (delimited by commas), and removes the returned events from the Event Queue. Use the + ``*ESR?`` query to enable the events to be returned. This command is similar to + repeatedly sending ``*EVMsg?`` queries to the instrument. + + **Usage:** + - Using the ``.query()`` method will send the ``ALLEv?`` query. + - Using the ``.verify(value)`` method will send the ``ALLEv?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ALLEv? + """ + return self._allev + + @property + def allocate(self) -> Allocate: + """Return the ``ALLOcate`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ALLOcate?`` query. + - Using the ``.verify(value)`` method will send the ``ALLOcate?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.waveform``: The ``ALLOcate:WAVEform`` command tree. + """ + return self._allocate + + @property + def application(self) -> Application: + """Return the ``APPLication`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``APPLication?`` query. + - Using the ``.verify(value)`` method will send the ``APPLication?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.activate``: The ``APPLication:ACTivate`` command. + - ``.scopeapp``: The ``APPLication:SCOPEAPP`` command tree. + """ + return self._application + + @property + def autoset(self) -> Autoset: + """Return the ``AUTOSet`` command. + + **Description:** + - This command (no query format) sets the vertical, horizontal, and trigger controls of + the instrument to automatically acquire and display the selected waveform. (To autoset + a video waveform, the video trigger must be set to video standard, not custom. Video + arguments require video hardware.) This is equivalent to pressing the front panel + AUTOSET button. For a detailed description of autoset functionality, see Autoset in + the index of the online help for your instrument. + + **Usage:** + - Using the ``.write(value)`` method will send the ``AUTOSet value`` command. + + **SCPI Syntax:** + + :: + + - AUTOSet {EXECute|UNDo|VFields|VIDeo|VLines} + + **Info:** + - ``EXECute`` runs the autoset routine; this is equivalent to pressing the front panel + AUTOSET button. If the display is set to a PAL, MV, or IRE graticule, this argument + forces the graticule display to full mode (frame, grid, and cross hair). + - ``UNDo`` returns the instrument to the setting prior to executing an autoset. + - ``VFields`` autosets the displayed waveform. + - ``VIDeo`` autosets the displayed waveform. + - ``VLines`` autosets the displayed waveform. + + Sub-properties: + - ``.overlay``: The ``AUTOSet:OVErlay`` command. + - ``.percent``: The ``AUTOSet:PERcent`` command. + """ + return self._autoset + + @property + def auxin(self) -> Auxin: + """Return the ``AUXIn`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``AUXIn?`` query. + - Using the ``.verify(value)`` method will send the ``AUXIn?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.bandwidth``: The ``AUXIn:BANdwidth`` command. + - ``.coupling``: The ``AUXIn:COUPling`` command. + - ``.offset``: The ``AUXIn:OFFSet`` command. + - ``.probefunc``: The ``AUXIn:PROBEFunc`` command tree. + - ``.probe``: The ``AUXIn:PRObe`` command tree. + - ``.vterm``: The ``AUXIn:VTERm`` command tree. + """ + return self._auxin + + @property + def auxout(self) -> Auxout: + """Return the ``AUXout`` command. + + **Description:** + - This query-only command returns the auxiliary output setup and is equivalent to + selecting External Signals. From the Utilities menu, and then viewing the current + settings for the AUX OUT Configuration. + + **Usage:** + - Using the ``.query()`` method will send the ``AUXout?`` query. + - Using the ``.verify(value)`` method will send the ``AUXout?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - AUXout? + + Sub-properties: + - ``.edge``: The ``AUXout:EDGE`` command. + - ``.source``: The ``AUXout:SOUrce`` command. + """ + return self._auxout + + @property + def bell(self) -> Bell: + """Return the ``BELl`` command. + + **Description:** + - This command was previously used to beep an audio indicator and is provided for + backward compatibility. + + **Usage:** + - Using the ``.write()`` method will send the ``BELl`` command. + + **SCPI Syntax:** + + :: + + - BELl + """ + return self._bell + + @property + def bus(self) -> Bus: + """Return the ``BUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``BUS?`` query. + - Using the ``.verify(value)`` method will send the ``BUS?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.b1``: The ``BUS:B1`` command tree. + - ``.b``: The ``BUS:B`` command tree. + - ``.ch``: The ``BUS:CH`` command tree. + - ``.math``: The ``BUS:MATH`` command tree. + - ``.ref``: The ``BUS:REF`` command tree. + """ + return self._bus + + @property + def busy(self) -> Busy: + """Return the ``BUSY`` command. + + **Description:** + - This query-only command returns the status of the instrument. This command allows you + to synchronize the operation of the instrument with your application program. + + **Usage:** + - Using the ``.query()`` method will send the ``BUSY?`` query. + - Using the ``.verify(value)`` method will send the ``BUSY?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - BUSY? + """ + return self._busy + + @property + def cal(self) -> Cal: + """Return the ``*CAL`` command. + + **Description:** + - This query-only command starts signal path calibration (SPC) and returns the status + upon completion. + + **Usage:** + - Using the ``.query()`` method will send the ``*CAL?`` query. + - Using the ``.verify(value)`` method will send the ``*CAL?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *CAL? + """ + return self._cal + + @property + def calibrate(self) -> Calibrate: + """Return the ``CALibrate`` command. + + **Description:** + - This query returns the status of signal path calibration. + + **Usage:** + - Using the ``.query()`` method will send the ``CALibrate?`` query. + - Using the ``.verify(value)`` method will send the ``CALibrate?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CALibrate? + + Sub-properties: + - ``.calprobe``: The ``CALibrate:CALProbe`` command tree. + - ``.internal``: The ``CALibrate:INTERNal`` command. + - ``.probestate``: The ``CALibrate:PRObestate`` command tree. + - ``.results``: The ``CALibrate:RESults`` command. + """ + return self._calibrate + + @property + def ch(self) -> Dict[int, Channel]: + """Return the ``CH`` command. + + **Description:** + - This query-only command returns the vertical parameters for the specified channel. The + channel is specified by x. + + **Usage:** + - Using the ``.query()`` method will send the ``CH?`` query. + - Using the ``.verify(value)`` method will send the ``CH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CH? + + Sub-properties: + - ``.atiactive``: The ``CH:ATIACTive`` command. + - ``.available``: The ``CH:AVAILable`` command. + - ``.bandwidth``: The ``CH:BANdwidth`` command. + - ``.coupling``: The ``CH:COUPling`` command. + - ``.deskew``: The ``CH:DESKew`` command. + - ``.fastacqcapable``: The ``CH:FASTAcqcapable`` command. + - ``.fastframecapable``: The ``CH:FASTFRamecapable`` command. + - ``.icapture``: The ``CH:ICAPture`` command tree. + - ``.invert``: The ``CH:INVert`` command. + - ``.label``: The ``CH:LABel`` command tree. + - ``.offset``: The ``CH:OFFSet`` command. + - ``.opti``: The ``CH:OPTI`` command tree. + - ``.optical``: The ``CH:OPTIcal`` command tree. + - ``.position``: The ``CH:POSition`` command. + - ``.probecontrol``: The ``CH:PROBECOntrol`` command. + - ``.probecal``: The ``CH:PROBECal`` command. + - ``.probefunc``: The ``CH:PROBEFunc`` command tree. + - ``.probe``: The ``CH:PRObe`` command. + - ``.scale``: The ``CH:SCAle`` command. + - ``.termination``: The ``CH:TERmination`` command. + - ``.threshold``: The ``CH:THRESHold`` command. + - ``.vterm``: The ``CH:VTERm`` command tree. + """ + return self._ch + + @property + def clear(self) -> Clear: + """Return the ``CLEAR`` command. + + **Description:** + - This command clears acquisitions, measurements, and waveforms. + + **Usage:** + - Using the ``.write(value)`` method will send the ``CLEAR value`` command. + + **SCPI Syntax:** + + :: + + - CLEAR {ALL} + """ + return self._clear + + @property + def cls(self) -> Cls: + """Return the ``*CLS`` command. + + **Description:** + - This command (no query form) clears the following: Event Queue Standard Event Status + Register Status Byte Register (except the MAV bit) If the ``*CLS`` command immediately + follows an , the Output Queue and MAV bit (Status Byte Register bit 4) are also + cleared. MAV indicates that information is in the output queue. The device clear (DCL) + control message will clear the output queue and thus MAV. ``*CLS`` does not clear the + output queue or MAV. ``*CLS`` can suppress a Service Request that is to be generated + by an ``*OPC``. This will happen if a single sequence acquisition operation is still + being processed when the ``*CLS`` command is executed. + + **Usage:** + - Using the ``.write()`` method will send the ``*CLS`` command. + + **SCPI Syntax:** + + :: + + - *CLS + """ + return self._cls + + @property + def cmdbatch(self) -> Cmdbatch: + """Return the ``CMDBatch`` command. + + **Description:** + - This command sets or queries the state of command batching. By batching commands, + database transactions can be optimized, increasing command throughput. Also, batching + allows for ALL commands in an individual batch to be order independent and accomplish + the same result as if the commands were coupled. The Batch state is persistent and + will be saved across power cycles, but will not be saved and recalled as part of a + setup. In a setup scenario, the factory initial value is enabled. + + **Usage:** + - Using the ``.query()`` method will send the ``CMDBatch?`` query. + - Using the ``.verify(value)`` method will send the ``CMDBatch?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CMDBatch value`` command. + + **SCPI Syntax:** + + :: + + - CMDBatch {OFF|ON} + - CMDBatch? + + **Info:** + - ```` = 0 turns command batching off; any other value turns command batching on. + - ``OFF`` turns command batching off. + - ``ON`` turns command batching on. + """ + return self._cmdbatch + + @property + def counter(self) -> Counter: + """Return the ``COUnter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``COUnter?`` query. + - Using the ``.verify(value)`` method will send the ``COUnter?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.results``: The ``COUnter:RESULTs`` command. + """ + return self._counter + + @property + def cq(self) -> Dict[int, CqItem]: + """Return the ``CQ`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``CQ?`` query. + - Using the ``.verify(value)`` method will send the ``CQ?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.threshold``: The ``CQ:THRESHold`` command. + """ + return self._cq + + @property + def cursor(self) -> Cursor: + """Return the ``CURSor`` command. + + **Description:** + - Returns all of the current cursor settings. + + **Usage:** + - Using the ``.query()`` method will send the ``CURSor?`` query. + - Using the ``.verify(value)`` method will send the ``CURSor?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CURSor? + + Sub-properties: + - ``.function``: The ``CURSor:FUNCtion`` command. + - ``.hbars``: The ``CURSor:HBArs`` command. + - ``.linestyle``: The ``CURSor:LINESTyle`` command. + - ``.mode``: The ``CURSor:MODe`` command. + - ``.screen``: The ``CURSor:SCREEN`` command tree. + - ``.source1``: The ``CURSor:SOUrce1`` command. + - ``.state``: The ``CURSor:STATE`` command. + - ``.vbars``: The ``CURSor:VBArs`` command. + - ``.waveform``: The ``CURSor:WAVEform`` command. + - ``.xy``: The ``CURSor:XY`` command. + """ + return self._cursor + + @property + def curve(self) -> Curve: + """Return the ``CURVe`` command. + + **Description:** + - The ``CURVe`` command transfers the waveform data points the oscilloscope's internal + reference memory location (REF1-4), which is specified by the to ``DATa:DESTination`` + command. The ``CURVe?`` query transfers data the oscilloscope; the source waveform is + specified by the from ``DATa:SOUrce`` command. The first and last data points are + specified by the ``DATa:STARt`` and ``DATa:STOP`` commands. Associated with each + waveform transferred using the ``CURVe`` command or query is a waveform preamble that + provides the data format, scale and associated information needed to interpret the + waveform data points. The preamble information for waveforms sent the oscilloscope is + specified using the to WFMInpre commands. The preamble information for waveforms + transferred the oscilloscope is specified or queried using the from WFMOutpre + commands. If the waveform is not displayed, the query form generates an error. The + ``CURVe`` command and ``CURVe?`` query transfer waveform data in ASCII or binary + format. ASCII data is sent as a comma-separated list of decimal values. Binary data is + sent with the IEEE488.2 binary block header immediately followed by the binary data. + The IEEE488.2 binary block header is defined as follows: #N where: N is a + single decimal or hexadecimal digit indicating the number of digits to follow. + are the decimal digits representing the number of bytes in the data that + immediately follows this binary block header. The Waveform Transfer command group text + contains more comprehensive information. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVe?`` query. + - Using the ``.verify(value)`` method will send the ``CURVe?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CURVe value`` command. + + **SCPI Syntax:** + + :: + + - CURVe {|} + - CURVe? + + **Info:** + - ```` is the waveform data in binary format. The waveform is formatted as + follows. + - ```` is the waveform data in ASCII format. The format for ASCII data is + [,..], where each represents a data point. For RF frequency domain + waveforms, the data is transmitted as 4-byte floating point values (NR2 or NR3). + """ + return self._curve + + @property + def curvenext(self) -> Curvenext: + """Return the ``CURVENext`` command. + + **Description:** + - This query-only command returns unique waveform data from the instrument. This query + performs just like CURVE?, except multiple uses guarantee that the waveform returned + is always a new acquisition since the previous CURVENEXT. Note that if the instrument + is acquiring waveform records at a slow rate (high resolution mode), you must + configure the controller for long timeout thresholds. Data will not be transferred + until a new waveform is acquired since the previous ``:CURVENext?`` response. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVENext?`` query. + - Using the ``.verify(value)`` method will send the ``CURVENext?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CURVENext? + """ + return self._curvenext + + @property + def curvestream(self) -> Curvestream: + """Return the ``CURVEStream`` command. + + **Description:** + - This query continuously transfers waveform data from the instrument as it is acquired. + This command puts the instrument into a talk-only mode, allowing the controller to + receive waveform records as fast as (and as soon as) they are acquired. Use the + ``DATA:SOURCE`` command to specify the waveform sources. The command does the same + thing as the CURVE command. Control of the instrument through the user interface or + other external client is not possible while in streaming mode. The GPIB controller + must take the instrument out of this continuous talking mode to terminate the query + and allow other input sources to resume communication with the instrument. The + following options are available to transition out of streaming curve mode: send a + device clear over the bus or send another query to the instrument (a MEPE Query + Interrupted error will occur, but the instrument will be placed back into its normal + talk/listen mode). Turning the waveform screen display mode off + (``:DISPLAY:WAVEFORM OFF``) will increase waveform throughput during streaming mode. + While in streaming mode, two extreme conditions can occur. If the waveform records are + being acquired slowly (high resolution), configure the controller for long time-out + thresholds, as the data is not sent out until each complete record is acquired. If the + waveform records are being acquired rapidly (low resolution), and the controller is + not reading the data off the bus fast enough, the trigger rate is slowed to allow each + waveform to be sent sequentially. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVEStream?`` query. + - Using the ``.verify(value)`` method will send the ``CURVEStream?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CURVEStream value`` command. + + **SCPI Syntax:** + + :: + + - CURVEStream {|} + - CURVEStream? + """ + return self._curvestream + + @property + def custom(self) -> Custom: + """Return the ``CUSTOM`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``CUSTOM?`` query. + - Using the ``.verify(value)`` method will send the ``CUSTOM?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.gate``: The ``CUSTOM:GATE`` command tree. + - ``.select``: The ``CUSTOM:SELECT`` command tree. + """ + return self._custom + + @property + def d(self) -> Dict[int, DigitalBit]: + """Return the ``D`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``D?`` query. + - Using the ``.verify(value)`` method will send the ``D?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.label``: The ``D:LABEL`` command. + - ``.position``: The ``D:POSition`` command. + - ``.probe``: The ``D:PROBE`` command tree. + - ``.threshold``: The ``D:THRESHold`` command. + """ + return self._d + + @property + def data(self) -> Data: + """Return the ``DATa`` command. + + **Description:** + - This command sets or queries the format and location of the waveform data that is + transferred with the CURVE command. + + **Usage:** + - Using the ``.query()`` method will send the ``DATa?`` query. + - Using the ``.verify(value)`` method will send the ``DATa?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DATa value`` command. + + **SCPI Syntax:** + + :: + + - DATa {INIT|SNAp} + - DATa? + + **Info:** + - ``INIT`` initializes the waveform data parameters to their factory defaults except for + ``DATa:STOP``, which isset to the current acquisition record length. + - ``SNAp`` Sets ``DATa:STARt`` and ``DATa:STOP`` to match the current waveform cursor + positions of WAVEVIEW1 CURSOR1 if these waveform cursors are currently on. If these + waveform cursors are not on when the ``DATa SNAp`` command is sent, it is silently + ignored and ``DATa:STARt`` and ``:STOP`` remain unchanged. + + Sub-properties: + - ``.destination``: The ``DATa:DESTination`` command. + - ``.encdg``: The ``DATa:ENCdg`` command. + - ``.framestart``: The ``DATa:FRAMESTARt`` command. + - ``.framestop``: The ``DATa:FRAMESTOP`` command. + - ``.source``: The ``DATa:SOUrce`` command. + - ``.start``: The ``DATa:STARt`` command. + - ``.stop``: The ``DATa:STOP`` command. + - ``.syncsources``: The ``DATa:SYNCSOUrces`` command. + """ + return self._data + + @property + def date(self) -> Date: + """Return the ``DATE`` command. + + **Description:** + - This command specifies the date the oscilloscope displays. + + **Usage:** + - Using the ``.query()`` method will send the ``DATE?`` query. + - Using the ``.verify(value)`` method will send the ``DATE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DATE value`` command. + + **SCPI Syntax:** + + :: + + - DATE + - DATE? + + **Info:** + - ```` is a date in the form 'yyyy-mm-dd' where yyyy refers to a four-digit + year number, mm refers to a two-digit month number from 01 to 12, and dd refers to a + two-digit day number in the month. + """ + return self._date + + @property + def ddt(self) -> Ddt: + """Return the ``*DDT`` command. + + **Description:** + - This command allows you to specify a command or a list of commands that are executed + when the instrument receives a TRG command. Define Device Trigger ( ``*DDT`` ) is a + special alias that the ``*TRG`` command uses. + + **Usage:** + - Using the ``.query()`` method will send the ``*DDT?`` query. + - Using the ``.verify(value)`` method will send the ``*DDT?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*DDT value`` command. + + **SCPI Syntax:** + + :: + + - *DDT {|} + - *DDT? + + **Info:** + - ```` is a complete sequence of program messages. The messages can contain only + valid commands that must be separated by semicolons and must follow all rules for + concatenating commands. The sequence must be less than or equal to 80 characters. The + format of this argument is always returned as a query. + - ```` is a complete sequence of program messages. The messages can contain + only valid commands that must be separated by semicolons and must follow all rules for + concatenating commands. The sequence must be less than or equal to 80 characters. + """ + return self._ddt + + @property + def delete(self) -> Delete: + """Return the ``DELEte`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``DELEte?`` query. + - Using the ``.verify(value)`` method will send the ``DELEte?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.setup``: The ``DELEte:SETUp`` command. + - ``.waveform``: The ``DELEte:WAVEform`` command. + """ + return self._delete + + @property + def dese(self) -> Dese: + """Return the ``DESE`` command. + + **Description:** + - This command sets and queries the bits in the Device Event Status Enable Register + (DESER). The DESER is the mask that determines whether events are reported to the + Standard Event Status Register (SESR), and entered into the Event Queue. For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``DESE?`` query. + - Using the ``.verify(value)`` method will send the ``DESE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DESE value`` command. + + **SCPI Syntax:** + + :: + + - DESE + - DESE? + + **Info:** + - ```` The binary bits of the DESER are set according to this value, which ranges + from 1 through 255. For example, ``DESE 209`` sets the DESER to the binary value + 11010001 (that is, the most significant bit in the register is set to 1, the next most + significant bit to 1, the next bit to 0, etc.). + """ + return self._dese + + @property + def diag(self) -> Diag: + """Return the ``DIAg`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``DIAg?`` query. + - Using the ``.verify(value)`` method will send the ``DIAg?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.control``: The ``DIAg:CONTROL`` command tree. + - ``.execute``: The ``DIAg:EXECUTE`` command. + - ``.failures``: The ``DIAg:FAILURES`` command tree. + - ``.item``: The ``DIAg:ITEM`` command. + - ``.level``: The ``DIAg:LEVEL`` command. + - ``.loops``: The ``DIAg:LOOPS`` command. + - ``.name``: The ``DIAg:NAMe`` command. + - ``.numitems``: The ``DIAg:NUMITEMS`` command. + - ``.results``: The ``DIAg:RESults`` command. + - ``.select``: The ``DIAg:SELect`` command tree. + - ``.state``: The ``DIAg:STATE`` command. + - ``.stop``: The ``DIAg:STOP`` command. + """ + return self._diag + + @property + def display(self) -> Display: + """Return the ``DISplay`` command. + + **Description:** + - This query-only command returns the current Display settings. + + **Usage:** + - Using the ``.query()`` method will send the ``DISplay?`` query. + - Using the ``.verify(value)`` method will send the ``DISplay?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - DISplay? + + Sub-properties: + - ``.clock``: The ``DISplay:CLOCk`` command. + - ``.color``: The ``DISplay:COLOr`` command. + - ``.data``: The ``DISplay:DATa`` command. + - ``.deskew``: The ``DISplay:DESKew`` command. + - ``.digital``: The ``DISplay:DIGital`` command tree. + - ``.dpojetplot``: The ``DISplay:DPOJETPlot`` command. + - ``.filter``: The ``DISplay:FILTer`` command. + - ``.format``: The ``DISplay:FORMat`` command. + - ``.graticule``: The ``DISplay:GRAticule`` command. + - ``.intensity``: The ``DISplay:INTENSITy`` command. + - ``.persistence``: The ``DISplay:PERSistence`` command. + - ``.screentext``: The ``DISplay:SCREENTExt`` command. + - ``.showremote``: The ``DISplay:SHOWREmote`` command. + - ``.style``: The ``DISplay:STYle`` command. + - ``.trigbar``: The ``DISplay:TRIGBar`` command. + - ``.trigt``: The ``DISplay:TRIGT`` command. + - ``.varpersist``: The ``DISplay:VARpersist`` command. + - ``.waveform``: The ``DISplay:WAVEform`` command. + """ + return self._display + + @property + def email(self) -> Email: + """Return the ``EMail`` command. + + **Description:** + - This command (no query form) sends a test e-mail message or sets the current e-mail + sent count to zero. + + **Usage:** + - Using the ``.write(value)`` method will send the ``EMail value`` command. + + **SCPI Syntax:** + + :: + + - EMail {TESt|RESET} + + **Info:** + - ``TESt`` argument sends a test e-mail message. + - ``RESET`` argument sets the e-mail sent count to zero. + + Sub-properties: + - ``.attempts``: The ``EMail:ATTempts`` command. + - ``.authlogin``: The ``EMail:AUTHLogin`` command. + - ``.authpassword``: The ``EMail:AUTHPassword`` command. + - ``.count``: The ``EMail:COUNt`` command. + - ``.from``: The ``EMail:FROm`` command. + - ``.hostwanted``: The ``EMail:HOSTwanted`` command. + - ``.image``: The ``EMail:IMAGe`` command. + - ``.limit``: The ``EMail:LIMit`` command. + - ``.mask``: The ``EMail:MASK`` command. + - ``.maxsize``: The ``EMail:MAXSize`` command. + - ``.measurement``: The ``EMail:MEASUrement`` command. + - ``.numemails``: The ``EMail:NUMEMails`` command. + - ``.smtpport``: The ``EMail:SMTPPort`` command. + - ``.smtpserver``: The ``EMail:SMTPServer`` command. + - ``.status``: The ``EMail:STATUS`` command. + - ``.timeout``: The ``EMail:TIMEOut`` command. + - ``.to``: The ``EMail:TO`` command. + - ``.trigger``: The ``EMail:TRIGger`` command. + - ``.waveform``: The ``EMail:WAVEform`` command. + """ + return self._email + + @property + def errordetector(self) -> Errordetector: + """Return the ``ERRORDetector`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.alert``: The ``ERRORDetector:ALERT`` command. + - ``.aligncharacter``: The ``ERRORDetector:ALIGNCHARacter`` command. + - ``.alignprimitive``: The ``ERRORDetector:ALIGNPRIMitive`` command. + - ``.bit``: The ``ERRORDetector:BIT`` command tree. + - ``.bitrate``: The ``ERRORDetector:BITRate`` command. + - ``.channel``: The ``ERRORDetector:CHANnel`` command. + - ``.duration``: The ``ERRORDetector:DURATION`` command tree. + - ``.errorlimit``: The ``ERRORDetector:ERRORLIMIT`` command. + - ``.file``: The ``ERRORDetector:FILE`` command tree. + - ``.fontsize``: The ``ERRORDetector:FONTSIze`` command. + - ``.frame``: The ``ERRORDetector:FRAme`` command. + - ``.maxaligns``: The ``ERRORDetector:MAXALIGNS`` command. + - ``.patternname``: The ``ERRORDetector:PATTERNNAME`` command. + - ``.preset``: The ``ERRORDetector:PREset`` command. + - ``.saveimage``: The ``ERRORDetector:SAVEIMAGE`` command. + - ``.savewfm``: The ``ERRORDetector:SAVEWFM`` command. + - ``.scrambled``: The ``ERRORDetector:SCRAMBLED`` command. + - ``.sendemail``: The ``ERRORDetector:SENDEMAIL`` command. + - ``.signaltype``: The ``ERRORDetector:SIGnaltype`` command. + - ``.ssc``: The ``ERRORDetector:SSC`` command. + - ``.standard``: The ``ERRORDetector:STANdard`` command. + - ``.state``: The ``ERRORDetector:STATE`` command. + - ``.status``: The ``ERRORDetector:STATus`` command. + - ``.stopwhen``: The ``ERRORDetector:STOPWHEN`` command. + - ``.symbol``: The ``ERRORDetector:SYMBOL`` command. + - ``.timeformat``: The ``ERRORDetector:TIMEformat`` command. + - ``.type``: The ``ERRORDetector:TYPe`` command. + """ + return self._errordetector + + @property + def ese(self) -> Ese: + """Return the ``*ESE`` command. + + **Description:** + - This command sets and queries the bits in the Event Status Enable Register (ESER). The + ESER prevents events from being reported to the Status Byte Register (STB). For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*ESE?`` query. + - Using the ``.verify(value)`` method will send the ``*ESE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*ESE value`` command. + + **SCPI Syntax:** + + :: + + - *ESE + - *ESE? + + **Info:** + - ```` specifies the binary bits of the ESER according to this value, which ranges + from 0 through 255. + """ + return self._ese + + @property + def esr(self) -> Esr: + """Return the ``*ESR`` command. + + **Description:** + - This query-only command returns the contents of the Standard Event Status Register + (SESR). ``*ESR?`` also clears the SESR (since reading the SESR clears it). For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*ESR?`` query. + - Using the ``.verify(value)`` method will send the ``*ESR?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *ESR? + """ + return self._esr + + @property + def event(self) -> Event: + """Return the ``EVENT`` command. + + **Description:** + - This query-only command returns an event code from the Event Queue that provides + information about the results of the last ESR read. ``EVENT?`` also removes the + returned value from the Event Queue. + + **Usage:** + - Using the ``.query()`` method will send the ``EVENT?`` query. + - Using the ``.verify(value)`` method will send the ``EVENT?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVENT? + """ + return self._event + + @property + def evmsg(self) -> Evmsg: + """Return the ``EVMsg`` command. + + **Description:** + - This query-only command removes a single event code from the Event Queue that is + associated with the results of the last ESR read and returns the event code with an + explanatory message. For more information, see Event Handling. + + **Usage:** + - Using the ``.query()`` method will send the ``EVMsg?`` query. + - Using the ``.verify(value)`` method will send the ``EVMsg?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVMsg? + """ + return self._evmsg + + @property + def evqty(self) -> Evqty: + """Return the ``EVQty`` command. + + **Description:** + - This query-only command returns the number of events that are enabled in the queue. + This is useful when using the ALLEV query, since it lets you know exactly how many + events will be returned. + + **Usage:** + - Using the ``.query()`` method will send the ``EVQty?`` query. + - Using the ``.verify(value)`` method will send the ``EVQty?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVQty? + """ + return self._evqty + + @property + def export(self) -> Export: + """Return the ``EXPort`` command. + + **Description:** + - This command sends a copy of the waveform to the file path specified by + ``EXPORT:FILENAME``. The ``EXPort`` query returns image format and file information. + + **Usage:** + - Using the ``.query()`` method will send the ``EXPort?`` query. + - Using the ``.verify(value)`` method will send the ``EXPort?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``EXPort value`` command. + + **SCPI Syntax:** + + :: + + - EXPort STARt + - EXPort? + + **Info:** + - ``STARt`` initiates the export. + + Sub-properties: + - ``.filename``: The ``EXPort:FILEName`` command. + - ``.format``: The ``EXPort:FORMat`` command. + - ``.palette``: The ``EXPort:PALEtte`` command. + - ``.readouts``: The ``EXPort:READOuts`` command. + - ``.view``: The ``EXPort:VIEW`` command. + """ + return self._export + + @property + def factory(self) -> Factory: + """Return the ``FACtory`` command. + + **Description:** + - This command (no query form) resets the instrument to its factory default settings. + This command is equivalent to pressing the DEFAULT SETUP button located on the + instrument front panel or selecting Default Setup from the File menu. This command + Performs the following in addition to what is done for the ``*RST`` command: Clears + any pending OPC operations. Resets the following IEEE488.2 registers: ``*ESE 0`` + (Event Status Enable Register) ``*SRE 0`` (Service Request Enable Register) DESE 255 + (Device Event Status Enable Register) ``*PSC 1`` (Power-on Status Clear Flag) Deletes + all defined aliases. Enables command headers (``:HEADer 1``). + + **Usage:** + - Using the ``.write()`` method will send the ``FACtory`` command. + + **SCPI Syntax:** + + :: + + - FACtory + """ + return self._factory + + @property + def fastacq(self) -> Fastacq: + """Return the ``FASTAcq`` command. + + **Description:** + - This query-only command returns the state of Fast Acquisitions. This command is + equivalent to pressing the FASTACQ button on the front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``FASTAcq?`` query. + - Using the ``.verify(value)`` method will send the ``FASTAcq?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - FASTAcq? + + Sub-properties: + - ``.hiacqrate``: The ``FASTAcq:HIACQRATE`` command. + - ``.state``: The ``FASTAcq:STATE`` command. + """ + return self._fastacq + + @property + def filesystem(self) -> Filesystem: + """Return the ``FILESystem`` command. + + **Description:** + - This query-only command returns the directory listing of the current working + directory. This query is the same as the ``FILESystem:DIR?`` query. + + **Usage:** + - Using the ``.query()`` method will send the ``FILESystem?`` query. + - Using the ``.verify(value)`` method will send the ``FILESystem?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - FILESystem? + + Sub-properties: + - ``.copy``: The ``FILESystem:COPy`` command. + - ``.cwd``: The ``FILESystem:CWD`` command. + - ``.delete``: The ``FILESystem:DELEte`` command. + - ``.dir``: The ``FILESystem:DIR`` command. + - ``.mkdir``: The ``FILESystem:MKDir`` command. + - ``.print``: The ``FILESystem:PRInt`` command. + - ``.readfile``: The ``FILESystem:READFile`` command. + - ``.rename``: The ``FILESystem:REName`` command. + - ``.rmdir``: The ``FILESystem:RMDir`` command. + - ``.writefile``: The ``FILESystem:WRITEFile`` command. + """ + return self._filesystem + + @property + def gpibusb(self) -> Gpibusb: + """Return the ``GPIBUsb`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``GPIBUsb?`` query. + - Using the ``.verify(value)`` method will send the ``GPIBUsb?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``GPIBUsb:ADDress`` command. + - ``.hwversion``: The ``GPIBUsb:HWVersion`` command. + - ``.id``: The ``GPIBUsb:ID`` command. + """ + return self._gpibusb + + @property + def hardcopy(self) -> Hardcopy: + """Return the ``HARDCopy`` command. + + **Description:** + - This command sends a copy of the screen display to the port specified by + ``HARDCopy:PORT``. This command is equivalent to pressing the PRINT button on the + front panel. When printing to a file, the file format can be BMP, JPG, PNG, PCX or + TIFF. The format of the saved screen capture is set by the ``EXPORT:FORMAT`` command. + The file format setting is persistent, and will not be affected by a default setup or + ``*RST`` command sent to the instrument. The ``HARDCopy`` query returns the port and + file path. + + **Usage:** + - Using the ``.query()`` method will send the ``HARDCopy?`` query. + - Using the ``.verify(value)`` method will send the ``HARDCopy?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HARDCopy value`` command. + + **SCPI Syntax:** + + :: + + - HARDCopy STARt + - HARDCopy? + + **Info:** + - ``STARt`` initiates a screen copy to a file or the default system printer, as + specified by the ``:HARDCopy:PORT`` selection. The default system printer is set + within the Windows operating system. If you need information about how to set the + default system printer, refer to Microsoft Windows online help. + + Sub-properties: + - ``.filename``: The ``HARDCopy:FILEName`` command. + - ``.layout``: The ``HARDCopy:LAYout`` command. + - ``.palette``: The ``HARDCopy:PALEtte`` command. + - ``.port``: The ``HARDCopy:PORT`` command. + - ``.readouts``: The ``HARDCopy:READOuts`` command. + - ``.view``: The ``HARDCopy:VIEW`` command. + """ + return self._hardcopy + + @property + def hdr(self) -> Hdr: + """Return the ``HDR`` command. + + **Description:** + - This command is identical to the HEADer query and is included for backward + compatibility purposes. + + **Usage:** + - Using the ``.query()`` method will send the ``HDR?`` query. + - Using the ``.verify(value)`` method will send the ``HDR?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HDR value`` command. + + **SCPI Syntax:** + + :: + + - HDR {|OFF|ON} + - HDR? + + **Info:** + - ```` = 0 sets the Response Header Enable State to false; any other value sets + this state to true, which causes the instrument to send headers on query responses. + - ``OFF`` sets the Response Header Enable State to false. This causes the instrument to + omit headers on query responses, so that only the argument is returned. + - ``ON`` sets the Response Header Enable State to true. This causes the instrument to + include headers on applicable query responses. You can then use the query response as + a command. + """ + return self._hdr + + @property + def header(self) -> Header: + """Return the ``HEADer`` command. + + **Description:** + - This command sets or queries the Response Header Enable State that causes the + instrument to either include or omit headers on query responses. Whether the long or + short form of header keywords and enumerations are returned is dependent upon the + state of ``:VERBose``. + + **Usage:** + - Using the ``.query()`` method will send the ``HEADer?`` query. + - Using the ``.verify(value)`` method will send the ``HEADer?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HEADer value`` command. + + **SCPI Syntax:** + + :: + + - HEADer {|OFF|ON} + - HEADer? + + **Info:** + - ```` = 0 sets the Response Header Enable State to false; any other value sets + this state to true. + - ``OFF`` sets the Response Header Enable State to false. This causes the instrument to + omit headers on query responses, so that only the argument is returned. + - ``ON`` sets the Response Header Enable State to true. This causes the instrument to + include headers on applicable query responses. You can then use the query response as + a command. + """ + return self._header + + @property + def histogram(self) -> Histogram: + """Return the ``HIStogram`` command. + + **Description:** + - This query-only query returns all histogram parameters; it queries the state of all + histogram parameters that the user can set. This command is equivalent to selecting + Waveform Histograms from the Measure menu. + + **Usage:** + - Using the ``.query()`` method will send the ``HIStogram?`` query. + - Using the ``.verify(value)`` method will send the ``HIStogram?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - HIStogram? + + Sub-properties: + - ``.box``: The ``HIStogram:BOX`` command. + - ``.boxpcnt``: The ``HIStogram:BOXPcnt`` command. + - ``.count``: The ``HIStogram:COUNt`` command. + - ``.data``: The ``HIStogram:DATa`` command. + - ``.display``: The ``HIStogram:DISplay`` command. + - ``.function``: The ``HIStogram:FUNCtion`` command. + - ``.mode``: The ``HIStogram:MODe`` command. + - ``.size``: The ``HIStogram:SIZe`` command. + - ``.source``: The ``HIStogram:SOUrce`` command. + - ``.state``: The ``HIStogram:STATE`` command. + """ + return self._histogram + + @property + def horizontal(self) -> Horizontal: + """Return the ``HORizontal`` command. + + **Description:** + - Queries the current horizontal settings. + + **Usage:** + - Using the ``.query()`` method will send the ``HORizontal?`` query. + - Using the ``.verify(value)`` method will send the ``HORizontal?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - HORizontal? + + Sub-properties: + - ``.acqduration``: The ``HORizontal:ACQDURATION`` command. + - ``.acqlength``: The ``HORizontal:ACQLENGTH`` command. + - ``.digital``: The ``HORizontal:DIGital`` command tree. + - ``.divisions``: The ``HORizontal:DIVisions`` command. + - ``.fastframe``: The ``HORizontal:FASTframe`` command. + - ``.main``: The ``HORizontal:MAIn`` command. + - ``.mode``: The ``HORizontal:MODE`` command. + - ``.position``: The ``HORizontal:POSition`` command. + - ``.roll``: The ``HORizontal:ROLL`` command. + - ``.timestamp``: The ``HORizontal:TIMEStamp`` command tree. + """ + return self._horizontal + + @property + def id(self) -> Id: + """Return the ``ID`` command. + + **Description:** + - This query-only command returns identifying information about the instrument and + related firmware similar to that returned by the ``*IDN?`` IEEE488.2 common query but + does not include the instrument serial number. + + **Usage:** + - Using the ``.query()`` method will send the ``ID?`` query. + - Using the ``.verify(value)`` method will send the ``ID?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ID? + """ + return self._id + + @property + def idn(self) -> Idn: + """Return the ``*IDN`` command. + + **Description:** + - This query-only command returns the instrument identification code. + + **Usage:** + - Using the ``.query()`` method will send the ``*IDN?`` query. + - Using the ``.verify(value)`` method will send the ``*IDN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *IDN? + """ + return self._idn + + @property + def limit(self) -> Limit: + """Return the ``LIMit`` command. + + **Description:** + - This query-only command returns all settings for the Limit commands. + + **Usage:** + - Using the ``.query()`` method will send the ``LIMit?`` query. + - Using the ``.verify(value)`` method will send the ``LIMit?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - LIMit? + + Sub-properties: + - ``.beep``: The ``LIMit:BEEP`` command. + - ``.compare``: The ``LIMit:COMpare`` command. + - ``.email``: The ``LIMit:EMail`` command. + - ``.hardcopy``: The ``LIMit:HARDCopy`` command. + - ``.highlighthits``: The ``LIMit:HIGHLIGHTHits`` command. + - ``.lock``: The ``LIMit:LOCk`` command. + - ``.log``: The ``LIMit:LOG`` command. + - ``.savewfm``: The ``LIMit:SAVEWFM`` command. + - ``.srq``: The ``LIMit:SRQ`` command. + - ``.state``: The ``LIMit:STATE`` command. + - ``.status``: The ``LIMit:STATus`` command. + - ``.stoponviolation``: The ``LIMit:STOPOnviolation`` command. + - ``.template``: The ``LIMit:TEMPlate`` command tree. + """ + return self._limit + + @property + def linktraining(self) -> Linktraining: + """Return the ``LINKTRaining`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``LINKTRaining?`` query. + - Using the ``.verify(value)`` method will send the ``LINKTRaining?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.acqtime``: The ``LINKTRaining:ACQTime`` command. + - ``.armscope``: The ``LINKTRaining:ARMscope`` command. + - ``.decode``: The ``LINKTRaining:DECOde`` command. + - ``.equalizationch``: The ``LINKTRaining:EQUalizationCH`` command. + - ``.lane``: The ``LINKTRaining:LANE`` command. + - ``.mark``: The ``LINKTRaining:MARK`` command. + - ``.setup``: The ``LINKTRaining:SETUP`` command. + """ + return self._linktraining + + @property + def lock(self) -> Lock: + """Return the ``LOCk`` command. + + **Description:** + - This command enables or disables the touch screen and all front panel buttons and + knobs. There is no front panel equivalent. When the front panel is locked, the front + panel commands will not work and will not generate error events. You can work around a + locked front panel, by using the appropriate programmatic interface commands, instead + of the front-panel commands. For example, to set the trigger level to 50%, you could + use ``TRIGger:A SETLevel``. To force a trigger, you could use TRIGger FORCe. + + **Usage:** + - Using the ``.query()`` method will send the ``LOCk?`` query. + - Using the ``.verify(value)`` method will send the ``LOCk?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``LOCk value`` command. + + **SCPI Syntax:** + + :: + + - LOCk {ALL|NONe} + - LOCk? + + **Info:** + - ``ALL`` disables all front panel controls and the touch screen. + - ``NONe`` enables all front panel controls and the touch screen. The UNLock ALL command + only unlocks the front panel controls. + - ``NONe`` command has no effect. For more information, see the ANSI/IEEE Std 488.1-1987 + Standard Digital Interface for Programmable Instrumentation, section 2.8.3 on RL State + Descriptions. + """ + return self._lock + + @property + def lrn(self) -> Lrn: + """Return the ``*LRN`` command. + + **Description:** + - This query-only command returns the commands that list the instrument settings, + allowing you to record or 'learn' the current instrument settings. You can use these + commands to return the instrument to the state it was in when you made the ``*LRN?`` + query. This command is identical to the SET command. + + **Usage:** + - Using the ``.query()`` method will send the ``*LRN?`` query. + - Using the ``.verify(value)`` method will send the ``*LRN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *LRN? + """ + return self._lrn + + @property + def mark(self) -> Mark: + """Return the ``MARK`` command. + + **Description:** + - Moves to the next or previous reference mark on the waveform. Returns the current mark + position. + + **Usage:** + - Using the ``.query()`` method will send the ``MARK?`` query. + - Using the ``.verify(value)`` method will send the ``MARK?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``MARK value`` command. + + **SCPI Syntax:** + + :: + + - MARK {NEXT|PREVious} + - MARK? + + **Info:** + - ``NEXT`` moves to the next reference mark on the right. + - ``PREVious`` moves to the next reference mark on the left. + + Sub-properties: + - ``.create``: The ``MARK:CREATE`` command. + - ``.delete``: The ``MARK:DELEte`` command. + - ``.free``: The ``MARK:FREE`` command. + - ``.selected``: The ``MARK:SELECTED`` command tree. + - ``.total``: The ``MARK:TOTal`` command. + """ + return self._mark + + @property + def mask(self) -> Mask: + """Return the ``MASK`` command. + + **Description:** + - This query-only command returns the states of all settable mask parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``MASK?`` query. + - Using the ``.verify(value)`` method will send the ``MASK?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MASK? + + Sub-properties: + - ``.autoadjust``: The ``MASK:AUTOAdjust`` command. + - ``.autoset``: The ``MASK:AUTOSet`` command tree. + - ``.copy``: The ``MASK:COPy`` command tree. + - ``.count``: The ``MASK:COUNt`` command. + - ``.display``: The ``MASK:DISplay`` command. + - ``.filter``: The ``MASK:FILTer`` command. + - ``.highlighthits``: The ``MASK:HIGHLIGHTHits`` command. + - ``.invert``: The ``MASK:INVert`` command. + - ``.lock``: The ``MASK:LOCk`` command. + - ``.margin``: The ``MASK:MARgin`` command tree. + - ``.maskpre``: The ``MASK:MASKPRE`` command tree. + - ``.polarity``: The ``MASK:POLarity`` command. + - ``.seg``: The ``MASK:SEG`` command. + - ``.source``: The ``MASK:SOUrce`` command. + - ``.standard``: The ``MASK:STANdard`` command. + - ``.stoponviolation``: The ``MASK:STOPOnviolation`` command. + - ``.test``: The ``MASK:TESt`` command tree. + - ``.user``: The ``MASK:USER`` command tree. + """ + return self._mask + + @property + def math(self) -> Dict[int, MathItem]: + """Return the ``MATH`` command. + + **Description:** + - This query-only command returns the definition for the math waveform specified by , + which ranges from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``MATH?`` query. + - Using the ``.verify(value)`` method will send the ``MATH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MATH? + + Sub-properties: + - ``.define``: The ``MATH:DEFine`` command. + - ``.filter``: The ``MATH:FILTer`` command tree. + - ``.label``: The ``MATH:LABel`` command tree. + - ``.numavg``: The ``MATH:NUMAVg`` command. + - ``.spectral``: The ``MATH:SPECTral`` command. + - ``.threshold``: The ``MATH:THRESHold`` command. + - ``.unitstring``: The ``MATH:UNITString`` command. + - ``.vertical``: The ``MATH:VERTical`` command tree. + """ + return self._math + + @property + def matharbflt(self) -> Dict[int, MatharbfltItem]: + """Return the ``MATHArbflt`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MATHArbflt?`` query. + - Using the ``.verify(value)`` method will send the ``MATHArbflt?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.filepath``: The ``MATHArbflt:FILepath`` command. + - ``.readfile``: The ``MATHArbflt:READFile`` command. + """ + return self._matharbflt + + @property + def mathvar(self) -> Mathvar: + """Return the ``MATHVAR`` command. + + **Description:** + - Queries both numerical values you can use within math expressions. + + **Usage:** + - Using the ``.query()`` method will send the ``MATHVAR?`` query. + - Using the ``.verify(value)`` method will send the ``MATHVAR?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MATHVAR? + + Sub-properties: + - ``.var``: The ``MATHVAR:VAR`` command. + """ + return self._mathvar + + @property + def mch(self) -> Dict[int, MchItem]: + """Return the ``MCH`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MCH?`` query. + - Using the ``.verify(value)`` method will send the ``MCH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.minamplitude``: The ``MCH:MINAMPLitude`` command. + - ``.maxamplitude``: The ``MCH:MAXAMPLitude`` command. + """ + return self._mch + + @property + def measurement(self) -> Measurement: + """Return the ``MEASUrement`` command. + + **Description:** + - This query-only command returns all measurement parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``MEASUrement?`` query. + - Using the ``.verify(value)`` method will send the ``MEASUrement?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MEASUrement? + + Sub-properties: + - ``.annotation``: The ``MEASUrement:ANNOTation`` command tree. + - ``.dpojetstatistics``: The ``MEASUrement:DPOJETSTATistics`` command. + - ``.gating``: The ``MEASUrement:GATing`` command. + - ``.immed``: The ``MEASUrement:IMMed`` command. + - ``.meas``: The ``MEASUrement:MEAS`` command. + - ``.method``: The ``MEASUrement:METHod`` command. + - ``.noise``: The ``MEASUrement:NOISe`` command. + - ``.reflevel``: The ``MEASUrement:REFLevel`` command. + - ``.source1``: The ``MEASUrement:SOUrce1`` command tree. + - ``.statistics``: The ``MEASUrement:STATIstics`` command tree. + """ + return self._measurement + + @property + def multiscope(self) -> Multiscope: + """Return the ``MULTiscope`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MULTiscope?`` query. + - Using the ``.verify(value)`` method will send the ``MULTiscope?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.config``: The ``MULTiscope:CONFig`` command. + - ``.exit``: The ``MULTiscope:EXIT`` command. + - ``.restart``: The ``MULTiscope:RESTART`` command. + - ``.status``: The ``MULTiscope:STATUS`` command. + """ + return self._multiscope + + @property + def newpass(self) -> Newpass: + """Return the ``NEWpass`` command. + + **Description:** + - This command (no query form) changes the password that enables access to password + protected data. The PASSWord command must be successfully executed before using this + command or an execution error will be generated. + + **Usage:** + - Using the ``.write(value)`` method will send the ``NEWpass value`` command. + + **SCPI Syntax:** + + :: + + - NEWpass + + **Info:** + - ```` is the new password, which can contain up to 10 characters. + """ + return self._newpass + + @property + def opc(self) -> Opc: + """Return the ``*OPC`` command. + + **Description:** + - This command generates the operation complete message in the Standard Event Status + Register (SESR) when all pending commands that generate an OPC message are complete. + The ``*OPC?`` query places the ASCII character '1' into the output queue when all such + OPC commands are complete. The ``*OPC?`` response is not available to read until all + pending operations finish. For a complete discussion of the use of these registers and + the output queue, see Registers and Queues. The ``*OPC`` command allows you to + synchronize the operation of the instrument with your application program. For more + information, see Synchronization Methods. Refer to the Oscilloscope operations that + can generate OPC table for a list of commands that generate an OPC message. + + **Usage:** + - Using the ``.query()`` method will send the ``*OPC?`` query. + - Using the ``.verify(value)`` method will send the ``*OPC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write()`` method will send the ``*OPC`` command. + + **SCPI Syntax:** + + :: + + - *OPC + - *OPC? + """ + return self._opc + + @property + def opcextended(self) -> Opcextended: + """Return the ``OPCEXtended`` command. + + **Description:** + - This command sets or queries the behavior of OPC commands and queries. When enabled, + operations referenced in the ``*OPC`` command description notify when their overlapped + functionality has completed. When disabled, the operations notify as they have in the + past (only once updated in the instrument state database). Command synchronization + Operation PI sequence Single sequence with ttOff ``:ACQUIRE:STOPAFTER SEQUENCE`` + ``:ACQUIRE:STATE 1``;``*OPC?``;``:WFMOUTPRE:XZERO?`` Single sequence with Measurement + Annotation ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MEASUREMENT:MEAS1:STATE 1``;TYPE PK2PK + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:ANNOTATION:X1?`` Single sequence with + Cursors ``:ACQUIRE:STOPAFTER SEQUENCE``;``:CURSOR:FUNCTION WAVEFORM``;SOURCE CH1;STATE + 1 ``:ACQUIRE:STATE 1``;``*OPC?`` Single sequence with Math + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MATH1:DEFINE`` 'Ch1``*Ch2``';``:SELECT:MATH1 1`` + ``:ACQUIRE:STATE 1``;``*OPC?`` Default setup followed by Save Waveform + ``*RST``;``*OPC?`` ``:SAVE:WAVEFORM`` CH1,REF1;``*WAI`` ``:SELECT:REF1 1`` Math On + during Acq Run mode ``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 ``:MATH1:DEFINE`` + 'CH1``*CH1``';``:SELECT:MATH1 1`` ``:DATA:ENCDG ASCII``;SOURCE REF1;START 1;STOP 10 + ``:SELECT:MATH1 0`` {Wait a couple sec..longer in release mode?} + ``:SELECT:MATH1 1``;``*WAI``;``:CURVE?`` Save Math to Ref + ``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 ``:MATH1:DEFINE`` + 'CH1``*CH1``';``:SELECT:MATH1 1``;``*WAI``; ``:SAVE:WAVEFORM`` + MATH1,REF1;``:SELECT:REF1 1`` ``:DATA:ENCDG ASCII``;SOURCE REF1;START 1;STOP 10 CURVE? + Trigger state ``:ACQUIRE:STOPAFTER SEQUENCE`` + ``:ACQUIRE:STATE 1``;``*OPC?``;``:TRIGGER:STATE?`` Single sequence with Measurement + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MEASUREMENT:MEAS1:STATE 1``;TYPE AMPLITUDE + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:MEAS1:VALUE?`` Single sequence with + Measurement on Math + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 + ``:MATH1:DEFINE`` 'CH1``*CH1``';``:SELECT:MATH1 1`` + ``:MEASUREMENT:MEAS1:STATE 1``;TYPE AMPLITUDE;SOURCE MATH1 + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:MEAS1:VALUE?`` Acq Count + ``*RST``;``*WAI``;``:ACQUIRE:NUMACQ?`` Acq state after single sequence + ``:ACQUIRE:STOPAFTER SEQUENCE``;STATE 1;``*WAI``;``:ACQUIRE:STATE?`` + + **Usage:** + - Using the ``.query()`` method will send the ``OPCEXtended?`` query. + - Using the ``.verify(value)`` method will send the ``OPCEXtended?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``OPCEXtended value`` command. + + **SCPI Syntax:** + + :: + + - OPCEXtended {|OFF|ON} + - OPCEXtended? + + **Info:** + - ``ON`` turns on extended OPC behavior. + - ``OFF`` turns off extended OPC behavior. + - ```` = 0 turns off extended OPC behavior; any other value turns on extended OPC + behavior. + """ + return self._opcextended + + @property + def opt(self) -> Opt: + """Return the ``*OPT`` command. + + **Description:** + - This query-only command returns a comma separated list of installed options as an + arbitrary ASCII string (no quotes) of the form: + ``:``,``:``... The last + section of each entry (the text following the last hyphen) indicates the license type. + If no options are found, NONE is returned. + + **Usage:** + - Using the ``.query()`` method will send the ``*OPT?`` query. + - Using the ``.verify(value)`` method will send the ``*OPT?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *OPT? + """ + return self._opt + + @property + def password(self) -> Password: + """Return the ``PASSWord`` command. + + **Description:** + - This command (no query form) enables the ``*PUD`` and NEWpass set commands. Sending + ``PASSWord`` without any arguments disables these same commands. Once the password is + successfully entered, the ``*PUD`` and NEWpass commands are enabled until the + instrument is powered off, or until the FACtory command, the ``PASSWord`` command with + no arguments, or the ``*RST`` command is issued. To change the password, you must + first enter the valid password with the ``PASSWord`` command and then change to your + new password with the NEWpass command. Remember that the password is case sensitive. + + **Usage:** + - Using the ``.write(value)`` method will send the ``PASSWord value`` command. + + **SCPI Syntax:** + + :: + + - PASSWord + + **Info:** + - ```` is the password, which can contain up to 10 characters. The factory + default password is 'XYZZY' and is always valid. + """ + return self._password + + @property + def pcenable(self) -> Pcenable: + """Return the ``PCENable`` command. + + **Description:** + - Sets or queries the enable state of the User Preference Probe compensation. + + **Usage:** + - Using the ``.query()`` method will send the ``PCENable?`` query. + - Using the ``.verify(value)`` method will send the ``PCENable?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``PCENable value`` command. + + **SCPI Syntax:** + + :: + + - PCENable OFF | ON + - PCENable? + """ + return self._pcenable + + @property + def psc(self) -> Psc: + """Return the ``*PSC`` command. + + **Description:** + - This command sets and queries the power-on status flag that controls the automatic + power-on handling of the DESER, SRER, and ESER registers. When ``*PSC`` is true, the + DESER register is set to 255 and the SRER and ESER registers are set to 0 at power-on. + When ``*PSC`` is false, the current values in the DESER, SRER, and ESER registers are + preserved in nonvolatile memory when power is shut off and are restored at power-on. + + **Usage:** + - Using the ``.query()`` method will send the ``*PSC?`` query. + - Using the ``.verify(value)`` method will send the ``*PSC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*PSC value`` command. + + **SCPI Syntax:** + + :: + + - *PSC {|OFF|ON} + - *PSC? + + **Info:** + - ```` = 0 sets the power-on status clear flag to false, disables the power-on + clear and allows the instrument to possibly assert SRQ after power-on; any other value + sets the power-on status clear flag to true, enabling the power-on status clear and + prevents any SRQ assertion after power on. + - ``OFF`` sets the power-on status clear flag to false, disables the power-on clear and + allows the instrument to possibly assert SRQ after power-on. + - ``ON`` sets the power-on status clear flag to true, enabling the power-on status clear + and prevents any SRQ assertion after power on. + """ + return self._psc + + @property + def pud(self) -> Pud: + """Return the ``*PUD`` command. + + **Description:** + - This command sets or queries a string of Protected User Data. This data is protected + by the PASSWord command. You can modify it only by first entering the correct + password. This password is not necessary to query the data. + + **Usage:** + - Using the ``.query()`` method will send the ``*PUD?`` query. + - Using the ``.verify(value)`` method will send the ``*PUD?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*PUD value`` command. + + **SCPI Syntax:** + + :: + + - *PUD {|} + - *PUD? + + **Info:** + - ```` is a block containing up to 100 characters. + - ```` is a string containing up to 100 characters. + """ + return self._pud + + @property + def rcl(self) -> Rcl: + """Return the ``*RCL`` command. + + **Description:** + - This command restores the state of the oscilloscope from a copy of the settings stored + in memory (The settings are stored using the ``*SAV`` command). + + **Usage:** + - Using the ``.write(value)`` method will send the ``*RCL value`` command. + + **SCPI Syntax:** + + :: + + - *RCL + + **Info:** + - ```` is a value in the range from 1 to 10, which specifies a saved setup storage + location. + """ + return self._rcl + + @property + def recall(self) -> Recall: + """Return the ``RECAll`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``RECAll?`` query. + - Using the ``.verify(value)`` method will send the ``RECAll?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.mask``: The ``RECAll:MASK`` command. + - ``.setup``: The ``RECAll:SETUp`` command. + - ``.waveform``: The ``RECAll:WAVEform`` command. + """ + return self._recall + + @property + def ref(self) -> Dict[int, RefItem]: + """Return the ``REF`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``REF?`` query. + - Using the ``.verify(value)`` method will send the ``REF?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.horizontal``: The ``REF:HORizontal`` command tree. + - ``.label``: The ``REF:LABel`` command. + - ``.threshold``: The ``REF:THRESHold`` command. + - ``.vertical``: The ``REF:VERTical`` command tree. + """ + return self._ref + + @property + def rem(self) -> Rem: + """Return the ``REM`` command. + + **Description:** + - This command (no query form) embeds a comment within programs as a means of internally + documenting the programs. This is how to embed comments in a .set file. The instrument + ignores these embedded comment lines. + + **Usage:** + - Using the ``.write(value)`` method will send the ``REM value`` command. + + **SCPI Syntax:** + + :: + + - REM + + **Info:** + - ```` is a string that can contain a maximum of 80 characters. + """ + return self._rem + + @property + def rosc(self) -> Rosc: + """Return the ``ROSc`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ROSc?`` query. + - Using the ``.verify(value)`` method will send the ``ROSc?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.out``: The ``ROSc:OUT`` command tree. + - ``.source``: The ``ROSc:SOUrce`` command. + - ``.state``: The ``ROSc:STATE`` command. + - ``.tracking``: The ``ROSc:TRACking`` command. + """ + return self._rosc + + @property + def rst(self) -> Rst: + """Return the ``*RST`` command. + + **Description:** + - This command (no query form) resets the instrument to the factory default settings. + This command does the following: Recalls the default instrument setup. Clears the + current ``*DDT`` command. Disables aliases (``:ALIAS:STATE 0``). Disables the user + password (for the ``*PUD`` command). The ``*RST`` command does not change the + following: The current working directory ( ``:FILESystem:CWD`` command). The state of + command headers ( ``:HEADer`` command). The state of keyword and enumeration verbosity + ( ``:VERBose`` command). The Power-on Status Clear Flag ( ``*PSC`` command). The Event + Status Enable Register ( ``*ESE`` command). The Service Request Enable Register ( + ``*SRE`` command). The Device Event Status Enable Register ( DESE command). The user + password for protected user data ( ``:PASSWord`` command). The content of protected + user data ( ``*PUD`` command). The enabled state of the socket server ( + ``:SOCKETServer:ENAble`` command). The socket server port number ( + ``:SOCKETServer:PORT`` command). The socket server protocol ( + ``:SOCKETServer:PROTOCol`` command). The USBTMC port configuration ( + ``:USBDevice:CONFigure`` command). The destination reference waveform or file path for + the ``:CURVe`` command ( ``:DATa:DESTination`` command). The source waveform for the + ``:CURVe?`` or ``:WAVFrm?`` queries ( ``:DATa:SOUrce`` command). The waveform data + encoding for the ``:CURVe`` command or query or the ``:WAVFrm?`` query ( + ``:DATa:ENCdg`` command). The starting point for ``:CURVe?`` queries ( ``:DATa:STARt`` + command). The ending point for ``:CURVe?`` queries ( ``:DATa:STOP`` command). All + settings associated the ``:WFMInpre`` commands. All user settable settings associated + with the WFMOutpre commands. ``*RST`` only resets the programmable interface settings, + it does not change the user interface settings. + + **Usage:** + - Using the ``.write()`` method will send the ``*RST`` command. + + **SCPI Syntax:** + + :: + + - *RST + """ + return self._rst + + @property + def sav(self) -> Sav: + """Return the ``*SAV`` command. + + **Description:** + - Stores the state of the oscilloscope to a specified memory location. You can use the + ``*RCL`` command to restore the oscilloscope to this saved state at a later time. + + **Usage:** + - Using the ``.write(value)`` method will send the ``*SAV value`` command. + + **SCPI Syntax:** + + :: + + - *SAV + + **Info:** + - ```` specifies a location in which to save the state of the oscilloscope. + Location values range from 1 through 10. Using an out-of-range location value causes + an execution error. Any settings that have been stored previously at this location + will be overwritten. + """ + return self._sav + + @property + def save(self) -> Save: + """Return the ``SAVe`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SAVe?`` query. + - Using the ``.verify(value)`` method will send the ``SAVe?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.eventtable``: The ``SAVe:EVENTtable`` command tree. + - ``.marks``: The ``SAVe:MARKS`` command. + - ``.mask``: The ``SAVe:MASK`` command. + - ``.setup``: The ``SAVe:SETUp`` command. + - ``.waveform``: The ``SAVe:WAVEform`` command. + """ + return self._save + + @property + def saveon(self) -> Saveon: + """Return the ``SAVEON`` command. + + **Description:** + - Sets the auto-increment file count to 0. Once the number of saved files has reached + the limit that you set (using the ``SAVEON:NUMevents`` command), no files will be + saved until you reset the count. + + **Usage:** + - Using the ``.write(value)`` method will send the ``SAVEON value`` command. + + **SCPI Syntax:** + + :: + + - SAVEON {RESET} + + **Info:** + - ``RESET`` sets the file count to 0. + + Sub-properties: + - ``.count``: The ``SAVEON:COUNt`` command. + - ``.file``: The ``SAVEON:FILE`` command tree. + - ``.image``: The ``SAVEON:IMAGe`` command. + - ``.limit``: The ``SAVEON:LIMit`` command. + - ``.mask``: The ``SAVEON:MASK`` command. + - ``.measurement``: The ``SAVEON:MEASUrement`` command. + - ``.numevents``: The ``SAVEON:NUMEvents`` command. + - ``.setup``: The ``SAVEON:SETUP`` command. + - ``.trigger``: The ``SAVEON:TRIGger`` command. + - ``.waveform``: The ``SAVEON:WAVEform`` command. + """ + return self._saveon + + @property + def sds(self) -> Sds: + """Return the ``*SDS`` command. + + **Description:** + - This command (no query form) changes the specified setup to reference the factory + setup instead of the specific user setup slot. The content of the setup slot is + unchanged, but the data will no longer be accessible to you. This command is + equivalent to selecting Delete from the File menu, and then choosing the specified + setup. + + **Usage:** + - Using the ``.write(value)`` method will send the ``*SDS value`` command. + + **SCPI Syntax:** + + :: + + - *SDS + + **Info:** + - ```` specifies a user setup location to delete. Setup storage location values + range from 1 through 10; using an out-of-range value causes an error. + """ + return self._sds + + @property + def search(self) -> Search: + """Return the ``SEARCH`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SEARCH?`` query. + - Using the ``.verify(value)`` method will send the ``SEARCH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.markallevents``: The ``SEARCH:MARKALLevents`` command. + - ``.search``: The ``SEARCH:SEARCH`` command. + - ``.stop``: The ``SEARCH:STOP`` command. + """ + return self._search + + @property + def select(self) -> Select: + """Return the ``SELect`` command. + + **Description:** + - Queries which waveforms are displayed. + + **Usage:** + - Using the ``.query()`` method will send the ``SELect?`` query. + - Using the ``.verify(value)`` method will send the ``SELect?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - SELect? + + Sub-properties: + - ``.b``: The ``SELect:B`` command. + - ``.ch``: The ``SELect:CH`` command. + - ``.control``: The ``SELect:CONTROl`` command. + - ``.d``: The ``SELect:D`` command. + - ``.dall``: The ``SELect:DALL`` command. + - ``.digtraces``: The ``SELect:DIGTraces`` command tree. + - ``.math``: The ``SELect:MATH`` command. + - ``.ref``: The ``SELect:REF`` command. + """ + return self._select + + @property + def set_(self) -> Set: + """Return the ``SET`` command. + + **Description:** + - This query-only command returns the commands that list the instrument settings, except + for configuration information for the calibration values. You can use these commands + to return the instrument to the state it was in when you made the ``SET?`` query. The + ``SET?`` query always returns command headers, regardless of the setting of the HEADER + command. This is because the returned commands are intended to be sent back to the + instrument as a command string. The VERBOSE command can still be used to specify + whether the returned headers should be abbreviated or full-length. This command is + identical to the LRN command. + + **Usage:** + - Using the ``.query()`` method will send the ``SET?`` query. + - Using the ``.verify(value)`` method will send the ``SET?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - SET? + """ + return self._set + + @property + def setup(self) -> Setup: + """Return the ``SETUp`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SETUp?`` query. + - Using the ``.verify(value)`` method will send the ``SETUp?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.name``: The ``SETUp:NAMe`` command. + """ + return self._setup + + @property + def sre(self) -> Sre: + """Return the ``*SRE`` command. + + **Description:** + - The ``*SRE`` (Service Request Enable) command sets and queries the bits in the Service + Request Enable Register. For more information, refer to Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*SRE?`` query. + - Using the ``.verify(value)`` method will send the ``*SRE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*SRE value`` command. + + **SCPI Syntax:** + + :: + + - *SRE + - *SRE? + + **Info:** + - ```` is a value in the range from 0 through 255. The binary bits of the SRER are + set according to this value. Using an out-of-range value causes an execution error. + The power-on default for SRER is 0 if ``*PSC`` is 1. If ``*PSC`` is 0, the SRER + maintains the previous power cycle value through the current power cycle. + """ + return self._sre + + @property + def stb(self) -> Stb: + """Return the ``*STB`` command. + + **Description:** + - The ``*STB?`` (Read Status Byte) query returns the contents of the Status Byte + Register (SBR) using the Master Summary Status (MSS) bit. For more information, refer + to Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*STB?`` query. + - Using the ``.verify(value)`` method will send the ``*STB?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *STB? + """ + return self._stb + + @property + def system(self) -> System: + """Return the ``SYSTem`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SYSTem?`` query. + - Using the ``.verify(value)`` method will send the ``SYSTem?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.setup``: The ``SYSTem:SETup`` command. + """ + return self._system + + @property + def teklink(self) -> Teklink: + """Return the ``TEKLink`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TEKLink?`` query. + - Using the ``.verify(value)`` method will send the ``TEKLink?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.connection``: The ``TEKLink:CONNection`` command. + - ``.refclk``: The ``TEKLink:REFClk`` command. + """ + return self._teklink + + @property + def teksecure(self) -> Teksecure: + """Return the ``TEKSecure`` command. + + **Description:** + - This command initializes, for the current user, both waveform and setup memories, + overwriting any previously stored data. Equivalent to invoking Teksecure from the + Utility menu. This is a time-consuming operation (3 to 5 minutes) and the instrument + is inoperable until the TekSecure operation is complete. + + **Usage:** + - Using the ``.write()`` method will send the ``TEKSecure`` command. + + **SCPI Syntax:** + + :: + + - TEKSecure + """ + return self._teksecure + + @property + def test(self) -> Test: + """Return the ``TEST`` command. + + **Description:** + - This command provides the ability to select and execute an item at any level of the + test hierarchy (Test, Area or Subsystem). The query returns the last command sent. + This command is equivalent to selecting Instrument Diagnostics from the Utilities + menu, choosing a test and then pressing Run. + + **Usage:** + - Using the ``.query()`` method will send the ``TEST?`` query. + - Using the ``.verify(value)`` method will send the ``TEST?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TEST value`` command. + + **SCPI Syntax:** + + :: + + - TEST + - TEST? + + **Info:** + - ```` sets the test ID, which ranges from 0 through 3 characters. If no test + ID is specified, all available diagnostics are executed. + + Sub-properties: + - ``.results``: The ``TEST:RESults`` command. + - ``.stop``: The ``TEST:STOP`` command. + """ + return self._test + + @property + def time(self) -> Time: + """Return the ``TIME`` command. + + **Description:** + - This command sets or queries the time that the instrument displays. This command is + equivalent to selecting Set Time & Date from the Utilities menu and then setting the + fields in the Time group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TIME?`` query. + - Using the ``.verify(value)`` method will send the ``TIME?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TIME value`` command. + + **SCPI Syntax:** + + :: + + - TIME + - TIME? + + **Info:** + - ```` is a time in the form '``hh:mm:ss``' where hh refers to a two-digit hour + number, mm refers to a two-digit minute number from 01 to 60, and ss refers to a + two-digit second number from 01 to 60. + """ + return self._time + + @property + def trg(self) -> Trg: + """Return the ``*TRG`` command. + + **Description:** + - Performs a group execute trigger on commands defined by ``*DDT``. + + **Usage:** + - Using the ``.write()`` method will send the ``*TRG`` command. + + **SCPI Syntax:** + + :: + + - *TRG + """ + return self._trg + + @property + def trig(self) -> Trig: + """Return the ``TRIG`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIG?`` query. + - Using the ``.verify(value)`` method will send the ``TRIG?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.a``: The ``TRIG:A`` command tree. + """ + return self._trig + + @property + def trigger(self) -> Trigger: + """Return the ``TRIGger`` command. + + **Description:** + - This command forces a trigger event to occur. The query returns the current trigger + parameters for the instrument. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger FORCe + - TRIGger? + + **Info:** + - ``FORCe`` creates a trigger event. If ``TRIGger:STATE`` is set to READy, the + acquisition will complete. Otherwise, this command will be ignored. This is equivalent + to pressing the Force button on the front panel. + + Sub-properties: + - ``.a``: The ``TRIGger:A`` command. + - ``.auxlevel``: The ``TRIGger:AUXLevel`` command. + - ``.b``: The ``TRIGger:B`` command. + - ``.enhanced``: The ``TRIGger:ENHanced`` command. + - ``.equation``: The ``TRIGger:EQUation`` command. + - ``.lvlsrcpreference``: The ``TRIGger:LVLSrcpreference`` command. + - ``.main``: The ``TRIGger:MAIn`` command tree. + - ``.multiscope``: The ``TRIGger:MULTiscope`` command. + - ``.qualification``: The ``TRIGger:QUALification`` command tree. + - ``.sensitivity``: The ``TRIGger:SENSITivity`` command. + - ``.showequation``: The ``TRIGger:SHOWEQuation`` command. + - ``.state``: The ``TRIGger:STATE`` command. + """ + return self._trigger + + @property + def tst(self) -> Tst: + """Return the ``*TST`` command. + + **Description:** + - Tests (self-test) the interface and returns a 0. + + **Usage:** + - Using the ``.query()`` method will send the ``*TST?`` query. + - Using the ``.verify(value)`` method will send the ``*TST?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *TST? + """ + return self._tst + + @property + def unlock(self) -> Unlock: + """Return the ``UNLock`` command. + + **Description:** + - This command (no query form) unlocks the front panel controls only. To unlock the + front panel controls and the touch screen use the LOCk NONe command. The command + ``TOUCHSCReen:STATE ON`` enables the touch screen only. + + **Usage:** + - Using the ``.write(value)`` method will send the ``UNLock value`` command. + + **SCPI Syntax:** + + :: + + - UNLock ALL + + **Info:** + - ``ALL`` specifies that all front panel buttons and knobs are unlocked. + """ + return self._unlock + + @property + def usbtmc(self) -> Usbtmc: + """Return the ``USBTMC`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``USBTMC?`` query. + - Using the ``.verify(value)`` method will send the ``USBTMC?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.productid``: The ``USBTMC:PRODUCTID`` command tree. + - ``.serialnumber``: The ``USBTMC:SERIALnumber`` command. + - ``.vendorid``: The ``USBTMC:VENDORID`` command tree. + """ + return self._usbtmc + + @property + def verbose(self) -> Verbose: + """Return the ``VERBose`` command. + + **Description:** + - This command sets or queries the Verbose state that controls the length of keywords on + query responses. Keywords can be both headers and arguments. + + **Usage:** + - Using the ``.write(value)`` method will send the ``VERBose value`` command. + + **SCPI Syntax:** + + :: + + - VERBose {|OFF|ON} + + **Info:** + - ```` = 0 disables Verbose, any other value enables Verbose. + - ``OFF`` sets the Verbose state to false, which returns minimum-length keywords for + applicable setting queries. + - ``ON`` sets the Verbose state to true, which returns full-length keywords for + applicable setting queries. + """ + return self._verbose + + @property + def visual(self) -> Visual: + """Return the ``VISual`` command. + + **Description:** + - This query-only command returns the settings for each visual trigger area. + + **Usage:** + - Using the ``.query()`` method will send the ``VISual?`` query. + - Using the ``.verify(value)`` method will send the ``VISual?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - VISual? + + Sub-properties: + - ``.area``: The ``VISual:AREA`` command. + - ``.areacolor``: The ``VISual:AREACOLOr`` command. + - ``.aspectratio``: The ``VISual:ASPECTratio`` command. + - ``.deletearea``: The ``VISual:DELETEAREA`` command. + - ``.enable``: The ``VISual:ENAble`` command. + - ``.file``: The ``VISual:FILE`` command tree. + """ + return self._visual + + @property + def wai(self) -> Wai: + """Return the ``*WAI`` command. + + **Description:** + - The ``*WAI`` (Wait) command (no query form) prevents the instrument from executing + further commands or queries until all pending commands that generate an OPC message + are complete. This command allows you to synchronize the operation of the instrument + with your application program. For more information, refer to Synchronization Methods. + + **Usage:** + - Using the ``.write()`` method will send the ``*WAI`` command. + + **SCPI Syntax:** + + :: + + - *WAI + """ + return self._wai + + @property + def wavfrm(self) -> Wavfrm: + """Return the ``WAVFrm`` command. + + **Description:** + - This query-only command provides the Tektronix standard waveform query which returns + the waveform preamble followed by the waveform data for the source specified by + ``:DATa:SOUrce`` using the ``:DATa`` settings for encoding, width, and so forth. + + **Usage:** + - Using the ``.query()`` method will send the ``WAVFrm?`` query. + - Using the ``.verify(value)`` method will send the ``WAVFrm?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WAVFrm? + """ + return self._wavfrm + + @property + def wavfrmstream(self) -> Wavfrmstream: + """Return the ``WAVFRMStream`` command. + + **Description:** + - This query only command returns WFMQUTPRE? and CURVESTREAM? data for the waveforms + specified by the DATASOURCE command. This command is similar to sending both + WFMOUTPRE? and CURVESTREAM?, with the additional provision that each CURVESTREAM + response to WAVFRMS? has a WFMOUTPRE response prepended to it. This helps guarantee a + continuous synchronized preamble and curve. + + **Usage:** + - Using the ``.query()`` method will send the ``WAVFRMStream?`` query. + - Using the ``.verify(value)`` method will send the ``WAVFRMStream?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WAVFRMStream? + """ + return self._wavfrmstream + + @property + def wfminpre(self) -> Wfminpre: + """Return the ``WFMInpre`` command. + + **Description:** + - Returns the waveform formatting and scaling specifications to be applied to the next + incoming CURVe command data. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMInpre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMInpre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WFMInpre? + + Sub-properties: + - ``.bit_nr``: The ``WFMInpre:BIT_Nr`` command. + - ``.bn_fmt``: The ``WFMInpre:BN_Fmt`` command. + - ``.byt_nr``: The ``WFMInpre:BYT_Nr`` command. + - ``.byt_or``: The ``WFMInpre:BYT_Or`` command. + - ``.encdg``: The ``WFMInpre:ENCdg`` command. + - ``.nr_fr``: The ``WFMInpre:NR_FR`` command. + - ``.nr_pt``: The ``WFMInpre:NR_Pt`` command. + - ``.pt_fmt``: The ``WFMInpre:PT_Fmt`` command. + - ``.pt_off``: The ``WFMInpre:PT_Off`` command. + - ``.wfid``: The ``WFMInpre:WFId`` command. + - ``.xincr``: The ``WFMInpre:XINcr`` command. + - ``.xunit``: The ``WFMInpre:XUNit`` command. + - ``.xzero``: The ``WFMInpre:XZEro`` command. + - ``.ymult``: The ``WFMInpre:YMUlt`` command. + - ``.yoff``: The ``WFMInpre:YOFf`` command. + - ``.yunit``: The ``WFMInpre:YUNit`` command. + - ``.yzero``: The ``WFMInpre:YZEro`` command. + """ + return self._wfminpre + + @property + def wfmoutpre(self) -> Wfmoutpre: + """Return the ``WFMOutpre`` command. + + **Description:** + - This query-only command queries the waveform formatting data for the waveform + specified by the ``DATA:SOURCE`` command. The preamble components are considered to be + of two types; formatting and interpretation. The formatting components are: ENCdg, + ``BN_Fmt``, ``BYT_Or``, ``BYT_Nr``, ``BIT_Nr``. The interpretation components are + derived from the ``DATa:SOUrce`` specified waveform. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMOutpre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMOutpre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WFMOutpre? + + Sub-properties: + - ``.bit_nr``: The ``WFMOutpre:BIT_Nr`` command. + - ``.bn_fmt``: The ``WFMOutpre:BN_Fmt`` command. + - ``.byt_nr``: The ``WFMOutpre:BYT_Nr`` command. + - ``.byt_or``: The ``WFMOutpre:BYT_Or`` command. + - ``.encdg``: The ``WFMOutpre:ENCdg`` command. + - ``.nr_fr``: The ``WFMOutpre:NR_FR`` command. + - ``.nr_pt``: The ``WFMOutpre:NR_Pt`` command. + - ``.pt_fmt``: The ``WFMOutpre:PT_Fmt`` command. + - ``.pt_order``: The ``WFMOutpre:PT_ORder`` command. + - ``.pt_off``: The ``WFMOutpre:PT_Off`` command. + - ``.wfid``: The ``WFMOutpre:WFId`` command. + - ``.xincr``: The ``WFMOutpre:XINcr`` command. + - ``.xunit``: The ``WFMOutpre:XUNit`` command. + - ``.xzero``: The ``WFMOutpre:XZEro`` command. + - ``.ymult``: The ``WFMOutpre:YMUlt`` command. + - ``.yoff``: The ``WFMOutpre:YOFf`` command. + - ``.yunit``: The ``WFMOutpre:YUNit`` command. + - ``.yzero``: The ``WFMOutpre:YZEro`` command. + """ + return self._wfmoutpre + + @property + def wfmpre(self) -> Wfmpre: + """Return the ``WFMPre`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMPre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMPre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.nr_fr``: The ``WFMPre:NR_FR`` command. + """ + return self._wfmpre + + @property + def zoom(self) -> Zoom: + """Return the ``ZOOm`` command. + + **Description:** + - This command resets the zoom transforms to default values for all traces or live + traces. The ``ZOOm`` query returns the current vertical and horizontal positioning and + scaling of the display. + + **Usage:** + - Using the ``.query()`` method will send the ``ZOOm?`` query. + - Using the ``.verify(value)`` method will send the ``ZOOm?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ZOOm value`` command. + + **SCPI Syntax:** + + :: + + - ZOOm {RESET|RESETLive} + - ZOOm? + + **Info:** + - ``RESET`` resets the zoom transforms to default values for all traces. + - ``RESETLive`` resets the zoom transforms to default values for live traces. + + Sub-properties: + - ``.graticule``: The ``ZOOm:GRAticule`` command tree. + - ``.horizontal``: The ``ZOOm:HORizontal`` command tree. + - ``.math``: The ``ZOOm:MATH`` command tree. + - ``.mode``: The ``ZOOm:MODe`` command. + - ``.ref``: The ``ZOOm:REF`` command tree. + - ``.scroll``: The ``ZOOm:SCROLL`` command tree. + - ``.state``: The ``ZOOm:STATE`` command. + - ``.vertical``: The ``ZOOm:VERTical`` command tree. + - ``.zoom1``: The ``ZOOm:ZOOM1`` command. + """ + return self._zoom + + +class DPO5KMixin: + """A mixin that provides access to the DPO5K commands and constants. + + Properties: + - ``.command_argument_constants``: The DPO5K command argument constants. + - ``.commands``: The DPO5K commands. + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + device = self if isinstance(self, PIDevice) else None + self._command_argument_constants = DPO5KCommandConstants() + self._commands = DPO5KCommands(device) + + @property + def command_argument_constants(self) -> DPO5KCommandConstants: + """Return the DPO5K command argument constants. + + This provides access to all the string constants which can be used as arguments for DPO5K + commands. + """ + return self._command_argument_constants + + @property + def commands(self) -> DPO5KCommands: + """Return the DPO5K commands. + + This provides access to all the commands for the DPO5K device. See the documentation of each + sub-property for more usage information. + + Sub-properties: + - ``.acquire``: The ``ACQuire`` command tree. + - ``.alias``: The ``ALIas`` command. + - ``.allev``: The ``ALLEv`` command. + - ``.allocate``: The ``ALLOcate`` command tree. + - ``.application``: The ``APPLication`` command tree. + - ``.autoset``: The ``AUTOSet`` command. + - ``.auxin``: The ``AUXIn`` command tree. + - ``.auxout``: The ``AUXout`` command. + - ``.bell``: The ``BELl`` command. + - ``.bus``: The ``BUS`` command tree. + - ``.busy``: The ``BUSY`` command. + - ``.cal``: The ``*CAL`` command. + - ``.calibrate``: The ``CALibrate`` command. + - ``.ch``: The ``CH`` command. + - ``.clear``: The ``CLEAR`` command. + - ``.cls``: The ``*CLS`` command. + - ``.cmdbatch``: The ``CMDBatch`` command. + - ``.counter``: The ``COUnter`` command tree. + - ``.cq``: The ``CQ`` command tree. + - ``.cursor``: The ``CURSor`` command. + - ``.curve``: The ``CURVe`` command. + - ``.curvenext``: The ``CURVENext`` command. + - ``.curvestream``: The ``CURVEStream`` command. + - ``.custom``: The ``CUSTOM`` command tree. + - ``.d``: The ``D`` command tree. + - ``.data``: The ``DATa`` command. + - ``.date``: The ``DATE`` command. + - ``.ddt``: The ``*DDT`` command. + - ``.delete``: The ``DELEte`` command tree. + - ``.dese``: The ``DESE`` command. + - ``.diag``: The ``DIAg`` command tree. + - ``.display``: The ``DISplay`` command. + - ``.email``: The ``EMail`` command. + - ``.errordetector``: The ``ERRORDetector`` command tree. + - ``.ese``: The ``*ESE`` command. + - ``.esr``: The ``*ESR`` command. + - ``.event``: The ``EVENT`` command. + - ``.evmsg``: The ``EVMsg`` command. + - ``.evqty``: The ``EVQty`` command. + - ``.export``: The ``EXPort`` command. + - ``.factory``: The ``FACtory`` command. + - ``.fastacq``: The ``FASTAcq`` command. + - ``.filesystem``: The ``FILESystem`` command. + - ``.gpibusb``: The ``GPIBUsb`` command tree. + - ``.hardcopy``: The ``HARDCopy`` command. + - ``.hdr``: The ``HDR`` command. + - ``.header``: The ``HEADer`` command. + - ``.histogram``: The ``HIStogram`` command. + - ``.horizontal``: The ``HORizontal`` command. + - ``.id``: The ``ID`` command. + - ``.idn``: The ``*IDN`` command. + - ``.limit``: The ``LIMit`` command. + - ``.linktraining``: The ``LINKTRaining`` command tree. + - ``.lock``: The ``LOCk`` command. + - ``.lrn``: The ``*LRN`` command. + - ``.mark``: The ``MARK`` command. + - ``.mask``: The ``MASK`` command. + - ``.math``: The ``MATH`` command. + - ``.matharbflt``: The ``MATHArbflt`` command tree. + - ``.mathvar``: The ``MATHVAR`` command. + - ``.mch``: The ``MCH`` command tree. + - ``.measurement``: The ``MEASUrement`` command. + - ``.multiscope``: The ``MULTiscope`` command tree. + - ``.newpass``: The ``NEWpass`` command. + - ``.opc``: The ``*OPC`` command. + - ``.opcextended``: The ``OPCEXtended`` command. + - ``.opt``: The ``*OPT`` command. + - ``.password``: The ``PASSWord`` command. + - ``.pcenable``: The ``PCENable`` command. + - ``.psc``: The ``*PSC`` command. + - ``.pud``: The ``*PUD`` command. + - ``.rcl``: The ``*RCL`` command. + - ``.recall``: The ``RECAll`` command tree. + - ``.ref``: The ``REF`` command tree. + - ``.rem``: The ``REM`` command. + - ``.rosc``: The ``ROSc`` command tree. + - ``.rst``: The ``*RST`` command. + - ``.sav``: The ``*SAV`` command. + - ``.save``: The ``SAVe`` command tree. + - ``.saveon``: The ``SAVEON`` command. + - ``.sds``: The ``*SDS`` command. + - ``.search``: The ``SEARCH`` command tree. + - ``.select``: The ``SELect`` command. + - ``.set``: The ``SET`` command. + - ``.setup``: The ``SETUp`` command tree. + - ``.sre``: The ``*SRE`` command. + - ``.stb``: The ``*STB`` command. + - ``.system``: The ``SYSTem`` command tree. + - ``.teklink``: The ``TEKLink`` command tree. + - ``.teksecure``: The ``TEKSecure`` command. + - ``.test``: The ``TEST`` command. + - ``.time``: The ``TIME`` command. + - ``.trg``: The ``*TRG`` command. + - ``.trig``: The ``TRIG`` command tree. + - ``.trigger``: The ``TRIGger`` command. + - ``.tst``: The ``*TST`` command. + - ``.unlock``: The ``UNLock`` command. + - ``.usbtmc``: The ``USBTMC`` command tree. + - ``.verbose``: The ``VERBose`` command. + - ``.visual``: The ``VISual`` command. + - ``.wai``: The ``*WAI`` command. + - ``.wavfrm``: The ``WAVFrm`` command. + - ``.wavfrmstream``: The ``WAVFRMStream`` command. + - ``.wfminpre``: The ``WFMInpre`` command. + - ``.wfmoutpre``: The ``WFMOutpre`` command. + - ``.wfmpre``: The ``WFMPre`` command tree. + - ``.zoom``: The ``ZOOm`` command. + """ + return self._commands diff --git a/src/tm_devices/commands/_dpo5kb_commands.py b/src/tm_devices/commands/_dpo5kb_commands.py index 0602a6cfc..2ca444380 100644 --- a/src/tm_devices/commands/_dpo5kb_commands.py +++ b/src/tm_devices/commands/_dpo5kb_commands.py @@ -11,103 +11,103 @@ from ._3tjgb2_dpo.trigger import Trigger from ._5ri0nj_dpomso.bus import Bus -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom from ._53md2e_dpomso.fpanel import Fpanel -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dpo70kc_commands.py b/src/tm_devices/commands/_dpo70kc_commands.py index 6067fdbdc..a63ba7538 100644 --- a/src/tm_devices/commands/_dpo70kc_commands.py +++ b/src/tm_devices/commands/_dpo70kc_commands.py @@ -9,104 +9,104 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._5vmwut_dpodsamso.trigger import Trigger -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dpo70kd_commands.py b/src/tm_devices/commands/_dpo70kd_commands.py index 4c98de10b..aaab9da09 100644 --- a/src/tm_devices/commands/_dpo70kd_commands.py +++ b/src/tm_devices/commands/_dpo70kd_commands.py @@ -9,104 +9,104 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._5vmwut_dpodsamso.trigger import Trigger -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dpo70kdx_commands.py b/src/tm_devices/commands/_dpo70kdx_commands.py index 55e9dc421..06405ad50 100644 --- a/src/tm_devices/commands/_dpo70kdx_commands.py +++ b/src/tm_devices/commands/_dpo70kdx_commands.py @@ -9,104 +9,104 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._5vmwut_dpodsamso.trigger import Trigger -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dpo70ksx_commands.py b/src/tm_devices/commands/_dpo70ksx_commands.py index 5ca892fd9..9cce765a4 100644 --- a/src/tm_devices/commands/_dpo70ksx_commands.py +++ b/src/tm_devices/commands/_dpo70ksx_commands.py @@ -16,99 +16,99 @@ from ._4jiykk_dpo.linktraining import Linktraining from ._4jiykk_dpo.rosc import Rosc from ._4jiykk_dpo.trigger import Trigger -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dpo7k_commands.py b/src/tm_devices/commands/_dpo7k_commands.py new file mode 100644 index 000000000..0c330be43 --- /dev/null +++ b/src/tm_devices/commands/_dpo7k_commands.py @@ -0,0 +1,3986 @@ +# pylint: disable=too-many-lines +"""The DPO7K commands module. + +THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. + +Please report an issue if one is found. +""" +from typing import Any, Dict, Optional + +from tm_devices.drivers.pi.pi_device import PIDevice + +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fn2qbf_msodpo.errordetector import Errordetector +from ._fn2qbf_msodpo.trigger import Trigger +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock +from ._helpers import DefaultDictPassKeyToFactory + + +# pylint: disable=too-few-public-methods +class DPO7KCommandConstants: + """The DPO7K command argument constants. + + This provides access to all the string constants which can be used as arguments for DPO7K + commands. + """ + + A = "A" + ABSOLUTE = "ABSOLUTE" # ABSolute + AC = "AC" + ACCEPT = "ACCEPT" # ACCept + ACK = "ACK" + ACKERRORREPORT = "ACKERRORREPORT" # ACKErrorreport + ACKMISS = "ACKMISS" + ADDR10 = "ADDR10" + ADDR7 = "ADDR7" + ADDRANDDATA = "ADDRANDDATA" + ADDRESS = "ADDRESS" # ADDress + ALL = "ALL" + ALLFIELDS = "ALLFIELDS" # ALLFields + ALLLINES = "ALLLINES" # ALLLines + AMI = "AMI" + AMPLITUDE = "AMPLITUDE" # AMPlitude + ANALOG = "ANALOG" # ANALog + AND = "AND" + ANY = "ANY" + AREA = "AREA" + # AREA = "AREa" + ARMATRIGB = "ARMATRIGB" # ARMAtrigb + ASCII = "ASCII" # ASCIi + # ASCII = "ASCii" + ATI = "ATI" + ATRIGGER = "ATRIGGER" # ATRIGger + AUTO = "AUTO" + AUXILIARY = "AUXILIARY" # AUXiliary + AVERAGE = "AVERAGE" # AVErage + B = "B" + B3ZS = "B3ZS" + B6ZS = "B6ZS" + B8ZS = "B8ZS" + BACKWARDS = "BACKWARDS" # BACKWards + BASE = "BASE" # BASe + BILEVELCUSTOM = "BILEVELCUSTOM" # BILevelcustom + BINARY = "BINARY" + # BINARY = "BINary" + # BINARY = "Binary" + BIT = "BIT" + BITSTUFFING = "BITSTUFFING" # BITSTUFFing + BLACKMANHARRIS = "BLACKMANHARRIS" # BLACKMANHarris + BLANK = "BLANK" + BLOCK = "BLOCK" + BLOCK1THEN2 = "BLOCK1THEN2" + BMP = "BMP" + BOTH = "BOTH" # BOTh + BTA = "BTA" + BTRIGGER = "BTRIGGER" # BTRIGger + BURST = "BURST" # BURst + BUS = "BUS" + BYPASS = "BYPASS" # BYPass + CAN = "CAN" + CANH = "CANH" + CANL = "CANL" + CAREA = "CAREA" # CARea + CHAR = "CHAR" + CHARACTER = "CHARACTER" + CHECKSUM = "CHECKSUM" # CHecksum + CHECKSUMERROR = "CHECKSUMERROR" # CHECKsumerror + CHKSUMERROR = "CHKSUMERROR" # CHKSUMError + CLEAR = "CLEAR" + CLOCK = "CLOCK" # CLOCk + CMEAN = "CMEAN" # CMEan + CMI = "CMI" + COLOR = "COLOR" # COLOr + COLOROFF = "COLOROFF" + COLORON = "COLORON" + COLUMN = "COLUMN" + COMMAND = "COMMAND" + COMMONMODE = "COMMONMODE" # COMmonmode + COMMUNICATION = "COMMUNICATION" # COMMunication + COMPAT = "COMPAT" + CONTENTION = "CONTENTION" # CONTention + CONTROL = "CONTROL" # CONtrol + COUNT = "COUNT" + CR = "CR" + CRC16 = "CRC16" + CRC5 = "CRC5" + CRMS = "CRMS" # CRMs + CROSSHAIR = "CROSSHAIR" # CROSSHair + CSPLIT = "CSPLIT" + CTRLSKP = "CTRLSKP" + CUSTOM = "CUSTOM" + # CUSTOM = "CUSTom" + DASHED = "DASHED" # DASHed + DATA = "DATA" + # DATA = "DATa" + DATAPACKET = "DATAPACKET" # DATAPacket + DB = "DB" + DBM = "DBM" + DC = "DC" + DCREJECT = "DCREJECT" # DCREJect + DCSLONGREAD = "DCSLONGREAD" # DCSLONGRead + DCSLONGWRITE = "DCSLONGWRITE" # DCSLONGWrite + DCSR = "DCSR" + DCSRR2 = "DCSRR2" + DCSSRR1 = "DCSSRR1" + DDRREAD = "DDRREAD" # DDRRead + DDRREADWRITE = "DDRREADWRITE" # DDRREADWrite + DDRWRITE = "DDRWRITE" # DDRWrite + DECIMAL = "DECIMAL" # DECImal + DECODEFILENAME = "DECODEFILENAME" # decodeFileName + DEFAULT = "DEFAULT" + # DEFAULT = "DEFAult" + # DEFAULT = "DEFault" + DELAY = "DELAY" # DELay + DELAYED = "DELAYED" # DELayed + DELETE = "DELETE" # DELEte + DETAILED = "DETAILED" # DETAiled + DIFFERENTIAL = "DIFFERENTIAL" # DIFFerential + DIGITAL = "DIGITAL" # DIGItal + DISABLE = "DISABLE" # DISable + DISTDUTY = "DISTDUTY" # DISTDUty + DONE = "DONE" + DONTCARE = "DONTCARE" # DONTCare + # DONTCARE = "DONTcare" + DP = "DP" + DSINR = "DSINR" + DSIVC = "DSIVC" + DSIVIOLATION = "DSIVIOLATION" # DSIViolation + DYNAMIC = "DYNAMIC" + ECCERROR = "ECCERROR" # ECCError + ECCMBERROR = "ECCMBERROR" # ECCMBError + ECCSBERROR = "ECCSBERROR" # ECCSBError + ECCWARN = "ECCWARN" # ECCWarn + ECL = "ECL" + EDGE = "EDGE" + EI = "EI" + EIE = "EIE" + EIGHTYTWENTY = "EIGHTYTWENTY" # EIGHtytwenty + EITHER = "EITHER" # EITHer + # EITHER = "EITher" + EMBEDDED = "EMBEDDED" # EMBEDded + ENABLE = "ENABLE" # ENable + ENET100BASETX = "ENET100BASETX" + ENET100FX = "ENET100FX" + ENET10BASET = "ENET10BASET" + ENET1250 = "ENET1250" + ENETXAUI = "ENETXAUI" + ENETXAUI2 = "ENETXAUI2" + ENTERSWINDOW = "ENTERSWINDOW" # ENTERSWindow + ENV = "ENV" + ENVELOPE = "ENVELOPE" # ENVelope + EOF = "EOF" + EOP = "EOP" + # EOP = "EOp" + EOT = "EOT" + EOTSYNC = "EOTSYNC" # EOTSync + EQUAL = "EQUAL" # EQUal + # EQUAL = "EQual" + ERR = "ERR" + ERROR = "ERROR" + # ERROR = "ERRor" + ESCMODE = "ESCMODE" # ESCMode + ESCMODEERROR = "ESCMODEERROR" # ESCMODEError + ET = "ET" + ETHERNET = "ETHERNET" # ETHernet + EVEN = "EVEN" + EVENT = "EVENT" + EVENTS = "EVENTS" + EXECUTE = "EXECUTE" # EXECute + EXITSWINDOW = "EXITSWINDOW" # EXITSWindow + EXTENDED = "EXTENDED" # EXTENDed + # EXTENDED = "EXTENded" + EXTINCTDB = "EXTINCTDB" + EXTINCTPCT = "EXTINCTPCT" + EXTINCTRATIO = "EXTINCTRATIO" + EYE = "EYE" + EYEDIAGRAM = "EYEDIAGRAM" # EYEdiagram + EYEHEIGHT = "EYEHEIGHT" # EYEHeight + FALL = "FALL" + FALLING = "FALLING" # FALling + FALSE = "FALSE" # FALSe + FAST = "FAST" + FASTERTHAN = "FASTERTHAN" # FASTERthan + FASTEST = "FASTEST" # FAStest + FC1063 = "FC1063" + FC133 = "FC133" + FC2125 = "FC2125" + FC266 = "FC266" + FC4250 = "FC4250" + FC531 = "FC531" + FCE = "FCE" + FCSERROR = "FCSERROR" # FCSError + FFWD = "FFWD" + FIFTYFIFTY = "FIFTYFIFTY" # FIFtyfifty + FIRST = "FIRST" # FIRst + FLATTOP2 = "FLATTOP2" + FLEXRAY = "FLEXRAY" + FORCE = "FORCE" # FORCe + FORWARD = "FORWARD" # FORWard + FORWARDS = "FORWARDS" # FORWards + FP = "FP" + FPBINARY = "FPBINARY" # FPBinary + FRAME = "FRAME" + # FRAME = "FRAme" + FRAMEEND = "FRAMEEND" # FRAMEEnd + FRAMESTART = "FRAMESTART" # FRAMEStart + FRAMETYPE = "FRAMETYPE" # FRAMEtype + FREQUENCY = "FREQUENCY" # FREQuency + FREV = "FREV" + FTS = "FTS" + FULL = "FULL" + # FULL = "FULl" + FULLNOMENU = "FULLNOMENU" # FULLNOmenu + FULLSCREEN = "FULLSCREEN" + FULLSPEED = "FULLSPEED" # FULLSPeed + FW1394BS1600B = "FW1394BS1600B" + FW1394BS400B = "FW1394BS400B" + FW1394BS800B = "FW1394BS800B" + FWD = "FWD" + GAUSSIAN = "GAUSSIAN" # GAUSSian + GLITCH = "GLITCH" # GLItch + GLONGREAD = "GLONGREAD" # GLONGRead + GLONGWRITE = "GLONGWRITE" # GLONGWrite + GND = "GND" + GPIB = "GPIB" # GPIb + GRATICULE = "GRATICULE" # GRAticule + GREATERTHAN = "GREATERTHAN" # GREATerthan + GRID = "GRID" # GRId + HAMMING = "HAMMING" # HAMMing + HANDSHAKEPACKET = "HANDSHAKEPACKET" # HANDSHAKEPacket + HANNING = "HANNING" # HANNing + HBARS = "HBARS" # HBArs + HD1080I50 = "HD1080I50" + HD1080I60 = "HD1080I60" + HD1080P24 = "HD1080P24" + HD1080P25 = "HD1080P25" + HD1080P30 = "HD1080P30" + HD1080P50 = "HD1080P50" + HD1080P60 = "HD1080P60" + HD1080SF24 = "HD1080SF24" + HD480P60 = "HD480P60" + HD576P50 = "HD576P50" + HD720P30 = "HD720P30" + HD720P50 = "HD720P50" + HD720P60 = "HD720P60" + HD875I60 = "HD875I60" + HDB3 = "HDB3" + HERTZ = "HERTZ" # HERtz + HEX = "HEX" + HEXADECIMAL = "HEXADECIMAL" # HEXadecimal + HFREJ = "HFREJ" # HFRej + HIGH = "HIGH" + # HIGH = "high" + HIRES = "HIRES" # HIRes + HISTOGRAM = "HISTOGRAM" # HIStogram + HITS = "HITS" # HITs + HLS = "HLS" + HORIZONTAL = "HORIZONTAL" + # HORIZONTAL = "HORizontal" + HSRTERROR = "HSRTERROR" # HSRTError + HSYNCEND = "HSYNCEND" # HSYNCEnd + HSYNCSTART = "HSYNCSTART" # HSYNCStart + I2C = "I2C" + IDANDDATA = "IDANDDATA" + IDENTIFIER = "IDENTIFIER" # IDENTifier + IDLE = "IDLE" + IN = "IN" + INDEPENDENT = "INDEPENDENT" # INDependent + INFINIBAND = "INFINIBAND" + INFPERSIST = "INFPERSIST" # INFPersist + INHERIT = "INHERIT" + INIT = "INIT" + INKSAVER = "INKSAVER" # INKSaver + INRANGE = "INRANGE" # INrange + INSIDE = "INSIDE" # INSide + INSIDEGREATER = "INSIDEGREATER" # INSIDEGreater + INVALID = "INVALID" + INVERTED = "INVERTED" # INVERTed + # INVERTED = "INVerted" + IRE = "IRE" + ISOALL = "ISOALL" + ISOEND = "ISOEND" + ISOMID = "ISOMID" + ISOSTART = "ISOSTART" + IT = "IT" + ITP = "ITP" + JPEG = "JPEG" + KAISERBESSEL = "KAISERBESSEL" # KAISERBessel + LANDSCAPE = "LANDSCAPE" # LANdscape + LARGE = "LARGE" + # LARGE = "LARge" + LAST = "LAST" + LEARN = "LEARN" + LESSEQUAL = "LESSEQUAL" # LESSEQual + LESSTHAN = "LESSTHAN" # LESSThan + # LESSTHAN = "LESSthan" + LF = "LF" + LFREJ = "LFREJ" # LFRej + LIN = "LIN" + LINE = "LINE" + LINEAR = "LINEAR" # LINEAr + LINEEND = "LINEEND" # LINEEnd + LINES = "LINES" + LINESTART = "LINESTART" # LINEStart + LINE_X = "LINE_X" + LIVE = "LIVE" + LMP = "LMP" + LMPCONFIG = "LMPCONFIG" # LMPConfig + LMPDEVICE = "LMPDEVICE" # LMPDevice + LMPLINK = "LMPLINK" # LMPLink + LMPRESPONSE = "LMPRESPONSE" # LMPResponse + LMPUTWO = "LMPUTWO" # LMPUtwo + LOCK = "LOCK" + # LOCK = "LOck" + LOGIC = "LOGIC" + # LOGIC = "LOGIc" + LONG = "LONG" + LOW = "LOW" + # LOW = "low" + LOWSPEED = "LOWSPEED" # LOWSPeed + LPDATA = "LPDATA" + LPS666 = "LPS666" + LPTSERROR = "LPTSERROR" # LPTSError + LSB = "LSB" + MACADDRESS = "MACADDRESS" # MACADDRess + MANCHESTER = "MANCHESTER" # MANCHester + MANUAL = "MANUAL" + # MANUAL = "MANual" + MAXIMUM = "MAXIMUM" # MAXimum + MAXRETSIZE = "MAXRETSIZE" # MAXRETsize + MDATA = "MDATA" + MEAN = "MEAN" + MEANSTDDEV = "MEANSTDDEV" # MEANSTDdev + MEDIAN = "MEDIAN" # MEDian + MEDIUM = "MEDIUM" # MEDium + MHZ10 = "MHZ10" + MHZ100 = "MHZ100" + MINIMIZED = "MINIMIZED" + MINIMUM = "MINIMUM" # MINImum + MINMAX = "MINMAX" # MINMax + MINUSONE = "MINUSONE" # MINUSOne + MIPICSITWO = "MIPICSITWO" # MIPICSITWo + MIPIDSIONE = "MIPIDSIONE" # MIPIDSIOne + MISO = "MISO" + MISOMOSI = "MISOMOSI" + MIXED = "MIXED" # MIXed + MLT3 = "MLT3" + MONOGRAY = "MONOGRAY" + MONOGREEN = "MONOGREEN" + MOREEQUA = "MOREEQUA" # MOREEQua + MOREEQUAL = "MOREEQUAL" # MOREEQual + MORETHAN = "MORETHAN" # MOREThan + # MORETHAN = "MOREthan" + MOSI = "MOSI" + MSB = "MSB" + MV = "MV" + NAK = "NAK" + NAND = "NAND" # NANd + NCROSS = "NCROSS" # NCROss + NDUTY = "NDUTY" # NDUty + NEGATIVE = "NEGATIVE" # NEGAtive + NEXT = "NEXT" + NO = "NO" + # NO = "No" + NOCARE = "NOCARE" + NOISEREJ = "NOISEREJ" # NOISErej + NOPARITY = "NOPARITY" # NOPARity + NOR = "NOR" + NORMAL = "NORMAL" # NORMal + NOVERSHOOT = "NOVERSHOOT" # NOVershoot + NRZ = "NRZ" + NTSC = "NTSC" + # NTSC = "NTSc" + NULL = "NULL" + NUMERIC = "NUMERIC" # NUMERic + NWIDTH = "NWIDTH" # NWIdth + NYET = "NYET" + OC1 = "OC1" + OC12 = "OC12" + OC3 = "OC3" + OCCURS = "OCCURS" # OCCurs + ODD = "ODD" + OFF = "OFF" + ON = "ON" + ONE = "ONE" + OR = "OR" + OUT = "OUT" + OUTRANGE = "OUTRANGE" # OUTrange + OUTSIDE = "OUTSIDE" # OUTside + OUTSIDEGREATER = "OUTSIDEGREATER" # OUTSIDEGreater + OVERLAY = "OVERLAY" # OVERlay + OVERLOAD = "OVERLOAD" + # OVERLOAD = "OVERLoad" + PACKET = "PACKET" + PAL = "PAL" + PARALLEL = "PARALLEL" # PARallel + PARITY = "PARITY" # PARity + PARITYERROR = "PARITYERROR" # PARItyerror + PASS = "PASS" + PATTERN = "PATTERN" # PATtern + PAYLOAD = "PAYLOAD" # PAYload + PBASE = "PBASE" # PBASe + PCIE = "PCIE" + PCIEXPRESS = "PCIEXPRESS" # PCIExpress + PCIEXPRESS2 = "PCIEXPRESS2" # PCIExpress2 + PCROSS = "PCROSS" # PCROss + PCTCROSS = "PCTCROSS" # PCTCROss + PCX = "PCX" + PDUTY = "PDUTY" # PDUty + PEAKDETECT = "PEAKDETECT" # PEAKdetect + PEAKHITS = "PEAKHITS" # PEAKHits + PENDING = "PENDING" + PERCENT = "PERCENT" # PERCent + PERIOD = "PERIOD" # PERIod + PHASE = "PHASE" # PHAse + PID = "PID" + PING = "PING" + PK2PK = "PK2PK" # PK2Pk + PKPKJITTER = "PKPKJITTER" # PKPKJitter + PKPKNOISE = "PKPKNOISE" # PKPKNoise + PLUSONE = "PLUSONE" # PLUSOne + PNG = "PNG" + POLARCOORD = "POLARCOORD" # POLARCoord + PORTRAIT = "PORTRAIT" # PORTRait + POSITIVE = "POSITIVE" # POSITIVe + PPS101010 = "PPS101010" + PPS121212 = "PPS121212" + PPS565 = "PPS565" + PPS666 = "PPS666" + PPS888 = "PPS888" + PRBS7 = "PRBS7" + PRBS9 = "PRBS9" + PRE = "PRE" + PREVIOUS = "PREVIOUS" # PREVious + PRODUCT = "PRODUCT" # PRODuct + PULSE = "PULSE" # PULse + PWIDTH = "PWIDTH" # PWIdth + QFACTOR = "QFACTOR" # QFACtor + QTAG = "QTAG" + RANDOM = "RANDOM" + RATE10000 = "RATE10000" + RATE12000 = "RATE12000" + RATE1250 = "RATE1250" + RATE14000 = "RATE14000" + RATE1500 = "RATE1500" + RATE2125 = "RATE2125" + RATE2500 = "RATE2500" + RATE3000 = "RATE3000" + RATE3125 = "RATE3125" + RATE4250 = "RATE4250" + RATE5000 = "RATE5000" + RATE6000 = "RATE6000" + RATE6250 = "RATE6250" + RATIO = "RATIO" # RATio + RAW10 = "RAW10" + RAW12 = "RAW12" + RAW14 = "RAW14" + RDMINUS = "RDMINUS" + RDPLUS = "RDPLUS" + READ = "READ" + RECOVERED = "RECOVERED" # RECOVered + RECTANGULAR = "RECTANGULAR" # RECTANGular + # RECTANGULAR = "RECTangular" + REFOUT = "REFOUT" + REJECT = "REJECT" # REJect + RELOAD = "RELOAD" # RELoad + REMOTE = "REMOTE" # REMote + REPEATSTART = "REPEATSTART" # REPEATstart + RESERVED = "RESERVED" + RESET = "RESET" + # RESET = "RESet" + RESETLIVE = "RESETLIVE" # RESETLive + RESTORE = "RESTORE" # RESTore + RESUME = "RESUME" + REV = "REV" + REVERSE = "REVERSE" # REVErse + RGB444 = "RGB444" + RGB555 = "RGB555" + RGB565 = "RGB565" + RGB666 = "RGB666" + RGB888 = "RGB888" + RI = "RI" + RIBINARY = "RIBINARY" # RIBinary + RIO_1G = "RIO_1G" + RIO_2G = "RIO_2G" + RIO_500M = "RIO_500M" + RIO_750M = "RIO_750M" + RIO_SERIAL_1G = "RIO_SERIAL_1G" + RIO_SERIAL_2_5G = "RIO_SERIAL_2_5G" + RIO_SERIAL_3G = "RIO_SERIAL_3G" + RISE = "RISE" + # RISE = "RISe" + RISING = "RISING" # RISing + RMS = "RMS" + RMSJITTER = "RMSJITTER" # RMSJitter + RMSNOISE = "RMSNOISE" # RMSNoise + RP = "RP" + RPBINARY = "RPBINARY" # RPBinary + RS232 = "RS232" + RT = "RT" + RUNSTOP = "RUNSTOP" # RUNSTop + RUNT = "RUNT" + RX = "RX" + S8B10B = "S8B10B" + SAMPLE = "SAMPLE" # SAMple + SAS6_0 = "SAS6_0" + SATA1_5 = "SATA1_5" + SATA3_0 = "SATA3_0" + SATA6_0 = "SATA6_0" + SAVE = "SAVE" # SAVe + SCREEN = "SCREEN" + SDASHED = "SDASHED" # SDASHed + SDS = "SDS" + SEARCHTOTRIGGER = "SEARCHTOTRIGGER" # SEARCHtotrigger + SECAM = "SECAM" + SECONDS = "SECONDS" # SECOnds + SELECTED = "SELECTED" + SEQUENCE = "SEQUENCE" # SEQuence + SEQUENTIAL = "SEQUENTIAL" + SERIAL = "SERIAL" + SETHOLD = "SETHOLD" # SETHold + SETLEVEL = "SETLEVEL" # SETLevel + SETUP = "SETUP" + SFPBINARY = "SFPBINARY" # SFPbinary + SHORT = "SHORT" + # SHORT = "SHORt" + SHUTDOWN = "SHUTDOWN" # SHUTDown + SIGMA1 = "SIGMA1" + SIGMA2 = "SIGMA2" + SIGMA3 = "SIGMA3" + SINGLEENDED = "SINGLEENDED" # SINGleended + SINX = "SINX" + SIXSIGMAJIT = "SIXSIGMAJIT" # SIXSigmajit + SKP = "SKP" + SLOWERTHAN = "SLOWERTHAN" # SLOWERthan + SMALL = "SMALL" # SMAll + SNAP = "SNAP" # SNAp + SNRATIO = "SNRATIO" # SNRatio + SOF = "SOF" + SOLID = "SOLID" + SOT = "SOT" + SOTERROR = "SOTERROR" # SOTError + SOTSYNC = "SOTSYNC" # SOTSync + SPACE = "SPACE" # SPace + SPECIALPACKET = "SPECIALPACKET" # SPECIALPacket + SPECTRAL = "SPECTRAL" # SPECTral + SPI = "SPI" + SPLIT = "SPLIT" + SRCDEPENDENT = "SRCDEPENDENT" # SRCDependent + SRCINDEPENDENT = "SRCINDEPENDENT" # SRCIndependent + SRIBINARY = "SRIBINARY" # SRIbinary + SRPBINARY = "SRPBINARY" # SRPbinary + SS = "SS" + SSPLIT = "SSPLIT" + STABLE = "STABLE" # STABle + STALL = "STALL" + STANDARD = "STANDARD" + # STANDARD = "STANdard" + # STANDARD = "STandard" + START = "START" + # START = "STARt" + STARTUP = "STARTUP" # STARTup + STATE = "STATE" + STATIC = "STATIC" + STATUS = "STATUS" + # STATUS = "STATus" + STAYSHIGH = "STAYSHIGH" # STAYSHigh + STAYSLOW = "STAYSLOW" # STAYSLow + STDDEV = "STDDEV" # STDdev + STOP = "STOP" + SUBSYS = "SUBSYS" + SUSPEND = "SUSPEND" + SYMBOL = "SYMBOL" + SYMBOLIC = "SYMBOLIC" # SYMBolic + SYNC = "SYNC" + TCPHEADER = "TCPHEADER" # TCPHeader + TEAR = "TEAR" + TEKEXPONENTIAL = "TEKEXPONENTIAL" # TEKEXPonential + TEMPERATURE = "TEMPERATURE" # TEMPErature + TEST = "TEST" + # TEST = "TESt" + TIFF = "TIFF" + TIME = "TIME" + # TIME = "TIMe" + TIMEOUT = "TIMEOUT" # TIMEOut + TOGGLE = "TOGGLE" + TOKENPACKET = "TOKENPACKET" # TOKENPacket + TP = "TP" + TPACK = "TPACK" + TPERDY = "TPERDY" + TPNOTIFY = "TPNOTIFY" # TPNotify + TPNRDY = "TPNRDY" + TPPING = "TPPING" # TPPing + TPRESPONSE = "TPRESPONSE" # TPResponse + TPSTALL = "TPSTALL" # TPSTall + TPSTATUS = "TPSTATUS" # TPStatus + TRACK = "TRACK" # TRACk + TRAINING = "TRAINING" # TRAining + TRANSITION = "TRANSITION" # TRANsition + TRIGGERTOSEARCH = "TRIGGERTOSEARCH" # TRIGgertosearch + TRILEVELCUSTOM = "TRILEVELCUSTOM" # TRILevelcustom + TRUE = "TRUE" # TRUe + TTL = "TTL" + TURNON = "TURNON" + TX = "TX" + ULTRALP = "ULTRALP" + UNDEFINED = "UNDEFINED" + UNDO = "UNDO" # UNDo + UNEQUAL = "UNEQUAL" # UNEQual + UNLOCK = "UNLOCK" + USB = "USB" + USER = "USER" # USEr + V1X = "V1X" + V2X = "V2X" + VALUEMEAN = "VALUEMEAN" # VALUEMean + VBARS = "VBARS" # VBArs + VERTICAL = "VERTICAL" + # VERTICAL = "VERTical" + VFIELDS = "VFIELDS" # VFields + VIDEO = "VIDEO" # VIDeo + VLINES = "VLINES" # VLines + VSROC192 = "VSROC192" + VSYNCEND = "VSYNCEND" # VSYNCEnd + VSYNCSTART = "VSYNCSTART" # VSYNCStart + WAIT = "WAIT" + WARNING = "WARNING" # WARNing + WAVEFORM = "WAVEFORM" # WAVEform + WAVEFORMS = "WAVEFORMS" + WFMDB = "WFMDB" + WIDERTHAN = "WIDERTHAN" # WIDERthan + WIDTH = "WIDTH" # WIDth + WINDOW = "WINDOW" # WINdow + WITHIN = "WITHIN" # WITHin + # WITHIN = "WIThin" + WRITE = "WRITE" + X = "X" + XFF = "XFF" + XLARGE = "XLARGE" + XSMALL = "XSMALL" # XSMAll + XY = "XY" + XYZ = "XYZ" + Y = "Y" + YCBCR12 = "YCBCR12" + YCBCR16 = "YCBCR16" + YCBCR20 = "YCBCR20" + YCBCR24 = "YCBCR24" + YES = "YES" + # YES = "Yes" + YT = "YT" + YUV420B10 = "YUV420B10" + YUV420B8 = "YUV420B8" + YUV420C10 = "YUV420C10" + YUV420C8 = "YUV420C8" + YUV420L8 = "YUV420L8" + YUV422B10 = "YUV422B10" + YUV422B8 = "YUV422B8" + ZERO = "ZERO" + + +# pylint: disable=too-many-instance-attributes,too-many-public-methods +class DPO7KCommands: + """The DPO7K commands. + + This provides access to all the commands for the DPO7K device. See the documentation of each + property for more usage information. + + Properties: + - ``.acquire``: The ``ACQuire`` command tree. + - ``.alias``: The ``ALIas`` command. + - ``.allev``: The ``ALLEv`` command. + - ``.allocate``: The ``ALLOcate`` command tree. + - ``.application``: The ``APPLication`` command tree. + - ``.autoset``: The ``AUTOSet`` command. + - ``.auxin``: The ``AUXIn`` command tree. + - ``.auxout``: The ``AUXout`` command. + - ``.bell``: The ``BELl`` command. + - ``.bus``: The ``BUS`` command tree. + - ``.busy``: The ``BUSY`` command. + - ``.cal``: The ``*CAL`` command. + - ``.calibrate``: The ``CALibrate`` command. + - ``.ch``: The ``CH`` command. + - ``.clear``: The ``CLEAR`` command. + - ``.cls``: The ``*CLS`` command. + - ``.cmdbatch``: The ``CMDBatch`` command. + - ``.counter``: The ``COUnter`` command tree. + - ``.cq``: The ``CQ`` command tree. + - ``.cursor``: The ``CURSor`` command. + - ``.curve``: The ``CURVe`` command. + - ``.curvenext``: The ``CURVENext`` command. + - ``.curvestream``: The ``CURVEStream`` command. + - ``.custom``: The ``CUSTOM`` command tree. + - ``.d``: The ``D`` command tree. + - ``.data``: The ``DATa`` command. + - ``.date``: The ``DATE`` command. + - ``.ddt``: The ``*DDT`` command. + - ``.delete``: The ``DELEte`` command tree. + - ``.dese``: The ``DESE`` command. + - ``.diag``: The ``DIAg`` command tree. + - ``.display``: The ``DISplay`` command. + - ``.email``: The ``EMail`` command. + - ``.errordetector``: The ``ERRORDetector`` command tree. + - ``.ese``: The ``*ESE`` command. + - ``.esr``: The ``*ESR`` command. + - ``.event``: The ``EVENT`` command. + - ``.evmsg``: The ``EVMsg`` command. + - ``.evqty``: The ``EVQty`` command. + - ``.export``: The ``EXPort`` command. + - ``.factory``: The ``FACtory`` command. + - ``.fastacq``: The ``FASTAcq`` command. + - ``.filesystem``: The ``FILESystem`` command. + - ``.gpibusb``: The ``GPIBUsb`` command tree. + - ``.hardcopy``: The ``HARDCopy`` command. + - ``.hdr``: The ``HDR`` command. + - ``.header``: The ``HEADer`` command. + - ``.histogram``: The ``HIStogram`` command. + - ``.horizontal``: The ``HORizontal`` command. + - ``.id``: The ``ID`` command. + - ``.idn``: The ``*IDN`` command. + - ``.limit``: The ``LIMit`` command. + - ``.linktraining``: The ``LINKTRaining`` command tree. + - ``.lock``: The ``LOCk`` command. + - ``.lrn``: The ``*LRN`` command. + - ``.mark``: The ``MARK`` command. + - ``.mask``: The ``MASK`` command. + - ``.math``: The ``MATH`` command. + - ``.matharbflt``: The ``MATHArbflt`` command tree. + - ``.mathvar``: The ``MATHVAR`` command. + - ``.mch``: The ``MCH`` command tree. + - ``.measurement``: The ``MEASUrement`` command. + - ``.multiscope``: The ``MULTiscope`` command tree. + - ``.newpass``: The ``NEWpass`` command. + - ``.opc``: The ``*OPC`` command. + - ``.opcextended``: The ``OPCEXtended`` command. + - ``.opt``: The ``*OPT`` command. + - ``.password``: The ``PASSWord`` command. + - ``.pcenable``: The ``PCENable`` command. + - ``.psc``: The ``*PSC`` command. + - ``.pud``: The ``*PUD`` command. + - ``.rcl``: The ``*RCL`` command. + - ``.recall``: The ``RECAll`` command tree. + - ``.ref``: The ``REF`` command tree. + - ``.rem``: The ``REM`` command. + - ``.rosc``: The ``ROSc`` command tree. + - ``.rst``: The ``*RST`` command. + - ``.sav``: The ``*SAV`` command. + - ``.save``: The ``SAVe`` command tree. + - ``.saveon``: The ``SAVEON`` command. + - ``.sds``: The ``*SDS`` command. + - ``.search``: The ``SEARCH`` command tree. + - ``.select``: The ``SELect`` command. + - ``.set``: The ``SET`` command. + - ``.setup``: The ``SETUp`` command tree. + - ``.sre``: The ``*SRE`` command. + - ``.stb``: The ``*STB`` command. + - ``.system``: The ``SYSTem`` command tree. + - ``.teklink``: The ``TEKLink`` command tree. + - ``.teksecure``: The ``TEKSecure`` command. + - ``.test``: The ``TEST`` command. + - ``.time``: The ``TIME`` command. + - ``.trg``: The ``*TRG`` command. + - ``.trig``: The ``TRIG`` command tree. + - ``.trigger``: The ``TRIGger`` command. + - ``.tst``: The ``*TST`` command. + - ``.unlock``: The ``UNLock`` command. + - ``.usbtmc``: The ``USBTMC`` command tree. + - ``.verbose``: The ``VERBose`` command. + - ``.visual``: The ``VISual`` command. + - ``.wai``: The ``*WAI`` command. + - ``.wavfrm``: The ``WAVFrm`` command. + - ``.wavfrmstream``: The ``WAVFRMStream`` command. + - ``.wfminpre``: The ``WFMInpre`` command. + - ``.wfmoutpre``: The ``WFMOutpre`` command. + - ``.wfmpre``: The ``WFMPre`` command tree. + - ``.zoom``: The ``ZOOm`` command. + """ + + # pylint: disable=too-many-statements + def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + self._acquire = Acquire(device) + self._alias = Alias(device) + self._allev = Allev(device) + self._allocate = Allocate(device) + self._application = Application(device) + self._autoset = Autoset(device) + self._auxin = Auxin(device) + self._auxout = Auxout(device) + self._bell = Bell(device) + self._bus = Bus(device) + self._busy = Busy(device) + self._cal = Cal(device) + self._calibrate = Calibrate(device) + self._ch: Dict[int, Channel] = DefaultDictPassKeyToFactory( + lambda x: Channel(device, f"CH{x}") + ) + self._clear = Clear(device) + self._cls = Cls(device) + self._cmdbatch = Cmdbatch(device) + self._counter = Counter(device) + self._cq: Dict[int, CqItem] = DefaultDictPassKeyToFactory( + lambda x: CqItem(device, f"CQ{x}") + ) + self._cursor = Cursor(device) + self._curve = Curve(device) + self._curvenext = Curvenext(device) + self._curvestream = Curvestream(device) + self._custom = Custom(device) + self._d: Dict[int, DigitalBit] = DefaultDictPassKeyToFactory( + lambda x: DigitalBit(device, f"D{x}") + ) + self._data = Data(device) + self._date = Date(device) + self._ddt = Ddt(device) + self._delete = Delete(device) + self._dese = Dese(device) + self._diag = Diag(device) + self._display = Display(device) + self._email = Email(device) + self._errordetector = Errordetector(device) + self._ese = Ese(device) + self._esr = Esr(device) + self._event = Event(device) + self._evmsg = Evmsg(device) + self._evqty = Evqty(device) + self._export = Export(device) + self._factory = Factory(device) + self._fastacq = Fastacq(device) + self._filesystem = Filesystem(device) + self._gpibusb = Gpibusb(device) + self._hardcopy = Hardcopy(device) + self._hdr = Hdr(device) + self._header = Header(device) + self._histogram = Histogram(device) + self._horizontal = Horizontal(device) + self._id = Id(device) + self._idn = Idn(device) + self._limit = Limit(device) + self._linktraining = Linktraining(device) + self._lock = Lock(device) + self._lrn = Lrn(device) + self._mark = Mark(device) + self._mask = Mask(device) + self._math: Dict[int, MathItem] = DefaultDictPassKeyToFactory( + lambda x: MathItem(device, f"MATH{x}") + ) + self._matharbflt: Dict[int, MatharbfltItem] = DefaultDictPassKeyToFactory( + lambda x: MatharbfltItem(device, f"MATHArbflt{x}") + ) + self._mathvar = Mathvar(device) + self._mch: Dict[int, MchItem] = DefaultDictPassKeyToFactory( + lambda x: MchItem(device, f"MCH{x}") + ) + self._measurement = Measurement(device) + self._multiscope = Multiscope(device) + self._newpass = Newpass(device) + self._opc = Opc(device) + self._opcextended = Opcextended(device) + self._opt = Opt(device) + self._password = Password(device) + self._pcenable = Pcenable(device) + self._psc = Psc(device) + self._pud = Pud(device) + self._rcl = Rcl(device) + self._recall = Recall(device) + self._ref: Dict[int, RefItem] = DefaultDictPassKeyToFactory( + lambda x: RefItem(device, f"REF{x}") + ) + self._rem = Rem(device) + self._rosc = Rosc(device) + self._rst = Rst(device) + self._sav = Sav(device) + self._save = Save(device) + self._saveon = Saveon(device) + self._sds = Sds(device) + self._search = Search(device) + self._select = Select(device) + self._set = Set(device) + self._setup = Setup(device) + self._sre = Sre(device) + self._stb = Stb(device) + self._system = System(device) + self._teklink = Teklink(device) + self._teksecure = Teksecure(device) + self._test = Test(device) + self._time = Time(device) + self._trg = Trg(device) + self._trig = Trig(device) + self._trigger = Trigger(device) + self._tst = Tst(device) + self._unlock = Unlock(device) + self._usbtmc = Usbtmc(device) + self._verbose = Verbose(device) + self._visual = Visual(device) + self._wai = Wai(device) + self._wavfrm = Wavfrm(device) + self._wavfrmstream = Wavfrmstream(device) + self._wfminpre = Wfminpre(device) + self._wfmoutpre = Wfmoutpre(device) + self._wfmpre = Wfmpre(device) + self._zoom = Zoom(device) + + @property + def acquire(self) -> Acquire: + """Return the ``ACQuire`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ACQuire?`` query. + - Using the ``.verify(value)`` method will send the ``ACQuire?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.enhancedenob``: The ``ACQuire:ENHANCEDEnob`` command. + - ``.interpeightbit``: The ``ACQuire:INTERPEightbit`` command. + - ``.magnivu``: The ``ACQuire:MAGnivu`` command. + - ``.mode``: The ``ACQuire:MODe`` command. + - ``.numacq``: The ``ACQuire:NUMACq`` command. + - ``.numavg``: The ``ACQuire:NUMAVg`` command. + - ``.numenv``: The ``ACQuire:NUMEnv`` command. + - ``.numframesacquired``: The ``ACQuire:NUMFRAMESACQuired`` command. + - ``.numsamples``: The ``ACQuire:NUMSAMples`` command. + - ``.samplingmode``: The ``ACQuire:SAMPlingmode`` command. + - ``.state``: The ``ACQuire:STATE`` command. + - ``.stopafter``: The ``ACQuire:STOPAfter`` command. + - ``.syncsamples``: The ``ACQuire:SYNcsamples`` command. + """ + return self._acquire + + @property + def alias(self) -> Alias: + """Return the ``ALIas`` command. + + **Description:** + - This command sets or queries the state of alias functionality, and it is identical to + the ``ALIAS:STATE`` command. + + **Usage:** + - Using the ``.query()`` method will send the ``ALIas?`` query. + - Using the ``.verify(value)`` method will send the ``ALIas?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ALIas value`` command. + + **SCPI Syntax:** + + :: + + - ALIas {OFF|ON|} + - ALIas? + + **Info:** + - ``OFF`` turns Alias expansion off. + - ``ON`` turns Alias expansion on. When a defined alias is received, the specified + command sequence is substituted for the alias and executed. + - ```` = 0 disables Alias mode; any other value enables Alias mode. + + Sub-properties: + - ``.catalog``: The ``ALIas:CATalog`` command. + - ``.define``: The ``ALIas:DEFine`` command. + - ``.delete``: The ``ALIas:DELEte`` command. + - ``.state``: The ``ALIas:STATE`` command. + """ + return self._alias + + @property + def allev(self) -> Allev: + """Return the ``ALLEv`` command. + + **Description:** + - This query-only command prompts the instrument to return all events and their messages + (delimited by commas), and removes the returned events from the Event Queue. Use the + ``*ESR?`` query to enable the events to be returned. This command is similar to + repeatedly sending ``*EVMsg?`` queries to the instrument. + + **Usage:** + - Using the ``.query()`` method will send the ``ALLEv?`` query. + - Using the ``.verify(value)`` method will send the ``ALLEv?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ALLEv? + """ + return self._allev + + @property + def allocate(self) -> Allocate: + """Return the ``ALLOcate`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ALLOcate?`` query. + - Using the ``.verify(value)`` method will send the ``ALLOcate?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.waveform``: The ``ALLOcate:WAVEform`` command tree. + """ + return self._allocate + + @property + def application(self) -> Application: + """Return the ``APPLication`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``APPLication?`` query. + - Using the ``.verify(value)`` method will send the ``APPLication?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.activate``: The ``APPLication:ACTivate`` command. + - ``.scopeapp``: The ``APPLication:SCOPEAPP`` command tree. + """ + return self._application + + @property + def autoset(self) -> Autoset: + """Return the ``AUTOSet`` command. + + **Description:** + - This command (no query format) sets the vertical, horizontal, and trigger controls of + the instrument to automatically acquire and display the selected waveform. (To autoset + a video waveform, the video trigger must be set to video standard, not custom. Video + arguments require video hardware.) This is equivalent to pressing the front panel + AUTOSET button. For a detailed description of autoset functionality, see Autoset in + the index of the online help for your instrument. + + **Usage:** + - Using the ``.write(value)`` method will send the ``AUTOSet value`` command. + + **SCPI Syntax:** + + :: + + - AUTOSet {EXECute|UNDo|VFields|VIDeo|VLines} + + **Info:** + - ``EXECute`` runs the autoset routine; this is equivalent to pressing the front panel + AUTOSET button. If the display is set to a PAL, MV, or IRE graticule, this argument + forces the graticule display to full mode (frame, grid, and cross hair). + - ``UNDo`` returns the instrument to the setting prior to executing an autoset. + - ``VFields`` autosets the displayed waveform. + - ``VIDeo`` autosets the displayed waveform. + - ``VLines`` autosets the displayed waveform. + + Sub-properties: + - ``.overlay``: The ``AUTOSet:OVErlay`` command. + - ``.percent``: The ``AUTOSet:PERcent`` command. + """ + return self._autoset + + @property + def auxin(self) -> Auxin: + """Return the ``AUXIn`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``AUXIn?`` query. + - Using the ``.verify(value)`` method will send the ``AUXIn?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.bandwidth``: The ``AUXIn:BANdwidth`` command. + - ``.coupling``: The ``AUXIn:COUPling`` command. + - ``.offset``: The ``AUXIn:OFFSet`` command. + - ``.probefunc``: The ``AUXIn:PROBEFunc`` command tree. + - ``.probe``: The ``AUXIn:PRObe`` command tree. + - ``.vterm``: The ``AUXIn:VTERm`` command tree. + """ + return self._auxin + + @property + def auxout(self) -> Auxout: + """Return the ``AUXout`` command. + + **Description:** + - This query-only command returns the auxiliary output setup and is equivalent to + selecting External Signals. From the Utilities menu, and then viewing the current + settings for the AUX OUT Configuration. + + **Usage:** + - Using the ``.query()`` method will send the ``AUXout?`` query. + - Using the ``.verify(value)`` method will send the ``AUXout?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - AUXout? + + Sub-properties: + - ``.edge``: The ``AUXout:EDGE`` command. + - ``.source``: The ``AUXout:SOUrce`` command. + """ + return self._auxout + + @property + def bell(self) -> Bell: + """Return the ``BELl`` command. + + **Description:** + - This command was previously used to beep an audio indicator and is provided for + backward compatibility. + + **Usage:** + - Using the ``.write()`` method will send the ``BELl`` command. + + **SCPI Syntax:** + + :: + + - BELl + """ + return self._bell + + @property + def bus(self) -> Bus: + """Return the ``BUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``BUS?`` query. + - Using the ``.verify(value)`` method will send the ``BUS?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.b1``: The ``BUS:B1`` command tree. + - ``.b``: The ``BUS:B`` command tree. + - ``.ch``: The ``BUS:CH`` command tree. + - ``.math``: The ``BUS:MATH`` command tree. + - ``.ref``: The ``BUS:REF`` command tree. + """ + return self._bus + + @property + def busy(self) -> Busy: + """Return the ``BUSY`` command. + + **Description:** + - This query-only command returns the status of the instrument. This command allows you + to synchronize the operation of the instrument with your application program. + + **Usage:** + - Using the ``.query()`` method will send the ``BUSY?`` query. + - Using the ``.verify(value)`` method will send the ``BUSY?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - BUSY? + """ + return self._busy + + @property + def cal(self) -> Cal: + """Return the ``*CAL`` command. + + **Description:** + - This query-only command starts signal path calibration (SPC) and returns the status + upon completion. + + **Usage:** + - Using the ``.query()`` method will send the ``*CAL?`` query. + - Using the ``.verify(value)`` method will send the ``*CAL?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *CAL? + """ + return self._cal + + @property + def calibrate(self) -> Calibrate: + """Return the ``CALibrate`` command. + + **Description:** + - This query returns the status of signal path calibration. + + **Usage:** + - Using the ``.query()`` method will send the ``CALibrate?`` query. + - Using the ``.verify(value)`` method will send the ``CALibrate?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CALibrate? + + Sub-properties: + - ``.calprobe``: The ``CALibrate:CALProbe`` command tree. + - ``.internal``: The ``CALibrate:INTERNal`` command. + - ``.probestate``: The ``CALibrate:PRObestate`` command tree. + - ``.results``: The ``CALibrate:RESults`` command. + """ + return self._calibrate + + @property + def ch(self) -> Dict[int, Channel]: + """Return the ``CH`` command. + + **Description:** + - This query-only command returns the vertical parameters for the specified channel. The + channel is specified by x. + + **Usage:** + - Using the ``.query()`` method will send the ``CH?`` query. + - Using the ``.verify(value)`` method will send the ``CH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CH? + + Sub-properties: + - ``.atiactive``: The ``CH:ATIACTive`` command. + - ``.available``: The ``CH:AVAILable`` command. + - ``.bandwidth``: The ``CH:BANdwidth`` command. + - ``.coupling``: The ``CH:COUPling`` command. + - ``.deskew``: The ``CH:DESKew`` command. + - ``.fastacqcapable``: The ``CH:FASTAcqcapable`` command. + - ``.fastframecapable``: The ``CH:FASTFRamecapable`` command. + - ``.icapture``: The ``CH:ICAPture`` command tree. + - ``.invert``: The ``CH:INVert`` command. + - ``.label``: The ``CH:LABel`` command tree. + - ``.offset``: The ``CH:OFFSet`` command. + - ``.opti``: The ``CH:OPTI`` command tree. + - ``.optical``: The ``CH:OPTIcal`` command tree. + - ``.position``: The ``CH:POSition`` command. + - ``.probecontrol``: The ``CH:PROBECOntrol`` command. + - ``.probecal``: The ``CH:PROBECal`` command. + - ``.probefunc``: The ``CH:PROBEFunc`` command tree. + - ``.probe``: The ``CH:PRObe`` command. + - ``.scale``: The ``CH:SCAle`` command. + - ``.termination``: The ``CH:TERmination`` command. + - ``.threshold``: The ``CH:THRESHold`` command. + - ``.vterm``: The ``CH:VTERm`` command tree. + """ + return self._ch + + @property + def clear(self) -> Clear: + """Return the ``CLEAR`` command. + + **Description:** + - This command clears acquisitions, measurements, and waveforms. + + **Usage:** + - Using the ``.write(value)`` method will send the ``CLEAR value`` command. + + **SCPI Syntax:** + + :: + + - CLEAR {ALL} + """ + return self._clear + + @property + def cls(self) -> Cls: + """Return the ``*CLS`` command. + + **Description:** + - This command (no query form) clears the following: Event Queue Standard Event Status + Register Status Byte Register (except the MAV bit) If the ``*CLS`` command immediately + follows an , the Output Queue and MAV bit (Status Byte Register bit 4) are also + cleared. MAV indicates that information is in the output queue. The device clear (DCL) + control message will clear the output queue and thus MAV. ``*CLS`` does not clear the + output queue or MAV. ``*CLS`` can suppress a Service Request that is to be generated + by an ``*OPC``. This will happen if a single sequence acquisition operation is still + being processed when the ``*CLS`` command is executed. + + **Usage:** + - Using the ``.write()`` method will send the ``*CLS`` command. + + **SCPI Syntax:** + + :: + + - *CLS + """ + return self._cls + + @property + def cmdbatch(self) -> Cmdbatch: + """Return the ``CMDBatch`` command. + + **Description:** + - This command sets or queries the state of command batching. By batching commands, + database transactions can be optimized, increasing command throughput. Also, batching + allows for ALL commands in an individual batch to be order independent and accomplish + the same result as if the commands were coupled. The Batch state is persistent and + will be saved across power cycles, but will not be saved and recalled as part of a + setup. In a setup scenario, the factory initial value is enabled. + + **Usage:** + - Using the ``.query()`` method will send the ``CMDBatch?`` query. + - Using the ``.verify(value)`` method will send the ``CMDBatch?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CMDBatch value`` command. + + **SCPI Syntax:** + + :: + + - CMDBatch {OFF|ON} + - CMDBatch? + + **Info:** + - ```` = 0 turns command batching off; any other value turns command batching on. + - ``OFF`` turns command batching off. + - ``ON`` turns command batching on. + """ + return self._cmdbatch + + @property + def counter(self) -> Counter: + """Return the ``COUnter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``COUnter?`` query. + - Using the ``.verify(value)`` method will send the ``COUnter?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.results``: The ``COUnter:RESULTs`` command. + """ + return self._counter + + @property + def cq(self) -> Dict[int, CqItem]: + """Return the ``CQ`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``CQ?`` query. + - Using the ``.verify(value)`` method will send the ``CQ?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.threshold``: The ``CQ:THRESHold`` command. + """ + return self._cq + + @property + def cursor(self) -> Cursor: + """Return the ``CURSor`` command. + + **Description:** + - Returns all of the current cursor settings. + + **Usage:** + - Using the ``.query()`` method will send the ``CURSor?`` query. + - Using the ``.verify(value)`` method will send the ``CURSor?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CURSor? + + Sub-properties: + - ``.function``: The ``CURSor:FUNCtion`` command. + - ``.hbars``: The ``CURSor:HBArs`` command. + - ``.linestyle``: The ``CURSor:LINESTyle`` command. + - ``.mode``: The ``CURSor:MODe`` command. + - ``.screen``: The ``CURSor:SCREEN`` command tree. + - ``.source1``: The ``CURSor:SOUrce1`` command. + - ``.state``: The ``CURSor:STATE`` command. + - ``.vbars``: The ``CURSor:VBArs`` command. + - ``.waveform``: The ``CURSor:WAVEform`` command. + - ``.xy``: The ``CURSor:XY`` command. + """ + return self._cursor + + @property + def curve(self) -> Curve: + """Return the ``CURVe`` command. + + **Description:** + - The ``CURVe`` command transfers the waveform data points the oscilloscope's internal + reference memory location (REF1-4), which is specified by the to ``DATa:DESTination`` + command. The ``CURVe?`` query transfers data the oscilloscope; the source waveform is + specified by the from ``DATa:SOUrce`` command. The first and last data points are + specified by the ``DATa:STARt`` and ``DATa:STOP`` commands. Associated with each + waveform transferred using the ``CURVe`` command or query is a waveform preamble that + provides the data format, scale and associated information needed to interpret the + waveform data points. The preamble information for waveforms sent the oscilloscope is + specified using the to WFMInpre commands. The preamble information for waveforms + transferred the oscilloscope is specified or queried using the from WFMOutpre + commands. If the waveform is not displayed, the query form generates an error. The + ``CURVe`` command and ``CURVe?`` query transfer waveform data in ASCII or binary + format. ASCII data is sent as a comma-separated list of decimal values. Binary data is + sent with the IEEE488.2 binary block header immediately followed by the binary data. + The IEEE488.2 binary block header is defined as follows: #N where: N is a + single decimal or hexadecimal digit indicating the number of digits to follow. + are the decimal digits representing the number of bytes in the data that + immediately follows this binary block header. The Waveform Transfer command group text + contains more comprehensive information. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVe?`` query. + - Using the ``.verify(value)`` method will send the ``CURVe?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CURVe value`` command. + + **SCPI Syntax:** + + :: + + - CURVe {|} + - CURVe? + + **Info:** + - ```` is the waveform data in binary format. The waveform is formatted as + follows. + - ```` is the waveform data in ASCII format. The format for ASCII data is + [,..], where each represents a data point. For RF frequency domain + waveforms, the data is transmitted as 4-byte floating point values (NR2 or NR3). + """ + return self._curve + + @property + def curvenext(self) -> Curvenext: + """Return the ``CURVENext`` command. + + **Description:** + - This query-only command returns unique waveform data from the instrument. This query + performs just like CURVE?, except multiple uses guarantee that the waveform returned + is always a new acquisition since the previous CURVENEXT. Note that if the instrument + is acquiring waveform records at a slow rate (high resolution mode), you must + configure the controller for long timeout thresholds. Data will not be transferred + until a new waveform is acquired since the previous ``:CURVENext?`` response. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVENext?`` query. + - Using the ``.verify(value)`` method will send the ``CURVENext?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CURVENext? + """ + return self._curvenext + + @property + def curvestream(self) -> Curvestream: + """Return the ``CURVEStream`` command. + + **Description:** + - This query continuously transfers waveform data from the instrument as it is acquired. + This command puts the instrument into a talk-only mode, allowing the controller to + receive waveform records as fast as (and as soon as) they are acquired. Use the + ``DATA:SOURCE`` command to specify the waveform sources. The command does the same + thing as the CURVE command. Control of the instrument through the user interface or + other external client is not possible while in streaming mode. The GPIB controller + must take the instrument out of this continuous talking mode to terminate the query + and allow other input sources to resume communication with the instrument. The + following options are available to transition out of streaming curve mode: send a + device clear over the bus or send another query to the instrument (a MEPE Query + Interrupted error will occur, but the instrument will be placed back into its normal + talk/listen mode). Turning the waveform screen display mode off + (``:DISPLAY:WAVEFORM OFF``) will increase waveform throughput during streaming mode. + While in streaming mode, two extreme conditions can occur. If the waveform records are + being acquired slowly (high resolution), configure the controller for long time-out + thresholds, as the data is not sent out until each complete record is acquired. If the + waveform records are being acquired rapidly (low resolution), and the controller is + not reading the data off the bus fast enough, the trigger rate is slowed to allow each + waveform to be sent sequentially. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVEStream?`` query. + - Using the ``.verify(value)`` method will send the ``CURVEStream?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CURVEStream value`` command. + + **SCPI Syntax:** + + :: + + - CURVEStream {|} + - CURVEStream? + """ + return self._curvestream + + @property + def custom(self) -> Custom: + """Return the ``CUSTOM`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``CUSTOM?`` query. + - Using the ``.verify(value)`` method will send the ``CUSTOM?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.gate``: The ``CUSTOM:GATE`` command tree. + - ``.select``: The ``CUSTOM:SELECT`` command tree. + """ + return self._custom + + @property + def d(self) -> Dict[int, DigitalBit]: + """Return the ``D`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``D?`` query. + - Using the ``.verify(value)`` method will send the ``D?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.label``: The ``D:LABEL`` command. + - ``.position``: The ``D:POSition`` command. + - ``.probe``: The ``D:PROBE`` command tree. + - ``.threshold``: The ``D:THRESHold`` command. + """ + return self._d + + @property + def data(self) -> Data: + """Return the ``DATa`` command. + + **Description:** + - This command sets or queries the format and location of the waveform data that is + transferred with the CURVE command. + + **Usage:** + - Using the ``.query()`` method will send the ``DATa?`` query. + - Using the ``.verify(value)`` method will send the ``DATa?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DATa value`` command. + + **SCPI Syntax:** + + :: + + - DATa {INIT|SNAp} + - DATa? + + **Info:** + - ``INIT`` initializes the waveform data parameters to their factory defaults except for + ``DATa:STOP``, which isset to the current acquisition record length. + - ``SNAp`` Sets ``DATa:STARt`` and ``DATa:STOP`` to match the current waveform cursor + positions of WAVEVIEW1 CURSOR1 if these waveform cursors are currently on. If these + waveform cursors are not on when the ``DATa SNAp`` command is sent, it is silently + ignored and ``DATa:STARt`` and ``:STOP`` remain unchanged. + + Sub-properties: + - ``.destination``: The ``DATa:DESTination`` command. + - ``.encdg``: The ``DATa:ENCdg`` command. + - ``.framestart``: The ``DATa:FRAMESTARt`` command. + - ``.framestop``: The ``DATa:FRAMESTOP`` command. + - ``.source``: The ``DATa:SOUrce`` command. + - ``.start``: The ``DATa:STARt`` command. + - ``.stop``: The ``DATa:STOP`` command. + - ``.syncsources``: The ``DATa:SYNCSOUrces`` command. + """ + return self._data + + @property + def date(self) -> Date: + """Return the ``DATE`` command. + + **Description:** + - This command specifies the date the oscilloscope displays. + + **Usage:** + - Using the ``.query()`` method will send the ``DATE?`` query. + - Using the ``.verify(value)`` method will send the ``DATE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DATE value`` command. + + **SCPI Syntax:** + + :: + + - DATE + - DATE? + + **Info:** + - ```` is a date in the form 'yyyy-mm-dd' where yyyy refers to a four-digit + year number, mm refers to a two-digit month number from 01 to 12, and dd refers to a + two-digit day number in the month. + """ + return self._date + + @property + def ddt(self) -> Ddt: + """Return the ``*DDT`` command. + + **Description:** + - This command allows you to specify a command or a list of commands that are executed + when the instrument receives a TRG command. Define Device Trigger ( ``*DDT`` ) is a + special alias that the ``*TRG`` command uses. + + **Usage:** + - Using the ``.query()`` method will send the ``*DDT?`` query. + - Using the ``.verify(value)`` method will send the ``*DDT?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*DDT value`` command. + + **SCPI Syntax:** + + :: + + - *DDT {|} + - *DDT? + + **Info:** + - ```` is a complete sequence of program messages. The messages can contain only + valid commands that must be separated by semicolons and must follow all rules for + concatenating commands. The sequence must be less than or equal to 80 characters. The + format of this argument is always returned as a query. + - ```` is a complete sequence of program messages. The messages can contain + only valid commands that must be separated by semicolons and must follow all rules for + concatenating commands. The sequence must be less than or equal to 80 characters. + """ + return self._ddt + + @property + def delete(self) -> Delete: + """Return the ``DELEte`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``DELEte?`` query. + - Using the ``.verify(value)`` method will send the ``DELEte?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.setup``: The ``DELEte:SETUp`` command. + - ``.waveform``: The ``DELEte:WAVEform`` command. + """ + return self._delete + + @property + def dese(self) -> Dese: + """Return the ``DESE`` command. + + **Description:** + - This command sets and queries the bits in the Device Event Status Enable Register + (DESER). The DESER is the mask that determines whether events are reported to the + Standard Event Status Register (SESR), and entered into the Event Queue. For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``DESE?`` query. + - Using the ``.verify(value)`` method will send the ``DESE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DESE value`` command. + + **SCPI Syntax:** + + :: + + - DESE + - DESE? + + **Info:** + - ```` The binary bits of the DESER are set according to this value, which ranges + from 1 through 255. For example, ``DESE 209`` sets the DESER to the binary value + 11010001 (that is, the most significant bit in the register is set to 1, the next most + significant bit to 1, the next bit to 0, etc.). + """ + return self._dese + + @property + def diag(self) -> Diag: + """Return the ``DIAg`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``DIAg?`` query. + - Using the ``.verify(value)`` method will send the ``DIAg?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.control``: The ``DIAg:CONTROL`` command tree. + - ``.execute``: The ``DIAg:EXECUTE`` command. + - ``.failures``: The ``DIAg:FAILURES`` command tree. + - ``.item``: The ``DIAg:ITEM`` command. + - ``.level``: The ``DIAg:LEVEL`` command. + - ``.loops``: The ``DIAg:LOOPS`` command. + - ``.name``: The ``DIAg:NAMe`` command. + - ``.numitems``: The ``DIAg:NUMITEMS`` command. + - ``.results``: The ``DIAg:RESults`` command. + - ``.select``: The ``DIAg:SELect`` command tree. + - ``.state``: The ``DIAg:STATE`` command. + - ``.stop``: The ``DIAg:STOP`` command. + """ + return self._diag + + @property + def display(self) -> Display: + """Return the ``DISplay`` command. + + **Description:** + - This query-only command returns the current Display settings. + + **Usage:** + - Using the ``.query()`` method will send the ``DISplay?`` query. + - Using the ``.verify(value)`` method will send the ``DISplay?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - DISplay? + + Sub-properties: + - ``.clock``: The ``DISplay:CLOCk`` command. + - ``.color``: The ``DISplay:COLOr`` command. + - ``.data``: The ``DISplay:DATa`` command. + - ``.deskew``: The ``DISplay:DESKew`` command. + - ``.digital``: The ``DISplay:DIGital`` command tree. + - ``.dpojetplot``: The ``DISplay:DPOJETPlot`` command. + - ``.filter``: The ``DISplay:FILTer`` command. + - ``.format``: The ``DISplay:FORMat`` command. + - ``.graticule``: The ``DISplay:GRAticule`` command. + - ``.intensity``: The ``DISplay:INTENSITy`` command. + - ``.persistence``: The ``DISplay:PERSistence`` command. + - ``.screentext``: The ``DISplay:SCREENTExt`` command. + - ``.showremote``: The ``DISplay:SHOWREmote`` command. + - ``.style``: The ``DISplay:STYle`` command. + - ``.trigbar``: The ``DISplay:TRIGBar`` command. + - ``.trigt``: The ``DISplay:TRIGT`` command. + - ``.varpersist``: The ``DISplay:VARpersist`` command. + - ``.waveform``: The ``DISplay:WAVEform`` command. + """ + return self._display + + @property + def email(self) -> Email: + """Return the ``EMail`` command. + + **Description:** + - This command (no query form) sends a test e-mail message or sets the current e-mail + sent count to zero. + + **Usage:** + - Using the ``.write(value)`` method will send the ``EMail value`` command. + + **SCPI Syntax:** + + :: + + - EMail {TESt|RESET} + + **Info:** + - ``TESt`` argument sends a test e-mail message. + - ``RESET`` argument sets the e-mail sent count to zero. + + Sub-properties: + - ``.attempts``: The ``EMail:ATTempts`` command. + - ``.authlogin``: The ``EMail:AUTHLogin`` command. + - ``.authpassword``: The ``EMail:AUTHPassword`` command. + - ``.count``: The ``EMail:COUNt`` command. + - ``.from``: The ``EMail:FROm`` command. + - ``.hostwanted``: The ``EMail:HOSTwanted`` command. + - ``.image``: The ``EMail:IMAGe`` command. + - ``.limit``: The ``EMail:LIMit`` command. + - ``.mask``: The ``EMail:MASK`` command. + - ``.maxsize``: The ``EMail:MAXSize`` command. + - ``.measurement``: The ``EMail:MEASUrement`` command. + - ``.numemails``: The ``EMail:NUMEMails`` command. + - ``.smtpport``: The ``EMail:SMTPPort`` command. + - ``.smtpserver``: The ``EMail:SMTPServer`` command. + - ``.status``: The ``EMail:STATUS`` command. + - ``.timeout``: The ``EMail:TIMEOut`` command. + - ``.to``: The ``EMail:TO`` command. + - ``.trigger``: The ``EMail:TRIGger`` command. + - ``.waveform``: The ``EMail:WAVEform`` command. + """ + return self._email + + @property + def errordetector(self) -> Errordetector: + """Return the ``ERRORDetector`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.alert``: The ``ERRORDetector:ALERT`` command. + - ``.aligncharacter``: The ``ERRORDetector:ALIGNCHARacter`` command. + - ``.alignprimitive``: The ``ERRORDetector:ALIGNPRIMitive`` command. + - ``.bit``: The ``ERRORDetector:BIT`` command tree. + - ``.bitrate``: The ``ERRORDetector:BITRate`` command. + - ``.channel``: The ``ERRORDetector:CHANnel`` command. + - ``.duration``: The ``ERRORDetector:DURATION`` command tree. + - ``.errorlimit``: The ``ERRORDetector:ERRORLIMIT`` command. + - ``.file``: The ``ERRORDetector:FILE`` command tree. + - ``.fontsize``: The ``ERRORDetector:FONTSIze`` command. + - ``.frame``: The ``ERRORDetector:FRAme`` command. + - ``.maxaligns``: The ``ERRORDetector:MAXALIGNS`` command. + - ``.patternname``: The ``ERRORDetector:PATTERNNAME`` command. + - ``.preset``: The ``ERRORDetector:PREset`` command. + - ``.saveimage``: The ``ERRORDetector:SAVEIMAGE`` command. + - ``.savewfm``: The ``ERRORDetector:SAVEWFM`` command. + - ``.scrambled``: The ``ERRORDetector:SCRAMBLED`` command. + - ``.sendemail``: The ``ERRORDetector:SENDEMAIL`` command. + - ``.signaltype``: The ``ERRORDetector:SIGnaltype`` command. + - ``.ssc``: The ``ERRORDetector:SSC`` command. + - ``.standard``: The ``ERRORDetector:STANdard`` command. + - ``.state``: The ``ERRORDetector:STATE`` command. + - ``.status``: The ``ERRORDetector:STATus`` command. + - ``.stopwhen``: The ``ERRORDetector:STOPWHEN`` command. + - ``.symbol``: The ``ERRORDetector:SYMBOL`` command. + - ``.timeformat``: The ``ERRORDetector:TIMEformat`` command. + - ``.type``: The ``ERRORDetector:TYPe`` command. + """ + return self._errordetector + + @property + def ese(self) -> Ese: + """Return the ``*ESE`` command. + + **Description:** + - This command sets and queries the bits in the Event Status Enable Register (ESER). The + ESER prevents events from being reported to the Status Byte Register (STB). For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*ESE?`` query. + - Using the ``.verify(value)`` method will send the ``*ESE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*ESE value`` command. + + **SCPI Syntax:** + + :: + + - *ESE + - *ESE? + + **Info:** + - ```` specifies the binary bits of the ESER according to this value, which ranges + from 0 through 255. + """ + return self._ese + + @property + def esr(self) -> Esr: + """Return the ``*ESR`` command. + + **Description:** + - This query-only command returns the contents of the Standard Event Status Register + (SESR). ``*ESR?`` also clears the SESR (since reading the SESR clears it). For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*ESR?`` query. + - Using the ``.verify(value)`` method will send the ``*ESR?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *ESR? + """ + return self._esr + + @property + def event(self) -> Event: + """Return the ``EVENT`` command. + + **Description:** + - This query-only command returns an event code from the Event Queue that provides + information about the results of the last ESR read. ``EVENT?`` also removes the + returned value from the Event Queue. + + **Usage:** + - Using the ``.query()`` method will send the ``EVENT?`` query. + - Using the ``.verify(value)`` method will send the ``EVENT?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVENT? + """ + return self._event + + @property + def evmsg(self) -> Evmsg: + """Return the ``EVMsg`` command. + + **Description:** + - This query-only command removes a single event code from the Event Queue that is + associated with the results of the last ESR read and returns the event code with an + explanatory message. For more information, see Event Handling. + + **Usage:** + - Using the ``.query()`` method will send the ``EVMsg?`` query. + - Using the ``.verify(value)`` method will send the ``EVMsg?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVMsg? + """ + return self._evmsg + + @property + def evqty(self) -> Evqty: + """Return the ``EVQty`` command. + + **Description:** + - This query-only command returns the number of events that are enabled in the queue. + This is useful when using the ALLEV query, since it lets you know exactly how many + events will be returned. + + **Usage:** + - Using the ``.query()`` method will send the ``EVQty?`` query. + - Using the ``.verify(value)`` method will send the ``EVQty?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVQty? + """ + return self._evqty + + @property + def export(self) -> Export: + """Return the ``EXPort`` command. + + **Description:** + - This command sends a copy of the waveform to the file path specified by + ``EXPORT:FILENAME``. The ``EXPort`` query returns image format and file information. + + **Usage:** + - Using the ``.query()`` method will send the ``EXPort?`` query. + - Using the ``.verify(value)`` method will send the ``EXPort?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``EXPort value`` command. + + **SCPI Syntax:** + + :: + + - EXPort STARt + - EXPort? + + **Info:** + - ``STARt`` initiates the export. + + Sub-properties: + - ``.filename``: The ``EXPort:FILEName`` command. + - ``.format``: The ``EXPort:FORMat`` command. + - ``.palette``: The ``EXPort:PALEtte`` command. + - ``.readouts``: The ``EXPort:READOuts`` command. + - ``.view``: The ``EXPort:VIEW`` command. + """ + return self._export + + @property + def factory(self) -> Factory: + """Return the ``FACtory`` command. + + **Description:** + - This command (no query form) resets the instrument to its factory default settings. + This command is equivalent to pressing the DEFAULT SETUP button located on the + instrument front panel or selecting Default Setup from the File menu. This command + Performs the following in addition to what is done for the ``*RST`` command: Clears + any pending OPC operations. Resets the following IEEE488.2 registers: ``*ESE 0`` + (Event Status Enable Register) ``*SRE 0`` (Service Request Enable Register) DESE 255 + (Device Event Status Enable Register) ``*PSC 1`` (Power-on Status Clear Flag) Deletes + all defined aliases. Enables command headers (``:HEADer 1``). + + **Usage:** + - Using the ``.write()`` method will send the ``FACtory`` command. + + **SCPI Syntax:** + + :: + + - FACtory + """ + return self._factory + + @property + def fastacq(self) -> Fastacq: + """Return the ``FASTAcq`` command. + + **Description:** + - This query-only command returns the state of Fast Acquisitions. This command is + equivalent to pressing the FASTACQ button on the front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``FASTAcq?`` query. + - Using the ``.verify(value)`` method will send the ``FASTAcq?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - FASTAcq? + + Sub-properties: + - ``.hiacqrate``: The ``FASTAcq:HIACQRATE`` command. + - ``.state``: The ``FASTAcq:STATE`` command. + """ + return self._fastacq + + @property + def filesystem(self) -> Filesystem: + """Return the ``FILESystem`` command. + + **Description:** + - This query-only command returns the directory listing of the current working + directory. This query is the same as the ``FILESystem:DIR?`` query. + + **Usage:** + - Using the ``.query()`` method will send the ``FILESystem?`` query. + - Using the ``.verify(value)`` method will send the ``FILESystem?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - FILESystem? + + Sub-properties: + - ``.copy``: The ``FILESystem:COPy`` command. + - ``.cwd``: The ``FILESystem:CWD`` command. + - ``.delete``: The ``FILESystem:DELEte`` command. + - ``.dir``: The ``FILESystem:DIR`` command. + - ``.mkdir``: The ``FILESystem:MKDir`` command. + - ``.print``: The ``FILESystem:PRInt`` command. + - ``.readfile``: The ``FILESystem:READFile`` command. + - ``.rename``: The ``FILESystem:REName`` command. + - ``.rmdir``: The ``FILESystem:RMDir`` command. + - ``.writefile``: The ``FILESystem:WRITEFile`` command. + """ + return self._filesystem + + @property + def gpibusb(self) -> Gpibusb: + """Return the ``GPIBUsb`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``GPIBUsb?`` query. + - Using the ``.verify(value)`` method will send the ``GPIBUsb?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``GPIBUsb:ADDress`` command. + - ``.hwversion``: The ``GPIBUsb:HWVersion`` command. + - ``.id``: The ``GPIBUsb:ID`` command. + """ + return self._gpibusb + + @property + def hardcopy(self) -> Hardcopy: + """Return the ``HARDCopy`` command. + + **Description:** + - This command sends a copy of the screen display to the port specified by + ``HARDCopy:PORT``. This command is equivalent to pressing the PRINT button on the + front panel. When printing to a file, the file format can be BMP, JPG, PNG, PCX or + TIFF. The format of the saved screen capture is set by the ``EXPORT:FORMAT`` command. + The file format setting is persistent, and will not be affected by a default setup or + ``*RST`` command sent to the instrument. The ``HARDCopy`` query returns the port and + file path. + + **Usage:** + - Using the ``.query()`` method will send the ``HARDCopy?`` query. + - Using the ``.verify(value)`` method will send the ``HARDCopy?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HARDCopy value`` command. + + **SCPI Syntax:** + + :: + + - HARDCopy STARt + - HARDCopy? + + **Info:** + - ``STARt`` initiates a screen copy to a file or the default system printer, as + specified by the ``:HARDCopy:PORT`` selection. The default system printer is set + within the Windows operating system. If you need information about how to set the + default system printer, refer to Microsoft Windows online help. + + Sub-properties: + - ``.filename``: The ``HARDCopy:FILEName`` command. + - ``.layout``: The ``HARDCopy:LAYout`` command. + - ``.palette``: The ``HARDCopy:PALEtte`` command. + - ``.port``: The ``HARDCopy:PORT`` command. + - ``.readouts``: The ``HARDCopy:READOuts`` command. + - ``.view``: The ``HARDCopy:VIEW`` command. + """ + return self._hardcopy + + @property + def hdr(self) -> Hdr: + """Return the ``HDR`` command. + + **Description:** + - This command is identical to the HEADer query and is included for backward + compatibility purposes. + + **Usage:** + - Using the ``.query()`` method will send the ``HDR?`` query. + - Using the ``.verify(value)`` method will send the ``HDR?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HDR value`` command. + + **SCPI Syntax:** + + :: + + - HDR {|OFF|ON} + - HDR? + + **Info:** + - ```` = 0 sets the Response Header Enable State to false; any other value sets + this state to true, which causes the instrument to send headers on query responses. + - ``OFF`` sets the Response Header Enable State to false. This causes the instrument to + omit headers on query responses, so that only the argument is returned. + - ``ON`` sets the Response Header Enable State to true. This causes the instrument to + include headers on applicable query responses. You can then use the query response as + a command. + """ + return self._hdr + + @property + def header(self) -> Header: + """Return the ``HEADer`` command. + + **Description:** + - This command sets or queries the Response Header Enable State that causes the + instrument to either include or omit headers on query responses. Whether the long or + short form of header keywords and enumerations are returned is dependent upon the + state of ``:VERBose``. + + **Usage:** + - Using the ``.query()`` method will send the ``HEADer?`` query. + - Using the ``.verify(value)`` method will send the ``HEADer?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HEADer value`` command. + + **SCPI Syntax:** + + :: + + - HEADer {|OFF|ON} + - HEADer? + + **Info:** + - ```` = 0 sets the Response Header Enable State to false; any other value sets + this state to true. + - ``OFF`` sets the Response Header Enable State to false. This causes the instrument to + omit headers on query responses, so that only the argument is returned. + - ``ON`` sets the Response Header Enable State to true. This causes the instrument to + include headers on applicable query responses. You can then use the query response as + a command. + """ + return self._header + + @property + def histogram(self) -> Histogram: + """Return the ``HIStogram`` command. + + **Description:** + - This query-only query returns all histogram parameters; it queries the state of all + histogram parameters that the user can set. This command is equivalent to selecting + Waveform Histograms from the Measure menu. + + **Usage:** + - Using the ``.query()`` method will send the ``HIStogram?`` query. + - Using the ``.verify(value)`` method will send the ``HIStogram?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - HIStogram? + + Sub-properties: + - ``.box``: The ``HIStogram:BOX`` command. + - ``.boxpcnt``: The ``HIStogram:BOXPcnt`` command. + - ``.count``: The ``HIStogram:COUNt`` command. + - ``.data``: The ``HIStogram:DATa`` command. + - ``.display``: The ``HIStogram:DISplay`` command. + - ``.function``: The ``HIStogram:FUNCtion`` command. + - ``.mode``: The ``HIStogram:MODe`` command. + - ``.size``: The ``HIStogram:SIZe`` command. + - ``.source``: The ``HIStogram:SOUrce`` command. + - ``.state``: The ``HIStogram:STATE`` command. + """ + return self._histogram + + @property + def horizontal(self) -> Horizontal: + """Return the ``HORizontal`` command. + + **Description:** + - Queries the current horizontal settings. + + **Usage:** + - Using the ``.query()`` method will send the ``HORizontal?`` query. + - Using the ``.verify(value)`` method will send the ``HORizontal?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - HORizontal? + + Sub-properties: + - ``.acqduration``: The ``HORizontal:ACQDURATION`` command. + - ``.acqlength``: The ``HORizontal:ACQLENGTH`` command. + - ``.digital``: The ``HORizontal:DIGital`` command tree. + - ``.divisions``: The ``HORizontal:DIVisions`` command. + - ``.fastframe``: The ``HORizontal:FASTframe`` command. + - ``.main``: The ``HORizontal:MAIn`` command. + - ``.mode``: The ``HORizontal:MODE`` command. + - ``.position``: The ``HORizontal:POSition`` command. + - ``.roll``: The ``HORizontal:ROLL`` command. + - ``.timestamp``: The ``HORizontal:TIMEStamp`` command tree. + """ + return self._horizontal + + @property + def id(self) -> Id: + """Return the ``ID`` command. + + **Description:** + - This query-only command returns identifying information about the instrument and + related firmware similar to that returned by the ``*IDN?`` IEEE488.2 common query but + does not include the instrument serial number. + + **Usage:** + - Using the ``.query()`` method will send the ``ID?`` query. + - Using the ``.verify(value)`` method will send the ``ID?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ID? + """ + return self._id + + @property + def idn(self) -> Idn: + """Return the ``*IDN`` command. + + **Description:** + - This query-only command returns the instrument identification code. + + **Usage:** + - Using the ``.query()`` method will send the ``*IDN?`` query. + - Using the ``.verify(value)`` method will send the ``*IDN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *IDN? + """ + return self._idn + + @property + def limit(self) -> Limit: + """Return the ``LIMit`` command. + + **Description:** + - This query-only command returns all settings for the Limit commands. + + **Usage:** + - Using the ``.query()`` method will send the ``LIMit?`` query. + - Using the ``.verify(value)`` method will send the ``LIMit?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - LIMit? + + Sub-properties: + - ``.beep``: The ``LIMit:BEEP`` command. + - ``.compare``: The ``LIMit:COMpare`` command. + - ``.email``: The ``LIMit:EMail`` command. + - ``.hardcopy``: The ``LIMit:HARDCopy`` command. + - ``.highlighthits``: The ``LIMit:HIGHLIGHTHits`` command. + - ``.lock``: The ``LIMit:LOCk`` command. + - ``.log``: The ``LIMit:LOG`` command. + - ``.savewfm``: The ``LIMit:SAVEWFM`` command. + - ``.srq``: The ``LIMit:SRQ`` command. + - ``.state``: The ``LIMit:STATE`` command. + - ``.status``: The ``LIMit:STATus`` command. + - ``.stoponviolation``: The ``LIMit:STOPOnviolation`` command. + - ``.template``: The ``LIMit:TEMPlate`` command tree. + """ + return self._limit + + @property + def linktraining(self) -> Linktraining: + """Return the ``LINKTRaining`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``LINKTRaining?`` query. + - Using the ``.verify(value)`` method will send the ``LINKTRaining?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.acqtime``: The ``LINKTRaining:ACQTime`` command. + - ``.armscope``: The ``LINKTRaining:ARMscope`` command. + - ``.decode``: The ``LINKTRaining:DECOde`` command. + - ``.equalizationch``: The ``LINKTRaining:EQUalizationCH`` command. + - ``.lane``: The ``LINKTRaining:LANE`` command. + - ``.mark``: The ``LINKTRaining:MARK`` command. + - ``.setup``: The ``LINKTRaining:SETUP`` command. + """ + return self._linktraining + + @property + def lock(self) -> Lock: + """Return the ``LOCk`` command. + + **Description:** + - This command enables or disables the touch screen and all front panel buttons and + knobs. There is no front panel equivalent. When the front panel is locked, the front + panel commands will not work and will not generate error events. You can work around a + locked front panel, by using the appropriate programmatic interface commands, instead + of the front-panel commands. For example, to set the trigger level to 50%, you could + use ``TRIGger:A SETLevel``. To force a trigger, you could use TRIGger FORCe. + + **Usage:** + - Using the ``.query()`` method will send the ``LOCk?`` query. + - Using the ``.verify(value)`` method will send the ``LOCk?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``LOCk value`` command. + + **SCPI Syntax:** + + :: + + - LOCk {ALL|NONe} + - LOCk? + + **Info:** + - ``ALL`` disables all front panel controls and the touch screen. + - ``NONe`` enables all front panel controls and the touch screen. The UNLock ALL command + only unlocks the front panel controls. + - ``NONe`` command has no effect. For more information, see the ANSI/IEEE Std 488.1-1987 + Standard Digital Interface for Programmable Instrumentation, section 2.8.3 on RL State + Descriptions. + """ + return self._lock + + @property + def lrn(self) -> Lrn: + """Return the ``*LRN`` command. + + **Description:** + - This query-only command returns the commands that list the instrument settings, + allowing you to record or 'learn' the current instrument settings. You can use these + commands to return the instrument to the state it was in when you made the ``*LRN?`` + query. This command is identical to the SET command. + + **Usage:** + - Using the ``.query()`` method will send the ``*LRN?`` query. + - Using the ``.verify(value)`` method will send the ``*LRN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *LRN? + """ + return self._lrn + + @property + def mark(self) -> Mark: + """Return the ``MARK`` command. + + **Description:** + - Moves to the next or previous reference mark on the waveform. Returns the current mark + position. + + **Usage:** + - Using the ``.query()`` method will send the ``MARK?`` query. + - Using the ``.verify(value)`` method will send the ``MARK?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``MARK value`` command. + + **SCPI Syntax:** + + :: + + - MARK {NEXT|PREVious} + - MARK? + + **Info:** + - ``NEXT`` moves to the next reference mark on the right. + - ``PREVious`` moves to the next reference mark on the left. + + Sub-properties: + - ``.create``: The ``MARK:CREATE`` command. + - ``.delete``: The ``MARK:DELEte`` command. + - ``.free``: The ``MARK:FREE`` command. + - ``.selected``: The ``MARK:SELECTED`` command tree. + - ``.total``: The ``MARK:TOTal`` command. + """ + return self._mark + + @property + def mask(self) -> Mask: + """Return the ``MASK`` command. + + **Description:** + - This query-only command returns the states of all settable mask parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``MASK?`` query. + - Using the ``.verify(value)`` method will send the ``MASK?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MASK? + + Sub-properties: + - ``.autoadjust``: The ``MASK:AUTOAdjust`` command. + - ``.autoset``: The ``MASK:AUTOSet`` command tree. + - ``.copy``: The ``MASK:COPy`` command tree. + - ``.count``: The ``MASK:COUNt`` command. + - ``.display``: The ``MASK:DISplay`` command. + - ``.filter``: The ``MASK:FILTer`` command. + - ``.highlighthits``: The ``MASK:HIGHLIGHTHits`` command. + - ``.invert``: The ``MASK:INVert`` command. + - ``.lock``: The ``MASK:LOCk`` command. + - ``.margin``: The ``MASK:MARgin`` command tree. + - ``.maskpre``: The ``MASK:MASKPRE`` command tree. + - ``.polarity``: The ``MASK:POLarity`` command. + - ``.seg``: The ``MASK:SEG`` command. + - ``.source``: The ``MASK:SOUrce`` command. + - ``.standard``: The ``MASK:STANdard`` command. + - ``.stoponviolation``: The ``MASK:STOPOnviolation`` command. + - ``.test``: The ``MASK:TESt`` command tree. + - ``.user``: The ``MASK:USER`` command tree. + """ + return self._mask + + @property + def math(self) -> Dict[int, MathItem]: + """Return the ``MATH`` command. + + **Description:** + - This query-only command returns the definition for the math waveform specified by , + which ranges from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``MATH?`` query. + - Using the ``.verify(value)`` method will send the ``MATH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MATH? + + Sub-properties: + - ``.define``: The ``MATH:DEFine`` command. + - ``.filter``: The ``MATH:FILTer`` command tree. + - ``.label``: The ``MATH:LABel`` command tree. + - ``.numavg``: The ``MATH:NUMAVg`` command. + - ``.spectral``: The ``MATH:SPECTral`` command. + - ``.threshold``: The ``MATH:THRESHold`` command. + - ``.unitstring``: The ``MATH:UNITString`` command. + - ``.vertical``: The ``MATH:VERTical`` command tree. + """ + return self._math + + @property + def matharbflt(self) -> Dict[int, MatharbfltItem]: + """Return the ``MATHArbflt`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MATHArbflt?`` query. + - Using the ``.verify(value)`` method will send the ``MATHArbflt?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.filepath``: The ``MATHArbflt:FILepath`` command. + - ``.readfile``: The ``MATHArbflt:READFile`` command. + """ + return self._matharbflt + + @property + def mathvar(self) -> Mathvar: + """Return the ``MATHVAR`` command. + + **Description:** + - Queries both numerical values you can use within math expressions. + + **Usage:** + - Using the ``.query()`` method will send the ``MATHVAR?`` query. + - Using the ``.verify(value)`` method will send the ``MATHVAR?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MATHVAR? + + Sub-properties: + - ``.var``: The ``MATHVAR:VAR`` command. + """ + return self._mathvar + + @property + def mch(self) -> Dict[int, MchItem]: + """Return the ``MCH`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MCH?`` query. + - Using the ``.verify(value)`` method will send the ``MCH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.minamplitude``: The ``MCH:MINAMPLitude`` command. + - ``.maxamplitude``: The ``MCH:MAXAMPLitude`` command. + """ + return self._mch + + @property + def measurement(self) -> Measurement: + """Return the ``MEASUrement`` command. + + **Description:** + - This query-only command returns all measurement parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``MEASUrement?`` query. + - Using the ``.verify(value)`` method will send the ``MEASUrement?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MEASUrement? + + Sub-properties: + - ``.annotation``: The ``MEASUrement:ANNOTation`` command tree. + - ``.dpojetstatistics``: The ``MEASUrement:DPOJETSTATistics`` command. + - ``.gating``: The ``MEASUrement:GATing`` command. + - ``.immed``: The ``MEASUrement:IMMed`` command. + - ``.meas``: The ``MEASUrement:MEAS`` command. + - ``.method``: The ``MEASUrement:METHod`` command. + - ``.noise``: The ``MEASUrement:NOISe`` command. + - ``.reflevel``: The ``MEASUrement:REFLevel`` command. + - ``.source1``: The ``MEASUrement:SOUrce1`` command tree. + - ``.statistics``: The ``MEASUrement:STATIstics`` command tree. + """ + return self._measurement + + @property + def multiscope(self) -> Multiscope: + """Return the ``MULTiscope`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MULTiscope?`` query. + - Using the ``.verify(value)`` method will send the ``MULTiscope?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.config``: The ``MULTiscope:CONFig`` command. + - ``.exit``: The ``MULTiscope:EXIT`` command. + - ``.restart``: The ``MULTiscope:RESTART`` command. + - ``.status``: The ``MULTiscope:STATUS`` command. + """ + return self._multiscope + + @property + def newpass(self) -> Newpass: + """Return the ``NEWpass`` command. + + **Description:** + - This command (no query form) changes the password that enables access to password + protected data. The PASSWord command must be successfully executed before using this + command or an execution error will be generated. + + **Usage:** + - Using the ``.write(value)`` method will send the ``NEWpass value`` command. + + **SCPI Syntax:** + + :: + + - NEWpass + + **Info:** + - ```` is the new password, which can contain up to 10 characters. + """ + return self._newpass + + @property + def opc(self) -> Opc: + """Return the ``*OPC`` command. + + **Description:** + - This command generates the operation complete message in the Standard Event Status + Register (SESR) when all pending commands that generate an OPC message are complete. + The ``*OPC?`` query places the ASCII character '1' into the output queue when all such + OPC commands are complete. The ``*OPC?`` response is not available to read until all + pending operations finish. For a complete discussion of the use of these registers and + the output queue, see Registers and Queues. The ``*OPC`` command allows you to + synchronize the operation of the instrument with your application program. For more + information, see Synchronization Methods. Refer to the Oscilloscope operations that + can generate OPC table for a list of commands that generate an OPC message. + + **Usage:** + - Using the ``.query()`` method will send the ``*OPC?`` query. + - Using the ``.verify(value)`` method will send the ``*OPC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write()`` method will send the ``*OPC`` command. + + **SCPI Syntax:** + + :: + + - *OPC + - *OPC? + """ + return self._opc + + @property + def opcextended(self) -> Opcextended: + """Return the ``OPCEXtended`` command. + + **Description:** + - This command sets or queries the behavior of OPC commands and queries. When enabled, + operations referenced in the ``*OPC`` command description notify when their overlapped + functionality has completed. When disabled, the operations notify as they have in the + past (only once updated in the instrument state database). Command synchronization + Operation PI sequence Single sequence with ttOff ``:ACQUIRE:STOPAFTER SEQUENCE`` + ``:ACQUIRE:STATE 1``;``*OPC?``;``:WFMOUTPRE:XZERO?`` Single sequence with Measurement + Annotation ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MEASUREMENT:MEAS1:STATE 1``;TYPE PK2PK + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:ANNOTATION:X1?`` Single sequence with + Cursors ``:ACQUIRE:STOPAFTER SEQUENCE``;``:CURSOR:FUNCTION WAVEFORM``;SOURCE CH1;STATE + 1 ``:ACQUIRE:STATE 1``;``*OPC?`` Single sequence with Math + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MATH1:DEFINE`` 'Ch1``*Ch2``';``:SELECT:MATH1 1`` + ``:ACQUIRE:STATE 1``;``*OPC?`` Default setup followed by Save Waveform + ``*RST``;``*OPC?`` ``:SAVE:WAVEFORM`` CH1,REF1;``*WAI`` ``:SELECT:REF1 1`` Math On + during Acq Run mode ``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 ``:MATH1:DEFINE`` + 'CH1``*CH1``';``:SELECT:MATH1 1`` ``:DATA:ENCDG ASCII``;SOURCE REF1;START 1;STOP 10 + ``:SELECT:MATH1 0`` {Wait a couple sec..longer in release mode?} + ``:SELECT:MATH1 1``;``*WAI``;``:CURVE?`` Save Math to Ref + ``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 ``:MATH1:DEFINE`` + 'CH1``*CH1``';``:SELECT:MATH1 1``;``*WAI``; ``:SAVE:WAVEFORM`` + MATH1,REF1;``:SELECT:REF1 1`` ``:DATA:ENCDG ASCII``;SOURCE REF1;START 1;STOP 10 CURVE? + Trigger state ``:ACQUIRE:STOPAFTER SEQUENCE`` + ``:ACQUIRE:STATE 1``;``*OPC?``;``:TRIGGER:STATE?`` Single sequence with Measurement + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MEASUREMENT:MEAS1:STATE 1``;TYPE AMPLITUDE + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:MEAS1:VALUE?`` Single sequence with + Measurement on Math + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 + ``:MATH1:DEFINE`` 'CH1``*CH1``';``:SELECT:MATH1 1`` + ``:MEASUREMENT:MEAS1:STATE 1``;TYPE AMPLITUDE;SOURCE MATH1 + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:MEAS1:VALUE?`` Acq Count + ``*RST``;``*WAI``;``:ACQUIRE:NUMACQ?`` Acq state after single sequence + ``:ACQUIRE:STOPAFTER SEQUENCE``;STATE 1;``*WAI``;``:ACQUIRE:STATE?`` + + **Usage:** + - Using the ``.query()`` method will send the ``OPCEXtended?`` query. + - Using the ``.verify(value)`` method will send the ``OPCEXtended?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``OPCEXtended value`` command. + + **SCPI Syntax:** + + :: + + - OPCEXtended {|OFF|ON} + - OPCEXtended? + + **Info:** + - ``ON`` turns on extended OPC behavior. + - ``OFF`` turns off extended OPC behavior. + - ```` = 0 turns off extended OPC behavior; any other value turns on extended OPC + behavior. + """ + return self._opcextended + + @property + def opt(self) -> Opt: + """Return the ``*OPT`` command. + + **Description:** + - This query-only command returns a comma separated list of installed options as an + arbitrary ASCII string (no quotes) of the form: + ``:``,``:``... The last + section of each entry (the text following the last hyphen) indicates the license type. + If no options are found, NONE is returned. + + **Usage:** + - Using the ``.query()`` method will send the ``*OPT?`` query. + - Using the ``.verify(value)`` method will send the ``*OPT?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *OPT? + """ + return self._opt + + @property + def password(self) -> Password: + """Return the ``PASSWord`` command. + + **Description:** + - This command (no query form) enables the ``*PUD`` and NEWpass set commands. Sending + ``PASSWord`` without any arguments disables these same commands. Once the password is + successfully entered, the ``*PUD`` and NEWpass commands are enabled until the + instrument is powered off, or until the FACtory command, the ``PASSWord`` command with + no arguments, or the ``*RST`` command is issued. To change the password, you must + first enter the valid password with the ``PASSWord`` command and then change to your + new password with the NEWpass command. Remember that the password is case sensitive. + + **Usage:** + - Using the ``.write(value)`` method will send the ``PASSWord value`` command. + + **SCPI Syntax:** + + :: + + - PASSWord + + **Info:** + - ```` is the password, which can contain up to 10 characters. The factory + default password is 'XYZZY' and is always valid. + """ + return self._password + + @property + def pcenable(self) -> Pcenable: + """Return the ``PCENable`` command. + + **Description:** + - Sets or queries the enable state of the User Preference Probe compensation. + + **Usage:** + - Using the ``.query()`` method will send the ``PCENable?`` query. + - Using the ``.verify(value)`` method will send the ``PCENable?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``PCENable value`` command. + + **SCPI Syntax:** + + :: + + - PCENable OFF | ON + - PCENable? + """ + return self._pcenable + + @property + def psc(self) -> Psc: + """Return the ``*PSC`` command. + + **Description:** + - This command sets and queries the power-on status flag that controls the automatic + power-on handling of the DESER, SRER, and ESER registers. When ``*PSC`` is true, the + DESER register is set to 255 and the SRER and ESER registers are set to 0 at power-on. + When ``*PSC`` is false, the current values in the DESER, SRER, and ESER registers are + preserved in nonvolatile memory when power is shut off and are restored at power-on. + + **Usage:** + - Using the ``.query()`` method will send the ``*PSC?`` query. + - Using the ``.verify(value)`` method will send the ``*PSC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*PSC value`` command. + + **SCPI Syntax:** + + :: + + - *PSC {|OFF|ON} + - *PSC? + + **Info:** + - ```` = 0 sets the power-on status clear flag to false, disables the power-on + clear and allows the instrument to possibly assert SRQ after power-on; any other value + sets the power-on status clear flag to true, enabling the power-on status clear and + prevents any SRQ assertion after power on. + - ``OFF`` sets the power-on status clear flag to false, disables the power-on clear and + allows the instrument to possibly assert SRQ after power-on. + - ``ON`` sets the power-on status clear flag to true, enabling the power-on status clear + and prevents any SRQ assertion after power on. + """ + return self._psc + + @property + def pud(self) -> Pud: + """Return the ``*PUD`` command. + + **Description:** + - This command sets or queries a string of Protected User Data. This data is protected + by the PASSWord command. You can modify it only by first entering the correct + password. This password is not necessary to query the data. + + **Usage:** + - Using the ``.query()`` method will send the ``*PUD?`` query. + - Using the ``.verify(value)`` method will send the ``*PUD?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*PUD value`` command. + + **SCPI Syntax:** + + :: + + - *PUD {|} + - *PUD? + + **Info:** + - ```` is a block containing up to 100 characters. + - ```` is a string containing up to 100 characters. + """ + return self._pud + + @property + def rcl(self) -> Rcl: + """Return the ``*RCL`` command. + + **Description:** + - This command restores the state of the oscilloscope from a copy of the settings stored + in memory (The settings are stored using the ``*SAV`` command). + + **Usage:** + - Using the ``.write(value)`` method will send the ``*RCL value`` command. + + **SCPI Syntax:** + + :: + + - *RCL + + **Info:** + - ```` is a value in the range from 1 to 10, which specifies a saved setup storage + location. + """ + return self._rcl + + @property + def recall(self) -> Recall: + """Return the ``RECAll`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``RECAll?`` query. + - Using the ``.verify(value)`` method will send the ``RECAll?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.mask``: The ``RECAll:MASK`` command. + - ``.setup``: The ``RECAll:SETUp`` command. + - ``.waveform``: The ``RECAll:WAVEform`` command. + """ + return self._recall + + @property + def ref(self) -> Dict[int, RefItem]: + """Return the ``REF`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``REF?`` query. + - Using the ``.verify(value)`` method will send the ``REF?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.horizontal``: The ``REF:HORizontal`` command tree. + - ``.label``: The ``REF:LABel`` command. + - ``.threshold``: The ``REF:THRESHold`` command. + - ``.vertical``: The ``REF:VERTical`` command tree. + """ + return self._ref + + @property + def rem(self) -> Rem: + """Return the ``REM`` command. + + **Description:** + - This command (no query form) embeds a comment within programs as a means of internally + documenting the programs. This is how to embed comments in a .set file. The instrument + ignores these embedded comment lines. + + **Usage:** + - Using the ``.write(value)`` method will send the ``REM value`` command. + + **SCPI Syntax:** + + :: + + - REM + + **Info:** + - ```` is a string that can contain a maximum of 80 characters. + """ + return self._rem + + @property + def rosc(self) -> Rosc: + """Return the ``ROSc`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ROSc?`` query. + - Using the ``.verify(value)`` method will send the ``ROSc?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.out``: The ``ROSc:OUT`` command tree. + - ``.source``: The ``ROSc:SOUrce`` command. + - ``.state``: The ``ROSc:STATE`` command. + - ``.tracking``: The ``ROSc:TRACking`` command. + """ + return self._rosc + + @property + def rst(self) -> Rst: + """Return the ``*RST`` command. + + **Description:** + - This command (no query form) resets the instrument to the factory default settings. + This command does the following: Recalls the default instrument setup. Clears the + current ``*DDT`` command. Disables aliases (``:ALIAS:STATE 0``). Disables the user + password (for the ``*PUD`` command). The ``*RST`` command does not change the + following: The current working directory ( ``:FILESystem:CWD`` command). The state of + command headers ( ``:HEADer`` command). The state of keyword and enumeration verbosity + ( ``:VERBose`` command). The Power-on Status Clear Flag ( ``*PSC`` command). The Event + Status Enable Register ( ``*ESE`` command). The Service Request Enable Register ( + ``*SRE`` command). The Device Event Status Enable Register ( DESE command). The user + password for protected user data ( ``:PASSWord`` command). The content of protected + user data ( ``*PUD`` command). The enabled state of the socket server ( + ``:SOCKETServer:ENAble`` command). The socket server port number ( + ``:SOCKETServer:PORT`` command). The socket server protocol ( + ``:SOCKETServer:PROTOCol`` command). The USBTMC port configuration ( + ``:USBDevice:CONFigure`` command). The destination reference waveform or file path for + the ``:CURVe`` command ( ``:DATa:DESTination`` command). The source waveform for the + ``:CURVe?`` or ``:WAVFrm?`` queries ( ``:DATa:SOUrce`` command). The waveform data + encoding for the ``:CURVe`` command or query or the ``:WAVFrm?`` query ( + ``:DATa:ENCdg`` command). The starting point for ``:CURVe?`` queries ( ``:DATa:STARt`` + command). The ending point for ``:CURVe?`` queries ( ``:DATa:STOP`` command). All + settings associated the ``:WFMInpre`` commands. All user settable settings associated + with the WFMOutpre commands. ``*RST`` only resets the programmable interface settings, + it does not change the user interface settings. + + **Usage:** + - Using the ``.write()`` method will send the ``*RST`` command. + + **SCPI Syntax:** + + :: + + - *RST + """ + return self._rst + + @property + def sav(self) -> Sav: + """Return the ``*SAV`` command. + + **Description:** + - Stores the state of the oscilloscope to a specified memory location. You can use the + ``*RCL`` command to restore the oscilloscope to this saved state at a later time. + + **Usage:** + - Using the ``.write(value)`` method will send the ``*SAV value`` command. + + **SCPI Syntax:** + + :: + + - *SAV + + **Info:** + - ```` specifies a location in which to save the state of the oscilloscope. + Location values range from 1 through 10. Using an out-of-range location value causes + an execution error. Any settings that have been stored previously at this location + will be overwritten. + """ + return self._sav + + @property + def save(self) -> Save: + """Return the ``SAVe`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SAVe?`` query. + - Using the ``.verify(value)`` method will send the ``SAVe?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.eventtable``: The ``SAVe:EVENTtable`` command tree. + - ``.marks``: The ``SAVe:MARKS`` command. + - ``.mask``: The ``SAVe:MASK`` command. + - ``.setup``: The ``SAVe:SETUp`` command. + - ``.waveform``: The ``SAVe:WAVEform`` command. + """ + return self._save + + @property + def saveon(self) -> Saveon: + """Return the ``SAVEON`` command. + + **Description:** + - Sets the auto-increment file count to 0. Once the number of saved files has reached + the limit that you set (using the ``SAVEON:NUMevents`` command), no files will be + saved until you reset the count. + + **Usage:** + - Using the ``.write(value)`` method will send the ``SAVEON value`` command. + + **SCPI Syntax:** + + :: + + - SAVEON {RESET} + + **Info:** + - ``RESET`` sets the file count to 0. + + Sub-properties: + - ``.count``: The ``SAVEON:COUNt`` command. + - ``.file``: The ``SAVEON:FILE`` command tree. + - ``.image``: The ``SAVEON:IMAGe`` command. + - ``.limit``: The ``SAVEON:LIMit`` command. + - ``.mask``: The ``SAVEON:MASK`` command. + - ``.measurement``: The ``SAVEON:MEASUrement`` command. + - ``.numevents``: The ``SAVEON:NUMEvents`` command. + - ``.setup``: The ``SAVEON:SETUP`` command. + - ``.trigger``: The ``SAVEON:TRIGger`` command. + - ``.waveform``: The ``SAVEON:WAVEform`` command. + """ + return self._saveon + + @property + def sds(self) -> Sds: + """Return the ``*SDS`` command. + + **Description:** + - This command (no query form) changes the specified setup to reference the factory + setup instead of the specific user setup slot. The content of the setup slot is + unchanged, but the data will no longer be accessible to you. This command is + equivalent to selecting Delete from the File menu, and then choosing the specified + setup. + + **Usage:** + - Using the ``.write(value)`` method will send the ``*SDS value`` command. + + **SCPI Syntax:** + + :: + + - *SDS + + **Info:** + - ```` specifies a user setup location to delete. Setup storage location values + range from 1 through 10; using an out-of-range value causes an error. + """ + return self._sds + + @property + def search(self) -> Search: + """Return the ``SEARCH`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SEARCH?`` query. + - Using the ``.verify(value)`` method will send the ``SEARCH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.markallevents``: The ``SEARCH:MARKALLevents`` command. + - ``.search``: The ``SEARCH:SEARCH`` command. + - ``.stop``: The ``SEARCH:STOP`` command. + """ + return self._search + + @property + def select(self) -> Select: + """Return the ``SELect`` command. + + **Description:** + - Queries which waveforms are displayed. + + **Usage:** + - Using the ``.query()`` method will send the ``SELect?`` query. + - Using the ``.verify(value)`` method will send the ``SELect?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - SELect? + + Sub-properties: + - ``.b``: The ``SELect:B`` command. + - ``.ch``: The ``SELect:CH`` command. + - ``.control``: The ``SELect:CONTROl`` command. + - ``.d``: The ``SELect:D`` command. + - ``.dall``: The ``SELect:DALL`` command. + - ``.digtraces``: The ``SELect:DIGTraces`` command tree. + - ``.math``: The ``SELect:MATH`` command. + - ``.ref``: The ``SELect:REF`` command. + """ + return self._select + + @property + def set_(self) -> Set: + """Return the ``SET`` command. + + **Description:** + - This query-only command returns the commands that list the instrument settings, except + for configuration information for the calibration values. You can use these commands + to return the instrument to the state it was in when you made the ``SET?`` query. The + ``SET?`` query always returns command headers, regardless of the setting of the HEADER + command. This is because the returned commands are intended to be sent back to the + instrument as a command string. The VERBOSE command can still be used to specify + whether the returned headers should be abbreviated or full-length. This command is + identical to the LRN command. + + **Usage:** + - Using the ``.query()`` method will send the ``SET?`` query. + - Using the ``.verify(value)`` method will send the ``SET?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - SET? + """ + return self._set + + @property + def setup(self) -> Setup: + """Return the ``SETUp`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SETUp?`` query. + - Using the ``.verify(value)`` method will send the ``SETUp?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.name``: The ``SETUp:NAMe`` command. + """ + return self._setup + + @property + def sre(self) -> Sre: + """Return the ``*SRE`` command. + + **Description:** + - The ``*SRE`` (Service Request Enable) command sets and queries the bits in the Service + Request Enable Register. For more information, refer to Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*SRE?`` query. + - Using the ``.verify(value)`` method will send the ``*SRE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*SRE value`` command. + + **SCPI Syntax:** + + :: + + - *SRE + - *SRE? + + **Info:** + - ```` is a value in the range from 0 through 255. The binary bits of the SRER are + set according to this value. Using an out-of-range value causes an execution error. + The power-on default for SRER is 0 if ``*PSC`` is 1. If ``*PSC`` is 0, the SRER + maintains the previous power cycle value through the current power cycle. + """ + return self._sre + + @property + def stb(self) -> Stb: + """Return the ``*STB`` command. + + **Description:** + - The ``*STB?`` (Read Status Byte) query returns the contents of the Status Byte + Register (SBR) using the Master Summary Status (MSS) bit. For more information, refer + to Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*STB?`` query. + - Using the ``.verify(value)`` method will send the ``*STB?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *STB? + """ + return self._stb + + @property + def system(self) -> System: + """Return the ``SYSTem`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SYSTem?`` query. + - Using the ``.verify(value)`` method will send the ``SYSTem?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.setup``: The ``SYSTem:SETup`` command. + """ + return self._system + + @property + def teklink(self) -> Teklink: + """Return the ``TEKLink`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TEKLink?`` query. + - Using the ``.verify(value)`` method will send the ``TEKLink?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.connection``: The ``TEKLink:CONNection`` command. + - ``.refclk``: The ``TEKLink:REFClk`` command. + """ + return self._teklink + + @property + def teksecure(self) -> Teksecure: + """Return the ``TEKSecure`` command. + + **Description:** + - This command initializes, for the current user, both waveform and setup memories, + overwriting any previously stored data. Equivalent to invoking Teksecure from the + Utility menu. This is a time-consuming operation (3 to 5 minutes) and the instrument + is inoperable until the TekSecure operation is complete. + + **Usage:** + - Using the ``.write()`` method will send the ``TEKSecure`` command. + + **SCPI Syntax:** + + :: + + - TEKSecure + """ + return self._teksecure + + @property + def test(self) -> Test: + """Return the ``TEST`` command. + + **Description:** + - This command provides the ability to select and execute an item at any level of the + test hierarchy (Test, Area or Subsystem). The query returns the last command sent. + This command is equivalent to selecting Instrument Diagnostics from the Utilities + menu, choosing a test and then pressing Run. + + **Usage:** + - Using the ``.query()`` method will send the ``TEST?`` query. + - Using the ``.verify(value)`` method will send the ``TEST?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TEST value`` command. + + **SCPI Syntax:** + + :: + + - TEST + - TEST? + + **Info:** + - ```` sets the test ID, which ranges from 0 through 3 characters. If no test + ID is specified, all available diagnostics are executed. + + Sub-properties: + - ``.results``: The ``TEST:RESults`` command. + - ``.stop``: The ``TEST:STOP`` command. + """ + return self._test + + @property + def time(self) -> Time: + """Return the ``TIME`` command. + + **Description:** + - This command sets or queries the time that the instrument displays. This command is + equivalent to selecting Set Time & Date from the Utilities menu and then setting the + fields in the Time group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TIME?`` query. + - Using the ``.verify(value)`` method will send the ``TIME?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TIME value`` command. + + **SCPI Syntax:** + + :: + + - TIME + - TIME? + + **Info:** + - ```` is a time in the form '``hh:mm:ss``' where hh refers to a two-digit hour + number, mm refers to a two-digit minute number from 01 to 60, and ss refers to a + two-digit second number from 01 to 60. + """ + return self._time + + @property + def trg(self) -> Trg: + """Return the ``*TRG`` command. + + **Description:** + - Performs a group execute trigger on commands defined by ``*DDT``. + + **Usage:** + - Using the ``.write()`` method will send the ``*TRG`` command. + + **SCPI Syntax:** + + :: + + - *TRG + """ + return self._trg + + @property + def trig(self) -> Trig: + """Return the ``TRIG`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIG?`` query. + - Using the ``.verify(value)`` method will send the ``TRIG?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.a``: The ``TRIG:A`` command tree. + """ + return self._trig + + @property + def trigger(self) -> Trigger: + """Return the ``TRIGger`` command. + + **Description:** + - This command forces a trigger event to occur. The query returns the current trigger + parameters for the instrument. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger FORCe + - TRIGger? + + **Info:** + - ``FORCe`` creates a trigger event. If ``TRIGger:STATE`` is set to READy, the + acquisition will complete. Otherwise, this command will be ignored. This is equivalent + to pressing the Force button on the front panel. + + Sub-properties: + - ``.a``: The ``TRIGger:A`` command. + - ``.auxlevel``: The ``TRIGger:AUXLevel`` command. + - ``.b``: The ``TRIGger:B`` command. + - ``.enhanced``: The ``TRIGger:ENHanced`` command. + - ``.equation``: The ``TRIGger:EQUation`` command. + - ``.lvlsrcpreference``: The ``TRIGger:LVLSrcpreference`` command. + - ``.main``: The ``TRIGger:MAIn`` command tree. + - ``.multiscope``: The ``TRIGger:MULTiscope`` command. + - ``.qualification``: The ``TRIGger:QUALification`` command tree. + - ``.sensitivity``: The ``TRIGger:SENSITivity`` command. + - ``.showequation``: The ``TRIGger:SHOWEQuation`` command. + - ``.state``: The ``TRIGger:STATE`` command. + """ + return self._trigger + + @property + def tst(self) -> Tst: + """Return the ``*TST`` command. + + **Description:** + - Tests (self-test) the interface and returns a 0. + + **Usage:** + - Using the ``.query()`` method will send the ``*TST?`` query. + - Using the ``.verify(value)`` method will send the ``*TST?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *TST? + """ + return self._tst + + @property + def unlock(self) -> Unlock: + """Return the ``UNLock`` command. + + **Description:** + - This command (no query form) unlocks the front panel controls only. To unlock the + front panel controls and the touch screen use the LOCk NONe command. The command + ``TOUCHSCReen:STATE ON`` enables the touch screen only. + + **Usage:** + - Using the ``.write(value)`` method will send the ``UNLock value`` command. + + **SCPI Syntax:** + + :: + + - UNLock ALL + + **Info:** + - ``ALL`` specifies that all front panel buttons and knobs are unlocked. + """ + return self._unlock + + @property + def usbtmc(self) -> Usbtmc: + """Return the ``USBTMC`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``USBTMC?`` query. + - Using the ``.verify(value)`` method will send the ``USBTMC?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.productid``: The ``USBTMC:PRODUCTID`` command tree. + - ``.serialnumber``: The ``USBTMC:SERIALnumber`` command. + - ``.vendorid``: The ``USBTMC:VENDORID`` command tree. + """ + return self._usbtmc + + @property + def verbose(self) -> Verbose: + """Return the ``VERBose`` command. + + **Description:** + - This command sets or queries the Verbose state that controls the length of keywords on + query responses. Keywords can be both headers and arguments. + + **Usage:** + - Using the ``.write(value)`` method will send the ``VERBose value`` command. + + **SCPI Syntax:** + + :: + + - VERBose {|OFF|ON} + + **Info:** + - ```` = 0 disables Verbose, any other value enables Verbose. + - ``OFF`` sets the Verbose state to false, which returns minimum-length keywords for + applicable setting queries. + - ``ON`` sets the Verbose state to true, which returns full-length keywords for + applicable setting queries. + """ + return self._verbose + + @property + def visual(self) -> Visual: + """Return the ``VISual`` command. + + **Description:** + - This query-only command returns the settings for each visual trigger area. + + **Usage:** + - Using the ``.query()`` method will send the ``VISual?`` query. + - Using the ``.verify(value)`` method will send the ``VISual?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - VISual? + + Sub-properties: + - ``.area``: The ``VISual:AREA`` command. + - ``.areacolor``: The ``VISual:AREACOLOr`` command. + - ``.aspectratio``: The ``VISual:ASPECTratio`` command. + - ``.deletearea``: The ``VISual:DELETEAREA`` command. + - ``.enable``: The ``VISual:ENAble`` command. + - ``.file``: The ``VISual:FILE`` command tree. + """ + return self._visual + + @property + def wai(self) -> Wai: + """Return the ``*WAI`` command. + + **Description:** + - The ``*WAI`` (Wait) command (no query form) prevents the instrument from executing + further commands or queries until all pending commands that generate an OPC message + are complete. This command allows you to synchronize the operation of the instrument + with your application program. For more information, refer to Synchronization Methods. + + **Usage:** + - Using the ``.write()`` method will send the ``*WAI`` command. + + **SCPI Syntax:** + + :: + + - *WAI + """ + return self._wai + + @property + def wavfrm(self) -> Wavfrm: + """Return the ``WAVFrm`` command. + + **Description:** + - This query-only command provides the Tektronix standard waveform query which returns + the waveform preamble followed by the waveform data for the source specified by + ``:DATa:SOUrce`` using the ``:DATa`` settings for encoding, width, and so forth. + + **Usage:** + - Using the ``.query()`` method will send the ``WAVFrm?`` query. + - Using the ``.verify(value)`` method will send the ``WAVFrm?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WAVFrm? + """ + return self._wavfrm + + @property + def wavfrmstream(self) -> Wavfrmstream: + """Return the ``WAVFRMStream`` command. + + **Description:** + - This query only command returns WFMQUTPRE? and CURVESTREAM? data for the waveforms + specified by the DATASOURCE command. This command is similar to sending both + WFMOUTPRE? and CURVESTREAM?, with the additional provision that each CURVESTREAM + response to WAVFRMS? has a WFMOUTPRE response prepended to it. This helps guarantee a + continuous synchronized preamble and curve. + + **Usage:** + - Using the ``.query()`` method will send the ``WAVFRMStream?`` query. + - Using the ``.verify(value)`` method will send the ``WAVFRMStream?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WAVFRMStream? + """ + return self._wavfrmstream + + @property + def wfminpre(self) -> Wfminpre: + """Return the ``WFMInpre`` command. + + **Description:** + - Returns the waveform formatting and scaling specifications to be applied to the next + incoming CURVe command data. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMInpre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMInpre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WFMInpre? + + Sub-properties: + - ``.bit_nr``: The ``WFMInpre:BIT_Nr`` command. + - ``.bn_fmt``: The ``WFMInpre:BN_Fmt`` command. + - ``.byt_nr``: The ``WFMInpre:BYT_Nr`` command. + - ``.byt_or``: The ``WFMInpre:BYT_Or`` command. + - ``.encdg``: The ``WFMInpre:ENCdg`` command. + - ``.nr_fr``: The ``WFMInpre:NR_FR`` command. + - ``.nr_pt``: The ``WFMInpre:NR_Pt`` command. + - ``.pt_fmt``: The ``WFMInpre:PT_Fmt`` command. + - ``.pt_off``: The ``WFMInpre:PT_Off`` command. + - ``.wfid``: The ``WFMInpre:WFId`` command. + - ``.xincr``: The ``WFMInpre:XINcr`` command. + - ``.xunit``: The ``WFMInpre:XUNit`` command. + - ``.xzero``: The ``WFMInpre:XZEro`` command. + - ``.ymult``: The ``WFMInpre:YMUlt`` command. + - ``.yoff``: The ``WFMInpre:YOFf`` command. + - ``.yunit``: The ``WFMInpre:YUNit`` command. + - ``.yzero``: The ``WFMInpre:YZEro`` command. + """ + return self._wfminpre + + @property + def wfmoutpre(self) -> Wfmoutpre: + """Return the ``WFMOutpre`` command. + + **Description:** + - This query-only command queries the waveform formatting data for the waveform + specified by the ``DATA:SOURCE`` command. The preamble components are considered to be + of two types; formatting and interpretation. The formatting components are: ENCdg, + ``BN_Fmt``, ``BYT_Or``, ``BYT_Nr``, ``BIT_Nr``. The interpretation components are + derived from the ``DATa:SOUrce`` specified waveform. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMOutpre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMOutpre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WFMOutpre? + + Sub-properties: + - ``.bit_nr``: The ``WFMOutpre:BIT_Nr`` command. + - ``.bn_fmt``: The ``WFMOutpre:BN_Fmt`` command. + - ``.byt_nr``: The ``WFMOutpre:BYT_Nr`` command. + - ``.byt_or``: The ``WFMOutpre:BYT_Or`` command. + - ``.encdg``: The ``WFMOutpre:ENCdg`` command. + - ``.nr_fr``: The ``WFMOutpre:NR_FR`` command. + - ``.nr_pt``: The ``WFMOutpre:NR_Pt`` command. + - ``.pt_fmt``: The ``WFMOutpre:PT_Fmt`` command. + - ``.pt_order``: The ``WFMOutpre:PT_ORder`` command. + - ``.pt_off``: The ``WFMOutpre:PT_Off`` command. + - ``.wfid``: The ``WFMOutpre:WFId`` command. + - ``.xincr``: The ``WFMOutpre:XINcr`` command. + - ``.xunit``: The ``WFMOutpre:XUNit`` command. + - ``.xzero``: The ``WFMOutpre:XZEro`` command. + - ``.ymult``: The ``WFMOutpre:YMUlt`` command. + - ``.yoff``: The ``WFMOutpre:YOFf`` command. + - ``.yunit``: The ``WFMOutpre:YUNit`` command. + - ``.yzero``: The ``WFMOutpre:YZEro`` command. + """ + return self._wfmoutpre + + @property + def wfmpre(self) -> Wfmpre: + """Return the ``WFMPre`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMPre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMPre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.nr_fr``: The ``WFMPre:NR_FR`` command. + """ + return self._wfmpre + + @property + def zoom(self) -> Zoom: + """Return the ``ZOOm`` command. + + **Description:** + - This command resets the zoom transforms to default values for all traces or live + traces. The ``ZOOm`` query returns the current vertical and horizontal positioning and + scaling of the display. + + **Usage:** + - Using the ``.query()`` method will send the ``ZOOm?`` query. + - Using the ``.verify(value)`` method will send the ``ZOOm?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ZOOm value`` command. + + **SCPI Syntax:** + + :: + + - ZOOm {RESET|RESETLive} + - ZOOm? + + **Info:** + - ``RESET`` resets the zoom transforms to default values for all traces. + - ``RESETLive`` resets the zoom transforms to default values for live traces. + + Sub-properties: + - ``.graticule``: The ``ZOOm:GRAticule`` command tree. + - ``.horizontal``: The ``ZOOm:HORizontal`` command tree. + - ``.math``: The ``ZOOm:MATH`` command tree. + - ``.mode``: The ``ZOOm:MODe`` command. + - ``.ref``: The ``ZOOm:REF`` command tree. + - ``.scroll``: The ``ZOOm:SCROLL`` command tree. + - ``.state``: The ``ZOOm:STATE`` command. + - ``.vertical``: The ``ZOOm:VERTical`` command tree. + - ``.zoom1``: The ``ZOOm:ZOOM1`` command. + """ + return self._zoom + + +class DPO7KMixin: + """A mixin that provides access to the DPO7K commands and constants. + + Properties: + - ``.command_argument_constants``: The DPO7K command argument constants. + - ``.commands``: The DPO7K commands. + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + device = self if isinstance(self, PIDevice) else None + self._command_argument_constants = DPO7KCommandConstants() + self._commands = DPO7KCommands(device) + + @property + def command_argument_constants(self) -> DPO7KCommandConstants: + """Return the DPO7K command argument constants. + + This provides access to all the string constants which can be used as arguments for DPO7K + commands. + """ + return self._command_argument_constants + + @property + def commands(self) -> DPO7KCommands: + """Return the DPO7K commands. + + This provides access to all the commands for the DPO7K device. See the documentation of each + sub-property for more usage information. + + Sub-properties: + - ``.acquire``: The ``ACQuire`` command tree. + - ``.alias``: The ``ALIas`` command. + - ``.allev``: The ``ALLEv`` command. + - ``.allocate``: The ``ALLOcate`` command tree. + - ``.application``: The ``APPLication`` command tree. + - ``.autoset``: The ``AUTOSet`` command. + - ``.auxin``: The ``AUXIn`` command tree. + - ``.auxout``: The ``AUXout`` command. + - ``.bell``: The ``BELl`` command. + - ``.bus``: The ``BUS`` command tree. + - ``.busy``: The ``BUSY`` command. + - ``.cal``: The ``*CAL`` command. + - ``.calibrate``: The ``CALibrate`` command. + - ``.ch``: The ``CH`` command. + - ``.clear``: The ``CLEAR`` command. + - ``.cls``: The ``*CLS`` command. + - ``.cmdbatch``: The ``CMDBatch`` command. + - ``.counter``: The ``COUnter`` command tree. + - ``.cq``: The ``CQ`` command tree. + - ``.cursor``: The ``CURSor`` command. + - ``.curve``: The ``CURVe`` command. + - ``.curvenext``: The ``CURVENext`` command. + - ``.curvestream``: The ``CURVEStream`` command. + - ``.custom``: The ``CUSTOM`` command tree. + - ``.d``: The ``D`` command tree. + - ``.data``: The ``DATa`` command. + - ``.date``: The ``DATE`` command. + - ``.ddt``: The ``*DDT`` command. + - ``.delete``: The ``DELEte`` command tree. + - ``.dese``: The ``DESE`` command. + - ``.diag``: The ``DIAg`` command tree. + - ``.display``: The ``DISplay`` command. + - ``.email``: The ``EMail`` command. + - ``.errordetector``: The ``ERRORDetector`` command tree. + - ``.ese``: The ``*ESE`` command. + - ``.esr``: The ``*ESR`` command. + - ``.event``: The ``EVENT`` command. + - ``.evmsg``: The ``EVMsg`` command. + - ``.evqty``: The ``EVQty`` command. + - ``.export``: The ``EXPort`` command. + - ``.factory``: The ``FACtory`` command. + - ``.fastacq``: The ``FASTAcq`` command. + - ``.filesystem``: The ``FILESystem`` command. + - ``.gpibusb``: The ``GPIBUsb`` command tree. + - ``.hardcopy``: The ``HARDCopy`` command. + - ``.hdr``: The ``HDR`` command. + - ``.header``: The ``HEADer`` command. + - ``.histogram``: The ``HIStogram`` command. + - ``.horizontal``: The ``HORizontal`` command. + - ``.id``: The ``ID`` command. + - ``.idn``: The ``*IDN`` command. + - ``.limit``: The ``LIMit`` command. + - ``.linktraining``: The ``LINKTRaining`` command tree. + - ``.lock``: The ``LOCk`` command. + - ``.lrn``: The ``*LRN`` command. + - ``.mark``: The ``MARK`` command. + - ``.mask``: The ``MASK`` command. + - ``.math``: The ``MATH`` command. + - ``.matharbflt``: The ``MATHArbflt`` command tree. + - ``.mathvar``: The ``MATHVAR`` command. + - ``.mch``: The ``MCH`` command tree. + - ``.measurement``: The ``MEASUrement`` command. + - ``.multiscope``: The ``MULTiscope`` command tree. + - ``.newpass``: The ``NEWpass`` command. + - ``.opc``: The ``*OPC`` command. + - ``.opcextended``: The ``OPCEXtended`` command. + - ``.opt``: The ``*OPT`` command. + - ``.password``: The ``PASSWord`` command. + - ``.pcenable``: The ``PCENable`` command. + - ``.psc``: The ``*PSC`` command. + - ``.pud``: The ``*PUD`` command. + - ``.rcl``: The ``*RCL`` command. + - ``.recall``: The ``RECAll`` command tree. + - ``.ref``: The ``REF`` command tree. + - ``.rem``: The ``REM`` command. + - ``.rosc``: The ``ROSc`` command tree. + - ``.rst``: The ``*RST`` command. + - ``.sav``: The ``*SAV`` command. + - ``.save``: The ``SAVe`` command tree. + - ``.saveon``: The ``SAVEON`` command. + - ``.sds``: The ``*SDS`` command. + - ``.search``: The ``SEARCH`` command tree. + - ``.select``: The ``SELect`` command. + - ``.set``: The ``SET`` command. + - ``.setup``: The ``SETUp`` command tree. + - ``.sre``: The ``*SRE`` command. + - ``.stb``: The ``*STB`` command. + - ``.system``: The ``SYSTem`` command tree. + - ``.teklink``: The ``TEKLink`` command tree. + - ``.teksecure``: The ``TEKSecure`` command. + - ``.test``: The ``TEST`` command. + - ``.time``: The ``TIME`` command. + - ``.trg``: The ``*TRG`` command. + - ``.trig``: The ``TRIG`` command tree. + - ``.trigger``: The ``TRIGger`` command. + - ``.tst``: The ``*TST`` command. + - ``.unlock``: The ``UNLock`` command. + - ``.usbtmc``: The ``USBTMC`` command tree. + - ``.verbose``: The ``VERBose`` command. + - ``.visual``: The ``VISual`` command. + - ``.wai``: The ``*WAI`` command. + - ``.wavfrm``: The ``WAVFrm`` command. + - ``.wavfrmstream``: The ``WAVFRMStream`` command. + - ``.wfminpre``: The ``WFMInpre`` command. + - ``.wfmoutpre``: The ``WFMOutpre`` command. + - ``.wfmpre``: The ``WFMPre`` command tree. + - ``.zoom``: The ``ZOOm`` command. + """ + return self._commands diff --git a/src/tm_devices/commands/_dpo7kc_commands.py b/src/tm_devices/commands/_dpo7kc_commands.py index 1b90e49d3..428c01a5f 100644 --- a/src/tm_devices/commands/_dpo7kc_commands.py +++ b/src/tm_devices/commands/_dpo7kc_commands.py @@ -10,103 +10,103 @@ from tm_devices.drivers.pi.pi_device import PIDevice from ._3skc3w_dpo.trigger import Trigger -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dsa70kc_commands.py b/src/tm_devices/commands/_dsa70kc_commands.py index 963a07263..55fb15e2d 100644 --- a/src/tm_devices/commands/_dsa70kc_commands.py +++ b/src/tm_devices/commands/_dsa70kc_commands.py @@ -9,104 +9,104 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._5vmwut_dpodsamso.trigger import Trigger -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_dsa70kd_commands.py b/src/tm_devices/commands/_dsa70kd_commands.py index 4ec1bd67e..55e5fd5fe 100644 --- a/src/tm_devices/commands/_dsa70kd_commands.py +++ b/src/tm_devices/commands/_dsa70kd_commands.py @@ -9,104 +9,104 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._5vmwut_dpodsamso.trigger import Trigger -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_e3e9uu_lpdmso/measurement.py b/src/tm_devices/commands/_e3e9uu_lpdmso/measurement.py index 5aa9564df..aa3df4b38 100644 --- a/src/tm_devices/commands/_e3e9uu_lpdmso/measurement.py +++ b/src/tm_devices/commands/_e3e9uu_lpdmso/measurement.py @@ -19877,7 +19877,9 @@ class MeasurementMeasItem(ValidatedDynamicNumberCmd, SCPICmdRead): """ # pylint: disable=too-many-statements - def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: # noqa: PLR0915 + def __init__( # noqa: PLR0915 + self, device: Optional["PIDevice"], cmd_syntax: str + ) -> None: super().__init__(device, cmd_syntax) self._abandwidth = MeasurementMeasItemAbandwidth(device, f"{self._cmd_syntax}:ABANdwidth") self._achannels = MeasurementMeasItemAchannels(device, f"{self._cmd_syntax}:ACHANnels") diff --git a/src/tm_devices/commands/_e3pief_ss/buffervar.py b/src/tm_devices/commands/_e3pief_ss/buffervar.py index d0bb6f89b..2de5b8030 100644 --- a/src/tm_devices/commands/_e3pief_ss/buffervar.py +++ b/src/tm_devices/commands/_e3pief_ss/buffervar.py @@ -671,7 +671,9 @@ def n(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".n" - return self._device.query(f"print({self._cmd_syntax}.n)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.n)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.n`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -947,7 +949,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -971,7 +975,9 @@ def clearcache(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clearcache()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clearcache()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clearcache()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/channel.py b/src/tm_devices/commands/_e3pief_ss/channel.py index 41c42c131..7ea5ff151 100644 --- a/src/tm_devices/commands/_e3pief_ss/channel.py +++ b/src/tm_devices/commands/_e3pief_ss/channel.py @@ -127,7 +127,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -250,7 +252,9 @@ def delete(self, name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.delete("{name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.delete("{name}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -333,7 +337,9 @@ def snapshot(self, name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.snapshot("{name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.snapshot("{name}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.snapshot()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -437,7 +443,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -485,7 +493,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/digio.py b/src/tm_devices/commands/_e3pief_ss/digio.py index 75356f6de..07a95810b 100644 --- a/src/tm_devices/commands/_e3pief_ss/digio.py +++ b/src/tm_devices/commands/_e3pief_ss/digio.py @@ -101,7 +101,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -138,7 +140,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -346,7 +350,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -370,7 +376,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -394,7 +402,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -418,7 +428,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -662,7 +674,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/display.py b/src/tm_devices/commands/_e3pief_ss/display.py index 165cbbec2..956693583 100644 --- a/src/tm_devices/commands/_e3pief_ss/display.py +++ b/src/tm_devices/commands/_e3pief_ss/display.py @@ -330,7 +330,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/dmm.py b/src/tm_devices/commands/_e3pief_ss/dmm.py index c0449d682..e21e72d30 100644 --- a/src/tm_devices/commands/_e3pief_ss/dmm.py +++ b/src/tm_devices/commands/_e3pief_ss/dmm.py @@ -732,7 +732,9 @@ def fail(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".fail" - return self._device.query(f"print({self._cmd_syntax}.fail)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.fail)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.fail`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -984,7 +986,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1157,7 +1161,9 @@ def type(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".type" - return self._device.query(f"print({self._cmd_syntax}.type)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.type)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1190,7 +1196,9 @@ def type(self, value: Union[str, float]) -> None: self._cmd_syntax + ".type", value ) else: - self._device.write(f"{self._cmd_syntax}.type = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.type = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.type`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1292,7 +1300,9 @@ def delete(self, name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.delete("{name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.delete("{name}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1385,7 +1395,9 @@ def set_(self, name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.set("{name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.set("{name}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1451,7 +1463,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1544,7 +1558,9 @@ def lock(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.lock()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.lock()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.lock()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1565,7 +1581,9 @@ def save(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.save()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.save()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.save()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2478,7 +2496,9 @@ def func(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".func" - return self._device.query(f"print({self._cmd_syntax}.func)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.func)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2510,7 +2530,9 @@ def func(self, value: Union[str, float]) -> None: self._cmd_syntax + ".func", value ) else: - self._device.write(f"{self._cmd_syntax}.func = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.func = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.func`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2769,7 +2791,9 @@ def nplc(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".nplc" - return self._device.query(f"print({self._cmd_syntax}.nplc)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.nplc)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2802,7 +2826,9 @@ def nplc(self, value: Union[str, float]) -> None: self._cmd_syntax + ".nplc", value ) else: - self._device.write(f"{self._cmd_syntax}.nplc = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nplc = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.nplc`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3948,7 +3974,9 @@ def reset(self, scope: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset({scope})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset({scope})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/eventlog.py b/src/tm_devices/commands/_e3pief_ss/eventlog.py index 3fc718432..823f68fd3 100644 --- a/src/tm_devices/commands/_e3pief_ss/eventlog.py +++ b/src/tm_devices/commands/_e3pief_ss/eventlog.py @@ -259,7 +259,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/format.py b/src/tm_devices/commands/_e3pief_ss/format.py index 7b606aa68..7a91c3b42 100644 --- a/src/tm_devices/commands/_e3pief_ss/format.py +++ b/src/tm_devices/commands/_e3pief_ss/format.py @@ -222,7 +222,9 @@ def data(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".data" - return self._device.query(f"print({self._cmd_syntax}.data)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.data)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -255,7 +257,9 @@ def data(self, value: Union[str, float]) -> None: self._cmd_syntax + ".data", value ) else: - self._device.write(f"{self._cmd_syntax}.data = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.data = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.data`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/lan.py b/src/tm_devices/commands/_e3pief_ss/lan.py index ef6840f72..679b74e84 100644 --- a/src/tm_devices/commands/_e3pief_ss/lan.py +++ b/src/tm_devices/commands/_e3pief_ss/lan.py @@ -238,7 +238,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -275,7 +277,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -553,7 +557,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -577,7 +583,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -601,7 +609,9 @@ def connect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.connect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.connect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.connect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -625,7 +635,9 @@ def disconnect(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disconnect()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disconnect()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disconnect()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -698,7 +710,9 @@ def dst(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".dst" - return self._device.query(f"print({self._cmd_syntax}.dst)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.dst)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.dst`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -863,7 +877,9 @@ def name(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".name" - return self._device.query(f"print({self._cmd_syntax}.name)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.name)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1940,7 +1956,9 @@ def applysettings(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.applysettings()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.applysettings()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.applysettings()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1961,7 +1979,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1982,7 +2002,9 @@ def restoredefaults(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.restoredefaults()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.restoredefaults()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restoredefaults()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/localnode.py b/src/tm_devices/commands/_e3pief_ss/localnode.py index a347aec3e..22c01e367 100644 --- a/src/tm_devices/commands/_e3pief_ss/localnode.py +++ b/src/tm_devices/commands/_e3pief_ss/localnode.py @@ -326,7 +326,9 @@ def password(self, value: Union[str, float]) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.password = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.password = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.password`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -683,7 +685,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/scan.py b/src/tm_devices/commands/_e3pief_ss/scan.py index b13f8fb94..1648b48c1 100644 --- a/src/tm_devices/commands/_e3pief_ss/scan.py +++ b/src/tm_devices/commands/_e3pief_ss/scan.py @@ -145,7 +145,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -166,7 +168,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -264,7 +268,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -285,7 +291,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -383,7 +391,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -404,7 +414,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -502,7 +514,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -523,7 +537,9 @@ def set_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.set()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.set()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.set()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -607,7 +623,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -805,7 +823,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -837,7 +857,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -965,7 +987,9 @@ def abort(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.abort()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.abort()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.abort()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1248,7 +1272,9 @@ def nobufferexecute(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.nobufferexecute()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.nobufferexecute()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.nobufferexecute()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1270,7 +1296,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/schedule.py b/src/tm_devices/commands/_e3pief_ss/schedule.py index 8bd1ea054..812488bb2 100644 --- a/src/tm_devices/commands/_e3pief_ss/schedule.py +++ b/src/tm_devices/commands/_e3pief_ss/schedule.py @@ -557,7 +557,9 @@ def disable(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.disable()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.disable()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.disable()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/script.py b/src/tm_devices/commands/_e3pief_ss/script.py index 9486ae219..9cc8050ac 100644 --- a/src/tm_devices/commands/_e3pief_ss/script.py +++ b/src/tm_devices/commands/_e3pief_ss/script.py @@ -226,7 +226,9 @@ def restore(self, name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.restore({name})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.restore({name})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.restore()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -247,7 +249,9 @@ def run(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.run()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.run()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/scriptvar.py b/src/tm_devices/commands/_e3pief_ss/scriptvar.py index fc61aa327..38dfb6b7c 100644 --- a/src/tm_devices/commands/_e3pief_ss/scriptvar.py +++ b/src/tm_devices/commands/_e3pief_ss/scriptvar.py @@ -144,7 +144,9 @@ def name(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".name" - return self._device.query(f"print({self._cmd_syntax}.name)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.name)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -179,7 +181,9 @@ def name(self, value: Union[str, float]) -> None: self._cmd_syntax + ".name", value ) else: - self._device.write(f"{self._cmd_syntax}.name = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.name = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.name`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -236,7 +240,9 @@ def list(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.list()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.list()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.list()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -260,7 +266,9 @@ def run(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.run()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.run()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.run()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/setup_1.py b/src/tm_devices/commands/_e3pief_ss/setup_1.py index 323df3f10..3f5d3b314 100644 --- a/src/tm_devices/commands/_e3pief_ss/setup_1.py +++ b/src/tm_devices/commands/_e3pief_ss/setup_1.py @@ -121,7 +121,9 @@ def recall(self, id_: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.recall({id_})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.recall({id_})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.recall()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/slot.py b/src/tm_devices/commands/_e3pief_ss/slot.py index a09a50d63..01e373e60 100644 --- a/src/tm_devices/commands/_e3pief_ss/slot.py +++ b/src/tm_devices/commands/_e3pief_ss/slot.py @@ -165,7 +165,9 @@ def four(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".four" - return self._device.query(f"print({self._cmd_syntax}.four)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.four)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.four`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -196,7 +198,9 @@ def one(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".one" - return self._device.query(f"print({self._cmd_syntax}.one)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.one)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.one`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -227,7 +231,9 @@ def two(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".two" - return self._device.query(f"print({self._cmd_syntax}.two)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.two)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.two`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -590,7 +596,9 @@ def idn(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".idn" - return self._device.query(f"print({self._cmd_syntax}.idn)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.idn)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.idn`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/status.py b/src/tm_devices/commands/_e3pief_ss/status.py index e30320004..0cb1eb6ec 100644 --- a/src/tm_devices/commands/_e3pief_ss/status.py +++ b/src/tm_devices/commands/_e3pief_ss/status.py @@ -244,7 +244,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -277,7 +279,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -307,7 +311,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -340,7 +346,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -511,7 +519,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -544,7 +554,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -574,7 +586,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -607,7 +621,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -778,7 +794,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -811,7 +829,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -841,7 +861,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -874,7 +896,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1045,7 +1069,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1078,7 +1104,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1108,7 +1136,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1141,7 +1171,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1312,7 +1344,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1345,7 +1379,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1375,7 +1411,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1408,7 +1446,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1578,7 +1618,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1611,7 +1653,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1641,7 +1685,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1674,7 +1720,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1841,7 +1889,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1874,7 +1924,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1904,7 +1956,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1937,7 +1991,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2144,7 +2200,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2177,7 +2235,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2207,7 +2267,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2240,7 +2302,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2414,7 +2478,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2447,7 +2513,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2477,7 +2545,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2510,7 +2580,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2690,7 +2762,9 @@ def ntr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ntr" - return self._device.query(f"print({self._cmd_syntax}.ntr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ntr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2723,7 +2797,9 @@ def ntr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ntr", value ) else: - self._device.write(f"{self._cmd_syntax}.ntr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ntr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ntr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2753,7 +2829,9 @@ def ptr(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".ptr" - return self._device.query(f"print({self._cmd_syntax}.ptr)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.ptr)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2786,7 +2864,9 @@ def ptr(self, value: Union[str, float]) -> None: self._cmd_syntax + ".ptr", value ) else: - self._device.write(f"{self._cmd_syntax}.ptr = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.ptr = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.ptr`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -3179,7 +3259,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/trigger.py b/src/tm_devices/commands/_e3pief_ss/trigger.py index 7cdcea2c3..8e37c622d 100644 --- a/src/tm_devices/commands/_e3pief_ss/trigger.py +++ b/src/tm_devices/commands/_e3pief_ss/trigger.py @@ -495,7 +495,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -519,7 +521,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -743,7 +747,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -767,7 +773,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -886,7 +894,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/tsplink.py b/src/tm_devices/commands/_e3pief_ss/tsplink.py index b062660b6..d4764abac 100644 --- a/src/tm_devices/commands/_e3pief_ss/tsplink.py +++ b/src/tm_devices/commands/_e3pief_ss/tsplink.py @@ -105,7 +105,9 @@ def mode(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".mode" - return self._device.query(f"print({self._cmd_syntax}.mode)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.mode)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -141,7 +143,9 @@ def mode(self, value: Union[str, float]) -> None: self._cmd_syntax + ".mode", value ) else: - self._device.write(f"{self._cmd_syntax}.mode = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.mode = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.mode`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -351,7 +355,9 @@ def assert_(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.assert()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.assert()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.assert()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -375,7 +381,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -399,7 +407,9 @@ def release(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.release()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.release()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.release()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -424,7 +434,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -600,7 +612,9 @@ def node(self) -> str: try: if self._device.command_syntax_enabled: # type: ignore[union-attr] return self._cmd_syntax + ".node" - return self._device.query(f"print({self._cmd_syntax}.node)") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.node)" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -632,7 +646,9 @@ def node(self, value: Union[str, float]) -> None: self._cmd_syntax + ".node", value ) else: - self._device.write(f"{self._cmd_syntax}.node = {value}") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.node = {value}" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to access the ``{self._cmd_syntax}.node`` attribute." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -889,7 +905,9 @@ def writeport(self, data: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.writeport({data})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.writeport({data})" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.writeport()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_e3pief_ss/upgrade.py b/src/tm_devices/commands/_e3pief_ss/upgrade.py index 492fa525b..786f3fb52 100644 --- a/src/tm_devices/commands/_e3pief_ss/upgrade.py +++ b/src/tm_devices/commands/_e3pief_ss/upgrade.py @@ -77,7 +77,9 @@ def unit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.unit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.unit()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.unit()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_eat5s3_smudaqdmmss/dataqueue.py b/src/tm_devices/commands/_eat5s3_smudaqdmmss/dataqueue.py index 815a2b79a..e9739c702 100644 --- a/src/tm_devices/commands/_eat5s3_smudaqdmmss/dataqueue.py +++ b/src/tm_devices/commands/_eat5s3_smudaqdmmss/dataqueue.py @@ -129,7 +129,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_eat5s3_smudaqdmmss/fs.py b/src/tm_devices/commands/_eat5s3_smudaqdmmss/fs.py index eacc14911..70bcc14f6 100644 --- a/src/tm_devices/commands/_eat5s3_smudaqdmmss/fs.py +++ b/src/tm_devices/commands/_eat5s3_smudaqdmmss/fs.py @@ -236,7 +236,9 @@ def rmdir(self, path: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.rmdir("{path}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.rmdir("{path}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.rmdir()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_eat5s3_smudaqdmmss/userstring.py b/src/tm_devices/commands/_eat5s3_smudaqdmmss/userstring.py index 6170e40a9..5c4a1b595 100644 --- a/src/tm_devices/commands/_eat5s3_smudaqdmmss/userstring.py +++ b/src/tm_devices/commands/_eat5s3_smudaqdmmss/userstring.py @@ -86,7 +86,9 @@ def delete(self, name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'{self._cmd_syntax}.delete("{name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'{self._cmd_syntax}.delete("{name}")' + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.delete()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ed9nkc_daqss/tspnet.py b/src/tm_devices/commands/_ed9nkc_daqss/tspnet.py index ff811bfb3..dfd4c02f2 100644 --- a/src/tm_devices/commands/_ed9nkc_daqss/tspnet.py +++ b/src/tm_devices/commands/_ed9nkc_daqss/tspnet.py @@ -578,7 +578,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_efap3f_smuss/errorqueue.py b/src/tm_devices/commands/_efap3f_smuss/errorqueue.py index 8727c67e1..ef6347160 100644 --- a/src/tm_devices/commands/_efap3f_smuss/errorqueue.py +++ b/src/tm_devices/commands/_efap3f_smuss/errorqueue.py @@ -85,7 +85,9 @@ def clear(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.clear()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.clear()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.clear()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_efap3f_smuss/io.py b/src/tm_devices/commands/_efap3f_smuss/io.py index 54672ede3..640e6d8c6 100644 --- a/src/tm_devices/commands/_efap3f_smuss/io.py +++ b/src/tm_devices/commands/_efap3f_smuss/io.py @@ -91,7 +91,9 @@ def flush(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.flush()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.flush()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.flush()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_efap3f_smuss/timer.py b/src/tm_devices/commands/_efap3f_smuss/timer.py index 3c20af62e..240972893 100644 --- a/src/tm_devices/commands/_efap3f_smuss/timer.py +++ b/src/tm_devices/commands/_efap3f_smuss/timer.py @@ -51,7 +51,9 @@ def t(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print({self._cmd_syntax}.t())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print({self._cmd_syntax}.t())" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.t()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -94,7 +96,9 @@ def reset(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"{self._cmd_syntax}.reset()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"{self._cmd_syntax}.reset()" + ) except AttributeError as error: msg = f"No TSPDevice object was provided, unable to run the ``{self._cmd_syntax}.reset()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_5uw825_msodpomdodsa/__init__.py b/src/tm_devices/commands/_ffz2xs_dpodsamso/__init__.py similarity index 100% rename from src/tm_devices/commands/_5uw825_msodpomdodsa/__init__.py rename to src/tm_devices/commands/_ffz2xs_dpodsamso/__init__.py diff --git a/src/tm_devices/commands/_60ea5c_dpodsamso/bus.py b/src/tm_devices/commands/_ffz2xs_dpodsamso/bus.py similarity index 99% rename from src/tm_devices/commands/_60ea5c_dpodsamso/bus.py rename to src/tm_devices/commands/_ffz2xs_dpodsamso/bus.py index 30175f526..196bb4340 100644 --- a/src/tm_devices/commands/_60ea5c_dpodsamso/bus.py +++ b/src/tm_devices/commands/_ffz2xs_dpodsamso/bus.py @@ -3,7 +3,7 @@ """The bus commands module. These commands are used in the following models: -DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO70KDX +DPO5K, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5x02qd_msodpodsa/__init__.py b/src/tm_devices/commands/_fhrp27_msodpomdodsa/__init__.py similarity index 100% rename from src/tm_devices/commands/_5x02qd_msodpodsa/__init__.py rename to src/tm_devices/commands/_fhrp27_msodpomdodsa/__init__.py diff --git a/src/tm_devices/commands/_5uw825_msodpomdodsa/curve.py b/src/tm_devices/commands/_fhrp27_msodpomdodsa/curve.py similarity index 93% rename from src/tm_devices/commands/_5uw825_msodpomdodsa/curve.py rename to src/tm_devices/commands/_fhrp27_msodpomdodsa/curve.py index 07da69f28..7dbf558fb 100644 --- a/src/tm_devices/commands/_5uw825_msodpomdodsa/curve.py +++ b/src/tm_devices/commands/_fhrp27_msodpomdodsa/curve.py @@ -1,8 +1,9 @@ """The curve commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5KB, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5uw825_msodpomdodsa/date.py b/src/tm_devices/commands/_fhrp27_msodpomdodsa/date.py similarity index 86% rename from src/tm_devices/commands/_5uw825_msodpomdodsa/date.py rename to src/tm_devices/commands/_fhrp27_msodpomdodsa/date.py index cc5e45e60..67636d7f0 100644 --- a/src/tm_devices/commands/_5uw825_msodpomdodsa/date.py +++ b/src/tm_devices/commands/_fhrp27_msodpomdodsa/date.py @@ -1,8 +1,9 @@ """The date commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5KB, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5uw825_msodpomdodsa/mathvar.py b/src/tm_devices/commands/_fhrp27_msodpomdodsa/mathvar.py similarity index 94% rename from src/tm_devices/commands/_5uw825_msodpomdodsa/mathvar.py rename to src/tm_devices/commands/_fhrp27_msodpomdodsa/mathvar.py index 34309c4c7..fc143434e 100644 --- a/src/tm_devices/commands/_5uw825_msodpomdodsa/mathvar.py +++ b/src/tm_devices/commands/_fhrp27_msodpomdodsa/mathvar.py @@ -1,8 +1,9 @@ """The mathvar commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5KB, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5uw825_msodpomdodsa/save_and_recall.py b/src/tm_devices/commands/_fhrp27_msodpomdodsa/save_and_recall.py similarity index 90% rename from src/tm_devices/commands/_5uw825_msodpomdodsa/save_and_recall.py rename to src/tm_devices/commands/_fhrp27_msodpomdodsa/save_and_recall.py index 3915d6809..9b23e175e 100644 --- a/src/tm_devices/commands/_5uw825_msodpomdodsa/save_and_recall.py +++ b/src/tm_devices/commands/_fhrp27_msodpomdodsa/save_and_recall.py @@ -1,8 +1,9 @@ """The save_and_recall commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5KB, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_60ea5c_dpodsamso/__init__.py b/src/tm_devices/commands/_fk3z56_dpodsamso/__init__.py similarity index 100% rename from src/tm_devices/commands/_60ea5c_dpodsamso/__init__.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/__init__.py diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/acquire.py b/src/tm_devices/commands/_fk3z56_dpodsamso/acquire.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/acquire.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/acquire.py index fa3c33695..790908371 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/acquire.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/acquire.py @@ -1,7 +1,8 @@ """The acquire commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/allocate.py b/src/tm_devices/commands/_fk3z56_dpodsamso/allocate.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/allocate.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/allocate.py index f3cc825c1..ac739b6b2 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/allocate.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/allocate.py @@ -1,7 +1,8 @@ """The allocate commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/application.py b/src/tm_devices/commands/_fk3z56_dpodsamso/application.py similarity index 98% rename from src/tm_devices/commands/_5y90wx_dpodsamso/application.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/application.py index d42577f5c..f24f692cf 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/application.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/application.py @@ -1,7 +1,8 @@ """The application commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/autoset.py b/src/tm_devices/commands/_fk3z56_dpodsamso/autoset.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/autoset.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/autoset.py index 50c5d5faf..64a8e5425 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/autoset.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/autoset.py @@ -1,7 +1,8 @@ """The autoset commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/auxin.py b/src/tm_devices/commands/_fk3z56_dpodsamso/auxin.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/auxin.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/auxin.py index 35413f410..49360ea4c 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/auxin.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/auxin.py @@ -3,7 +3,8 @@ """The auxin commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/auxout.py b/src/tm_devices/commands/_fk3z56_dpodsamso/auxout.py similarity index 98% rename from src/tm_devices/commands/_5y90wx_dpodsamso/auxout.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/auxout.py index 39d20d1a1..6d50e2ec4 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/auxout.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/auxout.py @@ -1,7 +1,8 @@ """The auxout commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/bell.py b/src/tm_devices/commands/_fk3z56_dpodsamso/bell.py similarity index 88% rename from src/tm_devices/commands/_5y90wx_dpodsamso/bell.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/bell.py index 516f6a37e..e772fcca6 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/bell.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/bell.py @@ -1,7 +1,8 @@ """The bell commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/calibrate.py b/src/tm_devices/commands/_fk3z56_dpodsamso/calibrate.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/calibrate.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/calibrate.py index c3212a23f..4353f55b2 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/calibrate.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/calibrate.py @@ -1,7 +1,8 @@ """The calibrate commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/ch.py b/src/tm_devices/commands/_fk3z56_dpodsamso/ch.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/ch.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/ch.py index 2bcc14e8c..b21e546ed 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/ch.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/ch.py @@ -3,7 +3,8 @@ """The ch commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/clear.py b/src/tm_devices/commands/_fk3z56_dpodsamso/clear.py similarity index 87% rename from src/tm_devices/commands/_5y90wx_dpodsamso/clear.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/clear.py index 832cf4d71..9c666a31d 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/clear.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/clear.py @@ -1,7 +1,8 @@ """The clear commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/cmdbatch.py b/src/tm_devices/commands/_fk3z56_dpodsamso/cmdbatch.py similarity index 93% rename from src/tm_devices/commands/_5y90wx_dpodsamso/cmdbatch.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/cmdbatch.py index ca55ac138..192159c33 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/cmdbatch.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/cmdbatch.py @@ -1,7 +1,8 @@ """The cmdbatch commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/cq.py b/src/tm_devices/commands/_fk3z56_dpodsamso/cq.py similarity index 96% rename from src/tm_devices/commands/_5y90wx_dpodsamso/cq.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/cq.py index a189db4d8..56d74a480 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/cq.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/cq.py @@ -1,7 +1,8 @@ """The cq commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/cursor.py b/src/tm_devices/commands/_fk3z56_dpodsamso/cursor.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/cursor.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/cursor.py index da9adb9bb..1f5814a70 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/cursor.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/cursor.py @@ -2,7 +2,8 @@ """The cursor commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/curvenext.py b/src/tm_devices/commands/_fk3z56_dpodsamso/curvenext.py similarity index 92% rename from src/tm_devices/commands/_5y90wx_dpodsamso/curvenext.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/curvenext.py index e03b6df3a..6d9f51260 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/curvenext.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/curvenext.py @@ -1,7 +1,8 @@ """The curvenext commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/curvestream.py b/src/tm_devices/commands/_fk3z56_dpodsamso/curvestream.py similarity index 96% rename from src/tm_devices/commands/_5y90wx_dpodsamso/curvestream.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/curvestream.py index 230db29aa..7c07f6f82 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/curvestream.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/curvestream.py @@ -1,7 +1,8 @@ """The curvestream commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/custom.py b/src/tm_devices/commands/_fk3z56_dpodsamso/custom.py similarity index 98% rename from src/tm_devices/commands/_5y90wx_dpodsamso/custom.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/custom.py index a8fcad6ae..2d3e2d777 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/custom.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/custom.py @@ -2,7 +2,8 @@ """The custom commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/d.py b/src/tm_devices/commands/_fk3z56_dpodsamso/d.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/d.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/d.py index 6985e3a13..a66d6c94b 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/d.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/d.py @@ -1,7 +1,8 @@ """The d commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/data.py b/src/tm_devices/commands/_fk3z56_dpodsamso/data.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/data.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/data.py index 022091dea..32b146815 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/data.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/data.py @@ -1,7 +1,8 @@ """The data commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/delete.py b/src/tm_devices/commands/_fk3z56_dpodsamso/delete.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/delete.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/delete.py index f8a37479d..9dea1ed26 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/delete.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/delete.py @@ -1,7 +1,8 @@ """The delete commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/diag.py b/src/tm_devices/commands/_fk3z56_dpodsamso/diag.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/diag.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/diag.py index 811fae745..19808128b 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/diag.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/diag.py @@ -2,7 +2,8 @@ """The diag commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/display.py b/src/tm_devices/commands/_fk3z56_dpodsamso/display.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/display.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/display.py index 052578758..13d8de398 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/display.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/display.py @@ -3,7 +3,8 @@ """The display commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/email.py b/src/tm_devices/commands/_fk3z56_dpodsamso/email.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/email.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/email.py index 1b153e6c2..0a7eb528a 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/email.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/email.py @@ -2,7 +2,8 @@ """The email commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/export.py b/src/tm_devices/commands/_fk3z56_dpodsamso/export.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/export.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/export.py index 52316f4ba..b1f92afcb 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/export.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/export.py @@ -1,7 +1,8 @@ """The export commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/fastacq.py b/src/tm_devices/commands/_fk3z56_dpodsamso/fastacq.py similarity index 98% rename from src/tm_devices/commands/_5y90wx_dpodsamso/fastacq.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/fastacq.py index 9d74d8b34..2685652c3 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/fastacq.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/fastacq.py @@ -1,7 +1,8 @@ """The fastacq commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/filesystem.py b/src/tm_devices/commands/_fk3z56_dpodsamso/filesystem.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/filesystem.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/filesystem.py index 3a7ba6623..4a5733ac7 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/filesystem.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/filesystem.py @@ -1,7 +1,8 @@ """The filesystem commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/gpibusb.py b/src/tm_devices/commands/_fk3z56_dpodsamso/gpibusb.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/gpibusb.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/gpibusb.py index 71213429f..c07051832 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/gpibusb.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/gpibusb.py @@ -1,7 +1,8 @@ """The gpibusb commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/hardcopy.py b/src/tm_devices/commands/_fk3z56_dpodsamso/hardcopy.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/hardcopy.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/hardcopy.py index 76834b8d7..847490767 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/hardcopy.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/hardcopy.py @@ -1,7 +1,8 @@ """The hardcopy commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/hdr.py b/src/tm_devices/commands/_fk3z56_dpodsamso/hdr.py similarity index 93% rename from src/tm_devices/commands/_5y90wx_dpodsamso/hdr.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/hdr.py index 94bd1c3c7..6ba9ddec6 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/hdr.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/hdr.py @@ -1,7 +1,8 @@ """The hdr commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/histogram.py b/src/tm_devices/commands/_fk3z56_dpodsamso/histogram.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/histogram.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/histogram.py index 18506aac1..6de2f4adc 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/histogram.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/histogram.py @@ -1,7 +1,8 @@ """The histogram commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/horizontal.py b/src/tm_devices/commands/_fk3z56_dpodsamso/horizontal.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/horizontal.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/horizontal.py index 127cc12b3..18b76a09b 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/horizontal.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/horizontal.py @@ -2,7 +2,8 @@ """The horizontal commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/limit.py b/src/tm_devices/commands/_fk3z56_dpodsamso/limit.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/limit.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/limit.py index d9442c536..46f4bf2d5 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/limit.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/limit.py @@ -2,7 +2,8 @@ """The limit commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/mark.py b/src/tm_devices/commands/_fk3z56_dpodsamso/mark.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/mark.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/mark.py index 60931472b..5793c5404 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/mark.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/mark.py @@ -1,7 +1,8 @@ """The mark commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/mask.py b/src/tm_devices/commands/_fk3z56_dpodsamso/mask.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/mask.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/mask.py index fe4157cb1..ac4d9c567 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/mask.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/mask.py @@ -3,7 +3,8 @@ """The mask commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/math.py b/src/tm_devices/commands/_fk3z56_dpodsamso/math.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/math.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/math.py index 61960e021..96745d2b2 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/math.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/math.py @@ -3,7 +3,8 @@ """The math commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/matharbflt.py b/src/tm_devices/commands/_fk3z56_dpodsamso/matharbflt.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/matharbflt.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/matharbflt.py index f82131559..e0e27e93a 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/matharbflt.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/matharbflt.py @@ -1,7 +1,8 @@ """The matharbflt commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/mch.py b/src/tm_devices/commands/_fk3z56_dpodsamso/mch.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/mch.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/mch.py index 9e7f4e7c3..05c7cc3dd 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/mch.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/mch.py @@ -1,7 +1,8 @@ """The mch commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/measurement.py b/src/tm_devices/commands/_fk3z56_dpodsamso/measurement.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/measurement.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/measurement.py index 363502cd6..c7557e67e 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/measurement.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/measurement.py @@ -3,7 +3,8 @@ """The measurement commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/multiscope.py b/src/tm_devices/commands/_fk3z56_dpodsamso/multiscope.py similarity index 98% rename from src/tm_devices/commands/_5y90wx_dpodsamso/multiscope.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/multiscope.py index 34d8c7941..15e0a9a26 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/multiscope.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/multiscope.py @@ -1,7 +1,8 @@ """The multiscope commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/opcextended.py b/src/tm_devices/commands/_fk3z56_dpodsamso/opcextended.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/opcextended.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/opcextended.py index 1a40aa950..991f6796d 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/opcextended.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/opcextended.py @@ -1,7 +1,8 @@ """The opcextended commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/pcenable.py b/src/tm_devices/commands/_fk3z56_dpodsamso/pcenable.py similarity index 90% rename from src/tm_devices/commands/_5y90wx_dpodsamso/pcenable.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/pcenable.py index 4c2e6ba73..afb9a975f 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/pcenable.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/pcenable.py @@ -1,7 +1,8 @@ """The pcenable commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/recall.py b/src/tm_devices/commands/_fk3z56_dpodsamso/recall.py similarity index 98% rename from src/tm_devices/commands/_5y90wx_dpodsamso/recall.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/recall.py index 4c254f085..d34be0de8 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/recall.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/recall.py @@ -1,7 +1,8 @@ """The recall commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/ref.py b/src/tm_devices/commands/_fk3z56_dpodsamso/ref.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/ref.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/ref.py index dc030d788..4fc5401cf 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/ref.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/ref.py @@ -1,7 +1,8 @@ """The ref commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/save.py b/src/tm_devices/commands/_fk3z56_dpodsamso/save.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/save.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/save.py index 636843756..f62646c78 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/save.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/save.py @@ -2,7 +2,8 @@ """The save commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/save_and_recall.py b/src/tm_devices/commands/_fk3z56_dpodsamso/save_and_recall.py similarity index 91% rename from src/tm_devices/commands/_5y90wx_dpodsamso/save_and_recall.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/save_and_recall.py index 2666fff2b..fe4ff20b3 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/save_and_recall.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/save_and_recall.py @@ -1,7 +1,8 @@ """The save_and_recall commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/saveon.py b/src/tm_devices/commands/_fk3z56_dpodsamso/saveon.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/saveon.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/saveon.py index 474932b2a..b75452ffd 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/saveon.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/saveon.py @@ -1,7 +1,8 @@ """The saveon commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/search.py b/src/tm_devices/commands/_fk3z56_dpodsamso/search.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/search.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/search.py index 87fb65419..7775723ec 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/search.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/search.py @@ -3,7 +3,8 @@ """The search commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/select.py b/src/tm_devices/commands/_fk3z56_dpodsamso/select.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/select.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/select.py index 9c4f0147f..f2820dd16 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/select.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/select.py @@ -1,7 +1,8 @@ """The select commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/setup_1.py b/src/tm_devices/commands/_fk3z56_dpodsamso/setup_1.py similarity index 96% rename from src/tm_devices/commands/_5y90wx_dpodsamso/setup_1.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/setup_1.py index c4f21a15f..514ff8559 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/setup_1.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/setup_1.py @@ -1,7 +1,8 @@ """The setup_1 commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/system.py b/src/tm_devices/commands/_fk3z56_dpodsamso/system.py similarity index 95% rename from src/tm_devices/commands/_5y90wx_dpodsamso/system.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/system.py index ca776a6f2..0d02320b8 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/system.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/system.py @@ -1,7 +1,8 @@ """The system commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/teklink.py b/src/tm_devices/commands/_fk3z56_dpodsamso/teklink.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/teklink.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/teklink.py index cf2d699f0..66061fcd1 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/teklink.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/teklink.py @@ -1,7 +1,8 @@ """The teklink commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/test.py b/src/tm_devices/commands/_fk3z56_dpodsamso/test.py similarity index 98% rename from src/tm_devices/commands/_5y90wx_dpodsamso/test.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/test.py index f71385bee..e0d2fa1c6 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/test.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/test.py @@ -1,7 +1,8 @@ """The test commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/trig.py b/src/tm_devices/commands/_fk3z56_dpodsamso/trig.py similarity index 97% rename from src/tm_devices/commands/_5y90wx_dpodsamso/trig.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/trig.py index f1cfd7f7f..0a5ccfdc4 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/trig.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/trig.py @@ -1,7 +1,8 @@ """The trig commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/usbtmc.py b/src/tm_devices/commands/_fk3z56_dpodsamso/usbtmc.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/usbtmc.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/usbtmc.py index 74cdf6b00..8a71b3280 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/usbtmc.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/usbtmc.py @@ -1,7 +1,8 @@ """The usbtmc commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/visual.py b/src/tm_devices/commands/_fk3z56_dpodsamso/visual.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/visual.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/visual.py index d0da481dc..dce079a20 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/visual.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/visual.py @@ -3,7 +3,8 @@ """The visual commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/wavfrmstream.py b/src/tm_devices/commands/_fk3z56_dpodsamso/wavfrmstream.py similarity index 92% rename from src/tm_devices/commands/_5y90wx_dpodsamso/wavfrmstream.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/wavfrmstream.py index 2b791e7be..08297c9ee 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/wavfrmstream.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/wavfrmstream.py @@ -1,7 +1,8 @@ """The wavfrmstream commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/wfminpre.py b/src/tm_devices/commands/_fk3z56_dpodsamso/wfminpre.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/wfminpre.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/wfminpre.py index 59ce90a82..f6255132b 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/wfminpre.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/wfminpre.py @@ -2,7 +2,8 @@ """The wfminpre commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/wfmoutpre.py b/src/tm_devices/commands/_fk3z56_dpodsamso/wfmoutpre.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/wfmoutpre.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/wfmoutpre.py index 3342f563a..4c9ae6b7f 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/wfmoutpre.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/wfmoutpre.py @@ -1,7 +1,8 @@ """The wfmoutpre commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/wfmpre.py b/src/tm_devices/commands/_fk3z56_dpodsamso/wfmpre.py similarity index 94% rename from src/tm_devices/commands/_5y90wx_dpodsamso/wfmpre.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/wfmpre.py index 5f4105e44..9b53fa471 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/wfmpre.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/wfmpre.py @@ -1,7 +1,8 @@ """The wfmpre commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5y90wx_dpodsamso/zoom.py b/src/tm_devices/commands/_fk3z56_dpodsamso/zoom.py similarity index 99% rename from src/tm_devices/commands/_5y90wx_dpodsamso/zoom.py rename to src/tm_devices/commands/_fk3z56_dpodsamso/zoom.py index 565e05103..57ac54416 100644 --- a/src/tm_devices/commands/_5y90wx_dpodsamso/zoom.py +++ b/src/tm_devices/commands/_fk3z56_dpodsamso/zoom.py @@ -2,7 +2,8 @@ """The zoom commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, +MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/__init__.py b/src/tm_devices/commands/_fkjfe8_msodpodsa/__init__.py similarity index 100% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/__init__.py rename to src/tm_devices/commands/_fkjfe8_msodpodsa/__init__.py diff --git a/src/tm_devices/commands/_5x02qd_msodpodsa/time.py b/src/tm_devices/commands/_fkjfe8_msodpodsa/time.py similarity index 91% rename from src/tm_devices/commands/_5x02qd_msodpodsa/time.py rename to src/tm_devices/commands/_fkjfe8_msodpodsa/time.py index 12153b592..f2d64534e 100644 --- a/src/tm_devices/commands/_5x02qd_msodpodsa/time.py +++ b/src/tm_devices/commands/_fkjfe8_msodpodsa/time.py @@ -1,8 +1,8 @@ """The time commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, MSO2K, -MSO2KB, MSO5KB, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, +MSO2K, MSO2KB, MSO5K, MSO5KB, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/__init__.py b/src/tm_devices/commands/_fn2qbf_msodpo/__init__.py similarity index 100% rename from src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/__init__.py rename to src/tm_devices/commands/_fn2qbf_msodpo/__init__.py diff --git a/src/tm_devices/commands/_fn2qbf_msodpo/errordetector.py b/src/tm_devices/commands/_fn2qbf_msodpo/errordetector.py new file mode 100644 index 000000000..9924f64c3 --- /dev/null +++ b/src/tm_devices/commands/_fn2qbf_msodpo/errordetector.py @@ -0,0 +1,6092 @@ +# pylint: disable=too-many-lines +# pylint: disable=line-too-long +"""The errordetector commands module. + +These commands are used in the following models: +DPO5K, DPO7K, MSO5K + +THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. + +Please report an issue if one is found. + +Commands and Queries: + +:: + + - ERRORDetector:ALERT {ON|OFF|} + - ERRORDetector:ALERT? + - ERRORDetector:ALIGNCHARacter:MINus? + - ERRORDetector:ALIGNCHARacter:PLUS? + - ERRORDetector:ALIGNCHARacter:SYMBOL + - ERRORDetector:ALIGNCHARacter:SYMBOL? + - ERRORDetector:ALIGNCHARacter? + - ERRORDetector:ALIGNPRIMitive:MINUS? + - ERRORDetector:ALIGNPRIMitive:MINus? + - ERRORDetector:ALIGNPRIMitive:PLUS? + - ERRORDetector:ALIGNPRIMitive:PLUS? + - ERRORDetector:ALIGNPRIMitive:STATE {|OFF|ON} + - ERRORDetector:ALIGNPRIMitive:STATE? + - ERRORDetector:ALIGNPRIMitive:SYMBOL + - ERRORDetector:ALIGNPRIMitive:SYMBOL? + - ERRORDetector:ALIGNPRIMitive:SYMBOLS + - ERRORDetector:ALIGNPRIMitive:SYMBOLS? + - ERRORDetector:ALIGNPRIMitive? + - ERRORDetector:BIT:LENgth + - ERRORDetector:BIT:LENgth? + - ERRORDetector:BIT:SYNCPATtern:BITString + - ERRORDetector:BIT:SYNCPATtern:BITString? + - ERRORDetector:BIT:SYNCPATtern:DISParity {RDPLUS | RDMINUS} + - ERRORDetector:BIT:SYNCPATtern:DISParity? + - ERRORDetector:BIT:SYNCPATtern:MINus? + - ERRORDetector:BIT:SYNCPATtern:PLUS? + - ERRORDetector:BIT:SYNCPATtern? + - ERRORDetector:BIT:TEST DPO70000SX + - ERRORDetector:BIT:TEST:COUNt? + - ERRORDetector:BIT:TEST:DURATION? + - ERRORDetector:BIT:TEST:MAXALIGNS? + - ERRORDetector:BIT:TEST:RATE? + - ERRORDetector:BIT:TEST:RESults? + - ERRORDetector:BIT:TEST:SECOnds? + - ERRORDetector:BIT:TEST:STATUS:LOCK? + - ERRORDetector:BIT:TEST:STATUS:MAX_AP? + - ERRORDetector:BIT:TEST:STATUS:SIGNAL? + - ERRORDetector:BIT:TEST:STATUS:START? + - ERRORDetector:BIT:TEST:STATUS:SYNC? + - ERRORDetector:BIT:TEST:STATUS? + - ERRORDetector:BIT:TEST:TIME:DAYS? + - ERRORDetector:BIT:TEST:TIME:HOURS? + - ERRORDetector:BIT:TEST:TIME:MINUTES? + - ERRORDetector:BIT:TEST:TIME:SECOnds? + - ERRORDetector:BIT:TEST:TIME? + - ERRORDetector:BITRate {RATEcustom:CUSTOM |RATE312000000:RATE312 |RATE1250000000:RATE1250 |RATE1500000000:RATE1500 |RATE2125000000:RATE2125 |RATE2500000000:RATE2500 |RATE3000000000:RATE3000 |RATE3125000000:RATE3125 |RATE4250000000:RATE4250 |RATE5000000000:RATE5000 |RATE6000000000:RATE6000 |RATE6250000000:RATE6250}DPO70000SX{RATE3200 | RATE3600 | RATE4000 | RATE4400 | RATE4800 | RATE5200 | RATE5600 | RATE6000 | RATE6400 | CUSTOM} + - ERRORDetector:BITRate:VALue + - ERRORDetector:BITRate:VALue? + - ERRORDetector:BITRate? + - ERRORDetector:CHANnel {CH1 | CH2 | CH3 | CH4} + - ERRORDetector:CHANnel? + - ERRORDetector:DURATION:COUNt + - ERRORDetector:DURATION:COUNt? + - ERRORDetector:DURATION:SECOnds + - ERRORDetector:DURATION:SECOnds? + - ERRORDetector:DURATION:TIME + - ERRORDetector:DURATION:TIME:DAYS + - ERRORDetector:DURATION:TIME:DAYS? + - ERRORDetector:DURATION:TIME:HOURS + - ERRORDetector:DURATION:TIME:HOURS? + - ERRORDetector:DURATION:TIME:MINUTES + - ERRORDetector:DURATION:TIME:MINUTES? + - ERRORDetector:DURATION:TIME:SECOnds + - ERRORDetector:DURATION:TIME:SECOnds? + - ERRORDetector:DURATION:TIME? + - ERRORDetector:ERRORLIMIT + - ERRORDetector:ERRORLIMIT? + - ERRORDetector:FILE:RECAll + - ERRORDetector:FILE:SAVe + - ERRORDetector:FONTSIze {DEFAULT | LARGE | XLARGE} + - ERRORDetector:FONTSIze? + - ERRORDetector:FRAme:EOF + - ERRORDetector:FRAme:EOF? + - ERRORDetector:FRAme:INITIALCRCVALue + - ERRORDetector:FRAme:INITIALCRCVALue? + - ERRORDetector:FRAme:SOF + - ERRORDetector:FRAme:SOF? + - ERRORDetector:FRAme:TEST + - ERRORDetector:FRAme:TEST:BADCHARS? + - ERRORDetector:FRAme:TEST:COUNt? + - ERRORDetector:FRAme:TEST:DISParity? + - ERRORDetector:FRAme:TEST:DURATION? + - ERRORDetector:FRAme:TEST:MAXALIGNS? + - ERRORDetector:FRAme:TEST:RATE? + - ERRORDetector:FRAme:TEST:RESults? + - ERRORDetector:FRAme:TEST:SECOnds? + - ERRORDetector:FRAme:TEST:STATUS:LOCK? + - ERRORDetector:FRAme:TEST:STATUS:MAX_AP? + - ERRORDetector:FRAme:TEST:STATUS:SIGNAL? + - ERRORDetector:FRAme:TEST:STATUS:START? + - ERRORDetector:FRAme:TEST:STATUS? + - ERRORDetector:FRAme:TEST:TIME:DAYS? + - ERRORDetector:FRAme:TEST:TIME:HOURS? + - ERRORDetector:FRAme:TEST:TIME:MINUTES? + - ERRORDetector:FRAme:TEST:TIME:SECOnds? + - ERRORDetector:FRAme:TEST:TIME? + - ERRORDetector:FRAme:TEST? + - ERRORDetector:FRAme? + - ERRORDetector:MAXALIGNS + - ERRORDetector:MAXALIGNS? + - ERRORDetector:PATTERNNAME + - ERRORDetector:PATTERNNAME? + - ERRORDetector:PREset {SATA1_CJTPAT_BIT | SATA2_CJTPAT_BIT | SATA3_CJTPAT_BIT | SATA3_FRAME | SATA3_CHAR | SATA3_HFTP_BIT | SATA3_LBP_BIT | SATA3_LFTP_BIT | SATA3_MFTP_BIT | USB3_SYMBOL | USB3_CHAR | PCIE1_COMP_BIT | PCIE2_COMP_BIT | ANY_CJTPAT_BIT | ANY_CJTPAT_CHAR | CUSTOM}DPO70000SX{CUSTOM_SETUP | PRBS7_BIT_ERROR | PRBS9_BIT_ERROR | PRBS11_BIT_ERROR | PRBS16_BIT_ERROR | PRBS23_BIT_ERROR} + - ERRORDetector:PREset:APPLY + - ERRORDetector:SAVEIMAGE {OFF | ON} + - ERRORDetector:SAVEIMAGE? + - ERRORDetector:SAVEWFM {OFF | ON} + - ERRORDetector:SAVEWFM? + - ERRORDetector:SCRAMBLED {ON | OFF} + - ERRORDetector:SCRAMBLED? + - ERRORDetector:SENDEMAIL {OFF | ON} + - ERRORDetector:SENDEMAIL? + - ERRORDetector:SIGnaltype {SATAGEN| USB3|PCIEGEN|ANY8B10B|PRBS7|PRBS9}?DPO70000SX{CUSTOM | PRBS7 | PRBS9 | PRBS11 | PRBS16 |PRBS23} + - ERRORDetector:SSC {ON|OFF} + - ERRORDetector:SSC? + - ERRORDetector:STANdard + - ERRORDetector:STANdard? + - ERRORDetector:STATE {| OFF | ON}?DPO70000SX{OFF | ON} + - ERRORDetector:STATE? + - ERRORDetector:STATus? + - ERRORDetector:STOPWHEN DPO70000SX + - ERRORDetector:STOPWHEN? + - ERRORDetector:SYMBOL:TEST + - ERRORDetector:SYMBOL:TEST:BADCHARS? + - ERRORDetector:SYMBOL:TEST:BITCOUNT? + - ERRORDetector:SYMBOL:TEST:BITDURATION? + - ERRORDetector:SYMBOL:TEST:BITRate? + - ERRORDetector:SYMBOL:TEST:COUNt? + - ERRORDetector:SYMBOL:TEST:DISParity? + - ERRORDetector:SYMBOL:TEST:DURATION? + - ERRORDetector:SYMBOL:TEST:MAXALIGNS? + - ERRORDetector:SYMBOL:TEST:RATE? + - ERRORDetector:SYMBOL:TEST:RESults? + - ERRORDetector:SYMBOL:TEST:SECOnds? + - ERRORDetector:SYMBOL:TEST:STATUS:LOCK? + - ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP? + - ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL? + - ERRORDetector:SYMBOL:TEST:STATUS:START? + - ERRORDetector:SYMBOL:TEST:STATUS? + - ERRORDetector:SYMBOL:TEST:TIME:DAYS? + - ERRORDetector:SYMBOL:TEST:TIME:HOURS? + - ERRORDetector:SYMBOL:TEST:TIME:MINUTES? + - ERRORDetector:SYMBOL:TEST:TIME:SECOnds? + - ERRORDetector:SYMBOL:TEST:TIME? + - ERRORDetector:SYMBOL:TEST? + - ERRORDetector:SYMBOL? + - ERRORDetector:TIMEformat {DDHHMMSS | SECONDS} + - ERRORDetector:TIMEformat? + - ERRORDetector:TYPe {BIT | FRAME | SYMBOL | CHARACTER | PRBS7 | PRBS9} + - ERRORDetector:TYPe? +""" # noqa: E501 +from typing import Dict, Optional, TYPE_CHECKING + +from .._helpers import ( + DefaultDictPassKeyToFactory, + SCPICmdRead, + SCPICmdWrite, + SCPICmdWriteNoArguments, + ValidatedDynamicNumberCmd, +) + +if TYPE_CHECKING: + from tm_devices.drivers.pi.pi_device import PIDevice + + +class ErrordetectorType(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:TYPe`` command. + + **Description:** + - This command sets or queries the error detector type. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:TYPe?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:TYPe {BIT | FRAME | SYMBOL | CHARACTER | PRBS7 | PRBS9} + - ERRORDetector:TYPe? + + **Info:** + - ``BIT`` sets the error detector type to bit. + - ``FRAME`` sets the error detector type to frame. + - ``SYMBOL`` sets the error detector type to symbol. + - ``CHARACTER`` sets the error detector type to character. + - ``PRBS7`` sets the error detector type to PRBS7. + - ``PRBS9`` sets the error detector type to PRBS9. + """ + + +class ErrordetectorTimeformat(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:TIMEformat`` command. + + **Description:** + - This command sets or queries error detector Elapsed Time Format as DDHHMMSS or Seconds. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:TIMEformat?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:TIMEformat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:TIMEformat value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:TIMEformat {DDHHMMSS | SECONDS} + - ERRORDetector:TIMEformat? + """ + + +class ErrordetectorSymbolTestTimeSeconds(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds`` command. + + **Description:** + - This command queries the elapsed time seconds component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:SECOnds? + """ + + +class ErrordetectorSymbolTestTimeMinutes(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES`` command. + + **Description:** + - This command queries the elapsed time minutes component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:MINUTES? + """ + + +class ErrordetectorSymbolTestTimeHours(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:TIME:HOURS`` command. + + **Description:** + - This command queries the elapsed time hours component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME:HOURS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:HOURS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:HOURS? + """ + + +class ErrordetectorSymbolTestTimeDays(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:TIME:DAYS`` command. + + **Description:** + - This command queries the elapsed time days component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME:DAYS?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME:DAYS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:DAYS? + """ + + +class ErrordetectorSymbolTestTime(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:TIME`` command. + + **Description:** + - This command queries the elapsed time (in days, hours, minutes, and seconds) for symbol + error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME? + + Properties: + - ``.days``: The ``ERRORDetector:SYMBOL:TEST:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:SYMBOL:TEST:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._days = ErrordetectorSymbolTestTimeDays(device, f"{self._cmd_syntax}:DAYS") + self._hours = ErrordetectorSymbolTestTimeHours(device, f"{self._cmd_syntax}:HOURS") + self._minutes = ErrordetectorSymbolTestTimeMinutes(device, f"{self._cmd_syntax}:MINUTES") + self._seconds = ErrordetectorSymbolTestTimeSeconds(device, f"{self._cmd_syntax}:SECOnds") + + @property + def days(self) -> ErrordetectorSymbolTestTimeDays: + """Return the ``ERRORDetector:SYMBOL:TEST:TIME:DAYS`` command. + + **Description:** + - This command queries the elapsed time days component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME:DAYS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:DAYS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:DAYS? + """ + return self._days + + @property + def hours(self) -> ErrordetectorSymbolTestTimeHours: + """Return the ``ERRORDetector:SYMBOL:TEST:TIME:HOURS`` command. + + **Description:** + - This command queries the elapsed time hours component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME:HOURS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:HOURS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:HOURS? + """ + return self._hours + + @property + def minutes(self) -> ErrordetectorSymbolTestTimeMinutes: + """Return the ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES`` command. + + **Description:** + - This command queries the elapsed time minutes component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:MINUTES? + """ + return self._minutes + + @property + def seconds(self) -> ErrordetectorSymbolTestTimeSeconds: + """Return the ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds`` command. + + **Description:** + - This command queries the elapsed time seconds component for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME:SECOnds? + """ + return self._seconds + + +class ErrordetectorSymbolTestStatusStart(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:STATUS:START`` command. + + **Description:** + - This command queries the START status for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS:START?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:START?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:START? + """ + + +class ErrordetectorSymbolTestStatusSignal(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL`` command. + + **Description:** + - This command queries the SIGNAL status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL? + """ + + +class ErrordetectorSymbolTestStatusMaxAp(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP`` command. + + **Description:** + - This command queries the ``MAX_AP`` status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP? + """ + + +class ErrordetectorSymbolTestStatusLock(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK`` command. + + **Description:** + - This command queries the LOCK status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:LOCK? + """ + + +class ErrordetectorSymbolTestStatus(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:STATUS`` command. + + **Description:** + - This command queries all of the status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS? + + Properties: + - ``.lock``: The ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK`` command. + - ``.max_ap``: The ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP`` command. + - ``.signal``: The ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL`` command. + - ``.start``: The ``ERRORDetector:SYMBOL:TEST:STATUS:START`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lock = ErrordetectorSymbolTestStatusLock(device, f"{self._cmd_syntax}:LOCK") + self._max_ap = ErrordetectorSymbolTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") + self._signal = ErrordetectorSymbolTestStatusSignal(device, f"{self._cmd_syntax}:SIGNAL") + self._start = ErrordetectorSymbolTestStatusStart(device, f"{self._cmd_syntax}:START") + + @property + def lock(self) -> ErrordetectorSymbolTestStatusLock: + """Return the ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK`` command. + + **Description:** + - This command queries the LOCK status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:LOCK? + """ + return self._lock + + @property + def max_ap(self) -> ErrordetectorSymbolTestStatusMaxAp: + """Return the ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP`` command. + + **Description:** + - This command queries the ``MAX_AP`` status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP? + """ + return self._max_ap + + @property + def signal(self) -> ErrordetectorSymbolTestStatusSignal: + """Return the ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL`` command. + + **Description:** + - This command queries the SIGNAL status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL? + """ + return self._signal + + @property + def start(self) -> ErrordetectorSymbolTestStatusStart: + """Return the ``ERRORDetector:SYMBOL:TEST:STATUS:START`` command. + + **Description:** + - This command queries the START status for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:START?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS:START?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS:START? + """ + return self._start + + +class ErrordetectorSymbolTestSeconds(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:SECOnds`` command. + + **Description:** + - This command queries the elapsed duration time (in seconds) for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:SECOnds?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:SECOnds? + """ + + +class ErrordetectorSymbolTestResults(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:RESults`` command. + + **Description:** + - This command queries all of the results for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:RESults?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:RESults?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:RESults? + """ + + +class ErrordetectorSymbolTestRate(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:RATE`` command. + + **Description:** + - This command queries the calculated symbol error rate for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:RATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:RATE?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:RATE? + """ + + +class ErrordetectorSymbolTestMaxaligns(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:MAXALIGNS`` command. + + **Description:** + - This command queries the maximum consecutive skip order sets encountered for symbol error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:MAXALIGNS?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:MAXALIGNS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:MAXALIGNS? + """ + + +class ErrordetectorSymbolTestDuration(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:DURATION`` command. + + **Description:** + - This command queries the elapsed duration (in units of symbols) for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:DURATION?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:DURATION?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:DURATION? + """ + + +class ErrordetectorSymbolTestDisparity(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:DISParity`` command. + + **Description:** + - This command queries the disparity error count for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:DISParity?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:DISParity?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:DISParity? + """ + + +class ErrordetectorSymbolTestCount(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:COUNt`` command. + + **Description:** + - This command queries the symbol error count for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:COUNt?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:COUNt? + """ + + +class ErrordetectorSymbolTestBitrate(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:BITRate`` command. + + **Description:** + - This command queries the calculated bit error rate for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BITRate?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:BITRate?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BITRate? + """ + + +class ErrordetectorSymbolTestBitduration(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:BITDURATION`` command. + + **Description:** + - This command queries the elapsed duration in units of bits tested for symbol error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BITDURATION?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:BITDURATION?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BITDURATION? + """ + + +class ErrordetectorSymbolTestBitcount(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:BITCOUNT`` command. + + **Description:** + - This command queries the bit error count (number of bad bits) for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BITCOUNT?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:BITCOUNT?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BITCOUNT? + """ + + +class ErrordetectorSymbolTestBadchars(SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST:BADCHARS`` command. + + **Description:** + - This command queries the illegal character count for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BADCHARS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:BADCHARS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BADCHARS? + """ + + +# pylint: disable=too-many-instance-attributes +class ErrordetectorSymbolTest(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:SYMBOL:TEST`` command. + + **Description:** + - This command initiates and terminates symbol error testing for the arguments START and + STOP. Zeroes the symbol error results for the argument CLEAR. Re-synchronizes the + recovered clock for the argument SYNC. This command also queries all of the symbol test + settings and results for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SYMBOL:TEST value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST + - ERRORDetector:SYMBOL:TEST? + + **Info:** + - ``START`` initiates symbol and bit error testing. + - ``STOP`` terminates symbol and bit error testing. + - ``CLEAR`` zeroes the symbol and bit error counts, duration, bit error rate, and symbol + error rate. + - ``SYNC`` re-synchronizes the recovered clock. + + Properties: + - ``.badchars``: The ``ERRORDetector:SYMBOL:TEST:BADCHARS`` command. + - ``.bitcount``: The ``ERRORDetector:SYMBOL:TEST:BITCOUNT`` command. + - ``.bitduration``: The ``ERRORDetector:SYMBOL:TEST:BITDURATION`` command. + - ``.bitrate``: The ``ERRORDetector:SYMBOL:TEST:BITRate`` command. + - ``.count``: The ``ERRORDetector:SYMBOL:TEST:COUNt`` command. + - ``.disparity``: The ``ERRORDetector:SYMBOL:TEST:DISParity`` command. + - ``.duration``: The ``ERRORDetector:SYMBOL:TEST:DURATION`` command. + - ``.maxaligns``: The ``ERRORDetector:SYMBOL:TEST:MAXALIGNS`` command. + - ``.rate``: The ``ERRORDetector:SYMBOL:TEST:RATE`` command. + - ``.results``: The ``ERRORDetector:SYMBOL:TEST:RESults`` command. + - ``.seconds``: The ``ERRORDetector:SYMBOL:TEST:SECOnds`` command. + - ``.status``: The ``ERRORDetector:SYMBOL:TEST:STATUS`` command. + - ``.time``: The ``ERRORDetector:SYMBOL:TEST:TIME`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._badchars = ErrordetectorSymbolTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") + self._bitcount = ErrordetectorSymbolTestBitcount(device, f"{self._cmd_syntax}:BITCOUNT") + self._bitduration = ErrordetectorSymbolTestBitduration( + device, f"{self._cmd_syntax}:BITDURATION" + ) + self._bitrate = ErrordetectorSymbolTestBitrate(device, f"{self._cmd_syntax}:BITRate") + self._count = ErrordetectorSymbolTestCount(device, f"{self._cmd_syntax}:COUNt") + self._disparity = ErrordetectorSymbolTestDisparity(device, f"{self._cmd_syntax}:DISParity") + self._duration = ErrordetectorSymbolTestDuration(device, f"{self._cmd_syntax}:DURATION") + self._maxaligns = ErrordetectorSymbolTestMaxaligns(device, f"{self._cmd_syntax}:MAXALIGNS") + self._rate = ErrordetectorSymbolTestRate(device, f"{self._cmd_syntax}:RATE") + self._results = ErrordetectorSymbolTestResults(device, f"{self._cmd_syntax}:RESults") + self._seconds = ErrordetectorSymbolTestSeconds(device, f"{self._cmd_syntax}:SECOnds") + self._status = ErrordetectorSymbolTestStatus(device, f"{self._cmd_syntax}:STATUS") + self._time = ErrordetectorSymbolTestTime(device, f"{self._cmd_syntax}:TIME") + + @property + def badchars(self) -> ErrordetectorSymbolTestBadchars: + """Return the ``ERRORDetector:SYMBOL:TEST:BADCHARS`` command. + + **Description:** + - This command queries the illegal character count for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BADCHARS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:BADCHARS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BADCHARS? + """ + return self._badchars + + @property + def bitcount(self) -> ErrordetectorSymbolTestBitcount: + """Return the ``ERRORDetector:SYMBOL:TEST:BITCOUNT`` command. + + **Description:** + - This command queries the bit error count (number of bad bits) for symbol error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BITCOUNT?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:BITCOUNT?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BITCOUNT? + """ + return self._bitcount + + @property + def bitduration(self) -> ErrordetectorSymbolTestBitduration: + """Return the ``ERRORDetector:SYMBOL:TEST:BITDURATION`` command. + + **Description:** + - This command queries the elapsed duration in units of bits tested for symbol error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BITDURATION?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:BITDURATION?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BITDURATION? + """ + return self._bitduration + + @property + def bitrate(self) -> ErrordetectorSymbolTestBitrate: + """Return the ``ERRORDetector:SYMBOL:TEST:BITRate`` command. + + **Description:** + - This command queries the calculated bit error rate for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:BITRate?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:BITRate?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:BITRate? + """ + return self._bitrate + + @property + def count(self) -> ErrordetectorSymbolTestCount: + """Return the ``ERRORDetector:SYMBOL:TEST:COUNt`` command. + + **Description:** + - This command queries the symbol error count for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:COUNt?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:COUNt?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:COUNt? + """ + return self._count + + @property + def disparity(self) -> ErrordetectorSymbolTestDisparity: + """Return the ``ERRORDetector:SYMBOL:TEST:DISParity`` command. + + **Description:** + - This command queries the disparity error count for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:DISParity?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:DISParity?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:DISParity? + """ + return self._disparity + + @property + def duration(self) -> ErrordetectorSymbolTestDuration: + """Return the ``ERRORDetector:SYMBOL:TEST:DURATION`` command. + + **Description:** + - This command queries the elapsed duration (in units of symbols) for symbol error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:DURATION?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:DURATION?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:DURATION? + """ + return self._duration + + @property + def maxaligns(self) -> ErrordetectorSymbolTestMaxaligns: + """Return the ``ERRORDetector:SYMBOL:TEST:MAXALIGNS`` command. + + **Description:** + - This command queries the maximum consecutive skip order sets encountered for symbol + error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:MAXALIGNS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:MAXALIGNS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:MAXALIGNS? + """ + return self._maxaligns + + @property + def rate(self) -> ErrordetectorSymbolTestRate: + """Return the ``ERRORDetector:SYMBOL:TEST:RATE`` command. + + **Description:** + - This command queries the calculated symbol error rate for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:RATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:RATE?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:RATE? + """ + return self._rate + + @property + def results(self) -> ErrordetectorSymbolTestResults: + """Return the ``ERRORDetector:SYMBOL:TEST:RESults`` command. + + **Description:** + - This command queries all of the results for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:RESults?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:RESults?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:RESults? + """ + return self._results + + @property + def seconds(self) -> ErrordetectorSymbolTestSeconds: + """Return the ``ERRORDetector:SYMBOL:TEST:SECOnds`` command. + + **Description:** + - This command queries the elapsed duration time (in seconds) for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:SECOnds? + """ + return self._seconds + + @property + def status(self) -> ErrordetectorSymbolTestStatus: + """Return the ``ERRORDetector:SYMBOL:TEST:STATUS`` command. + + **Description:** + - This command queries all of the status for the symbol error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:STATUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:SYMBOL:TEST:STATUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:STATUS? + + Sub-properties: + - ``.lock``: The ``ERRORDetector:SYMBOL:TEST:STATUS:LOCK`` command. + - ``.max_ap``: The ``ERRORDetector:SYMBOL:TEST:STATUS:MAX_AP`` command. + - ``.signal``: The ``ERRORDetector:SYMBOL:TEST:STATUS:SIGNAL`` command. + - ``.start``: The ``ERRORDetector:SYMBOL:TEST:STATUS:START`` command. + """ + return self._status + + @property + def time(self) -> ErrordetectorSymbolTestTime: + """Return the ``ERRORDetector:SYMBOL:TEST:TIME`` command. + + **Description:** + - This command queries the elapsed time (in days, hours, minutes, and seconds) for + symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST:TIME?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST:TIME? + + Sub-properties: + - ``.days``: The ``ERRORDetector:SYMBOL:TEST:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:SYMBOL:TEST:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:SYMBOL:TEST:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:SYMBOL:TEST:TIME:SECOnds`` command. + """ + return self._time + + +class ErrordetectorSymbol(SCPICmdRead): + """The ``ERRORDetector:SYMBOL`` command. + + **Description:** + - This command queries all symbol error settings, status, and results. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL? + + Properties: + - ``.test``: The ``ERRORDetector:SYMBOL:TEST`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._test = ErrordetectorSymbolTest(device, f"{self._cmd_syntax}:TEST") + + @property + def test(self) -> ErrordetectorSymbolTest: + """Return the ``ERRORDetector:SYMBOL:TEST`` command. + + **Description:** + - This command initiates and terminates symbol error testing for the arguments START and + STOP. Zeroes the symbol error results for the argument CLEAR. Re-synchronizes the + recovered clock for the argument SYNC. This command also queries all of the symbol + test settings and results for symbol error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL:TEST?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL:TEST?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SYMBOL:TEST value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL:TEST + - ERRORDetector:SYMBOL:TEST? + + **Info:** + - ``START`` initiates symbol and bit error testing. + - ``STOP`` terminates symbol and bit error testing. + - ``CLEAR`` zeroes the symbol and bit error counts, duration, bit error rate, and symbol + error rate. + - ``SYNC`` re-synchronizes the recovered clock. + + Sub-properties: + - ``.badchars``: The ``ERRORDetector:SYMBOL:TEST:BADCHARS`` command. + - ``.bitcount``: The ``ERRORDetector:SYMBOL:TEST:BITCOUNT`` command. + - ``.bitduration``: The ``ERRORDetector:SYMBOL:TEST:BITDURATION`` command. + - ``.bitrate``: The ``ERRORDetector:SYMBOL:TEST:BITRate`` command. + - ``.count``: The ``ERRORDetector:SYMBOL:TEST:COUNt`` command. + - ``.disparity``: The ``ERRORDetector:SYMBOL:TEST:DISParity`` command. + - ``.duration``: The ``ERRORDetector:SYMBOL:TEST:DURATION`` command. + - ``.maxaligns``: The ``ERRORDetector:SYMBOL:TEST:MAXALIGNS`` command. + - ``.rate``: The ``ERRORDetector:SYMBOL:TEST:RATE`` command. + - ``.results``: The ``ERRORDetector:SYMBOL:TEST:RESults`` command. + - ``.seconds``: The ``ERRORDetector:SYMBOL:TEST:SECOnds`` command. + - ``.status``: The ``ERRORDetector:SYMBOL:TEST:STATUS`` command. + - ``.time``: The ``ERRORDetector:SYMBOL:TEST:TIME`` command. + """ + return self._test + + +class ErrordetectorStopwhen(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:STOPWHEN`` command. + + **Description:** + - This command sets or queries the stopping condition. The test can be stopped when the + count, time, or number of errors elapses. If the STOPWHEN value is MANUAL, the test runs + until a TEST STOP command is received. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STOPWHEN?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STOPWHEN?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:STOPWHEN value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STOPWHEN DPO70000SX + - ERRORDetector:STOPWHEN? + + **Info:** + - ``MANUAL`` indicates that the test must be stopped by issuing a TEST STOP command. This is + the default. + - ``COUNT`` stops the test when ``DURATION:COUNT`` comparisons are made. The comparisons can + be bit, frame, symbol, or character as appropriate for the ``TEST:TYPE``. + - ``TIME`` stops the test when ``DURATION:TIME`` elapses. + - ``ERROR`` stops the test when the number of errors ≥ ERRORLIMIT. + """ + + +class ErrordetectorStatus(SCPICmdRead): + """The ``ERRORDetector:STATus`` command. + + **Description:** + - Queries only the 'most significant' or 'summary' status of the error detector. All of the + status flags for each test type may be obtained from the + ``ERRORdetector::TEST:STATUS`` commands. LOCK refers to the recovered clock. + Signal refers to the cable carrying the signal to the scope. SYNC refers to bit error + tests that require a sync pattern. STOPPED/COUNTING refer to whether the error detector is + testing for errors. ``MAX_AP`` refers to whether the error detector has detected the + maximum consecutive Align (or SkipSets) Primitives as specified in the ERRORDetector: + MAXALIGNS command + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STATus?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STATus?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STATus? + """ + + +class ErrordetectorState(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:STATE`` command. + + **Description:** + - This command sets or queries the status of the error option. STATE must be ON to use the + error detector feature. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STATE?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:STATE value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STATE {| OFF | ON}?DPO70000SX{OFF | ON} + - ERRORDetector:STATE? + + **Info:** + - ``ON`` enables the software error detector feature. + - ``OFF`` disables the software error detector feature. This is the default. + - ```` = 0 disables the error detector; any other value enables the error detector. + """ + + +class ErrordetectorStandard(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:STANdard`` command. + + **Description:** + - This command sets or queries the standard selection for error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STANdard?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STANdard?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:STANdard value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STANdard + - ERRORDetector:STANdard? + + **Info:** + - ```` is the supported standard. + """ + + +class ErrordetectorSsc(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:SSC`` command. + + **Description:** + - This command sets or queries the status of the spread spectrum clock tracking option. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SSC?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SSC?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SSC value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SSC {ON|OFF} + - ERRORDetector:SSC? + + **Info:** + - ``ON`` enables spread spectrum clock tracking. For error detector, the spread spectrum + clock tracking should always be turned on. + - ``OFF`` disables spread spectrum clock tracking. For serial trigger, the spread spectrum + clock tracking is turned off. + """ + + +class ErrordetectorSignaltype(SCPICmdWrite): + """The ``ERRORDetector:SIGnaltype`` command. + + **Description:** + - This command sets or queries error detector Signal Type control. Setting the signal type + establishes the bit rate appropriate for the standard, as well as establishing the testing + algorithm. Custom bit rates may be used as well. See the ``ERRORDetector:BITRATE`` and + ``ERRORDetector:BITRATE:VALue`` commands. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:SIGnaltype value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SIGnaltype {SATAGEN| USB3|PCIEGEN|ANY8B10B|PRBS7|PRBS9}?DPO70000SX{CUSTOM | PRBS7 | PRBS9 | PRBS11 | PRBS16 |PRBS23} + + **Info:** + - ``The DPO70000SX only supports PRBS7, PRBS9, PRBS11, PRBS16, PRBS23, and CUSTOM.`` + """ # noqa: E501 + + +class ErrordetectorSendemail(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:SENDEMAIL`` command. + + **Description:** + - This command sets or queries error detector Send Email control. When set to ON, a email + will be sent to the recipient, defined elsewhere in the PI, when the error detector + detects an error (because detecting an error triggers the instrument). The default number + of emails sent is 1, so that you do not overflow your inbox. If you also set the SaveImage + or SaveWfm parameters to ON, the email will contain these items. Send Email is an + alternate way of setting the E-mail on Trigger actions defined elsewhere in the PI. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SENDEMAIL?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SENDEMAIL?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SENDEMAIL value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SENDEMAIL {OFF | ON} + - ERRORDetector:SENDEMAIL? + + **Info:** + - ``OFF`` disables the send email feature. + - ``ON`` enables the send email feature. + """ + + +class ErrordetectorScrambled(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:SCRAMBLED`` command. + + **Description:** + - This command sets or queries the status of the error detection data scrambling option. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SCRAMBLED?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SCRAMBLED?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SCRAMBLED value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SCRAMBLED {ON | OFF} + - ERRORDetector:SCRAMBLED? + + **Info:** + - ``ON`` enables the error detection data scrambling option. This is the default option. + - ``OFF`` disables the error detection data scrambling option. + """ + + +class ErrordetectorSavewfm(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:SAVEWFM`` command. + + **Description:** + - This command sets or queries error detector Save Waveform (WFM) control. When set to ON, a + waveform object will be made when the error detector detects an error (because detecting + an error triggers the instrument). The waveforms are saved in the + C:UsersTektronixTekScopeSaveOnTrigger directory. A default limit of 10 screen + shots prevents overflowing your disk drive should the error detector sense massive errors, + such as when you disconnect the signal. If you also set the SendEmail parameter to ON, the + saved waveform (wfm object) is emailed to the recipient (set elsewhere in the trigger PI) + as an attachedment. SaveImage is an alternate way of setting the Save on Trigger actions + defined elsewhere in the PI. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SAVEWFM?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SAVEWFM?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SAVEWFM value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SAVEWFM {OFF | ON} + - ERRORDetector:SAVEWFM? + + **Info:** + - ``OFF`` turns off the error detector save waveform feature. + - ``ON`` turns on the error detector save waveform feature. + """ + + +class ErrordetectorSaveimage(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:SAVEIMAGE`` command. + + **Description:** + - Sets or queries error detector Save Image control. When set to ON, a screen shot will be + made when the error detector detects an error (because detecting an error triggers the + scope). The images are saved in the C:Users TektronixTekScopeSaveOnTrigger + directory. A default limit of 10 screen shots prevents overflowing your disk drive should + the error detector sense massive errors, such as when you disconnect the signal. If you + also set the SendEmail parameter to ON, the saved image (screen shot) will be emailed to + the recipient (set elsewhere in the trigger PI). SaveImage is an alternate way of setting + the Save on Trigger actions defined elsewhere in the PI. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SAVEIMAGE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SAVEIMAGE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SAVEIMAGE value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SAVEIMAGE {OFF | ON} + - ERRORDetector:SAVEIMAGE? + """ + + +class ErrordetectorPresetApply(SCPICmdWriteNoArguments): + """The ``ERRORDetector:PREset:APPLY`` command. + + **Description:** + - This command causes selected preset setup to be applied. Until this command is received by + the instrument, the selected preset has not been applied. This mimics the user interface + operation, which allows window shopping various preset setups, without actually applying + them to the instrument setup. + + **Usage:** + - Using the ``.write()`` method will send the ``ERRORDetector:PREset:APPLY`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:PREset:APPLY + """ + + +class ErrordetectorPreset(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:PREset`` command. + + **Description:** + - This command sets or queries error detector font preset selection. A number of preset + setups are selected by this parameter to cover the more common cases. The preset names + attempt to indicate the standard, signal pattern, and test type employed. The bit rate + appropriate for the standard is used. The text files containing the preset setups are + located in the C:UsersPublicTektronixTekScopeErrorDetector directory in Windows. You may + select CUSTOM as a preset value, and save or recall your own custom setups. You may want + to recall one of the standard preset setups, modify some of the parameters, and then save + it as a custom setup for recall at a later time. This same behavior is supported on the + error detector User Interface. he ``SATA3_FRAME`` preset expects the SATA3 Compliance + Pattern. ``USB3_SYMBOL`` preset expects the USB3 standard ``CP0_SKP`` signal. You can set + a PATTERNNAME for each setup. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:PREset value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:PREset {SATA1_CJTPAT_BIT | SATA2_CJTPAT_BIT | SATA3_CJTPAT_BIT | SATA3_FRAME | SATA3_CHAR | SATA3_HFTP_BIT | SATA3_LBP_BIT | SATA3_LFTP_BIT | SATA3_MFTP_BIT | USB3_SYMBOL | USB3_CHAR | PCIE1_COMP_BIT | PCIE2_COMP_BIT | ANY_CJTPAT_BIT | ANY_CJTPAT_CHAR | CUSTOM}DPO70000SX{CUSTOM_SETUP | PRBS7_BIT_ERROR | PRBS9_BIT_ERROR | PRBS11_BIT_ERROR | PRBS16_BIT_ERROR | PRBS23_BIT_ERROR} + + Properties: + - ``.apply``: The ``ERRORDetector:PREset:APPLY`` command. + """ # noqa: E501 + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._apply = ErrordetectorPresetApply(device, f"{self._cmd_syntax}:APPLY") + + @property + def apply(self) -> ErrordetectorPresetApply: + """Return the ``ERRORDetector:PREset:APPLY`` command. + + **Description:** + - This command causes selected preset setup to be applied. Until this command is + received by the instrument, the selected preset has not been applied. This mimics the + user interface operation, which allows window shopping various preset setups, without + actually applying them to the instrument setup. + + **Usage:** + - Using the ``.write()`` method will send the ``ERRORDetector:PREset:APPLY`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:PREset:APPLY + """ + return self._apply + + +class ErrordetectorPatternname(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:PATTERNNAME`` command. + + **Description:** + - This command sets or queries the pattern name stored in the setup file. Setting this name + has no functional effect on the instrument, but it is a convenient reminder to users as to + which setup is in effect. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:PATTERNNAME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:PATTERNNAME?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:PATTERNNAME value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:PATTERNNAME + - ERRORDetector:PATTERNNAME? + + **Info:** + - ```` is a quoted string representing a pattern name. + """ + + +class ErrordetectorMaxaligns(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:MAXALIGNS`` command. + + **Description:** + - This command sets or queries the maximum consecutive align primitives before a + ``MAX_AP_FAIL`` error is reported. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:MAXALIGNS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:MAXALIGNS?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:MAXALIGNS value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:MAXALIGNS + - ERRORDetector:MAXALIGNS? + + **Info:** + - ```` is a integer. The limit values are 0 to 63 and the default is 8. + """ + + +class ErrordetectorFrameTestTimeSeconds(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:TIME:SECOnds`` command. + + **Description:** + - This command queries the elapsed time seconds component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:TIME:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:SECOnds? + """ + + +class ErrordetectorFrameTestTimeMinutes(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:TIME:MINUTES`` command. + + **Description:** + - This command queries the elapsed time minutes component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:MINUTES?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:TIME:MINUTES?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:MINUTES? + """ + + +class ErrordetectorFrameTestTimeHours(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:TIME:HOURS`` command. + + **Description:** + - This command queries the elapsed time hours component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:HOURS?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:TIME:HOURS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:HOURS? + """ + + +class ErrordetectorFrameTestTimeDays(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:TIME:DAYS`` command. + + **Description:** + - This command queries the elapsed time days component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:DAYS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:TIME:DAYS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:DAYS? + """ + + +class ErrordetectorFrameTestTime(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:TIME`` command. + + **Description:** + - This command queries the elapsed time (in days, hours, minutes, and seconds) for frame + error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:TIME?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME? + + Properties: + - ``.days``: The ``ERRORDetector:FRAme:TEST:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:FRAme:TEST:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:FRAme:TEST:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:FRAme:TEST:TIME:SECOnds`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._days = ErrordetectorFrameTestTimeDays(device, f"{self._cmd_syntax}:DAYS") + self._hours = ErrordetectorFrameTestTimeHours(device, f"{self._cmd_syntax}:HOURS") + self._minutes = ErrordetectorFrameTestTimeMinutes(device, f"{self._cmd_syntax}:MINUTES") + self._seconds = ErrordetectorFrameTestTimeSeconds(device, f"{self._cmd_syntax}:SECOnds") + + @property + def days(self) -> ErrordetectorFrameTestTimeDays: + """Return the ``ERRORDetector:FRAme:TEST:TIME:DAYS`` command. + + **Description:** + - This command queries the elapsed time days component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:DAYS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:TIME:DAYS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:DAYS? + """ + return self._days + + @property + def hours(self) -> ErrordetectorFrameTestTimeHours: + """Return the ``ERRORDetector:FRAme:TEST:TIME:HOURS`` command. + + **Description:** + - This command queries the elapsed time hours component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:HOURS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:TIME:HOURS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:HOURS? + """ + return self._hours + + @property + def minutes(self) -> ErrordetectorFrameTestTimeMinutes: + """Return the ``ERRORDetector:FRAme:TEST:TIME:MINUTES`` command. + + **Description:** + - This command queries the elapsed time minutes component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:MINUTES?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:TIME:MINUTES?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:MINUTES? + """ + return self._minutes + + @property + def seconds(self) -> ErrordetectorFrameTestTimeSeconds: + """Return the ``ERRORDetector:FRAme:TEST:TIME:SECOnds`` command. + + **Description:** + - This command queries the elapsed time seconds component for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:TIME:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME:SECOnds? + """ + return self._seconds + + +class ErrordetectorFrameTestStatusStart(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:STATUS:START`` command. + + **Description:** + - This command returns the START status for frame error tests. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS:START?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:START?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:START? + """ + + +class ErrordetectorFrameTestStatusSignal(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL`` command. + + **Description:** + - This command queries the SIGNAL status for the frame error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:SIGNAL? + """ + + +class ErrordetectorFrameTestStatusMaxAp(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP`` command. + + **Description:** + - This command queries the ``MAX_AP`` status for the frame error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:MAX_AP? + """ + + +class ErrordetectorFrameTestStatusLock(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:STATUS:LOCK`` command. + + **Description:** + - This command queries the LOCK status for the frame error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS:LOCK?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:LOCK?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:LOCK? + """ + + +class ErrordetectorFrameTestStatus(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:STATUS`` command. + + **Description:** + - This command queries all of the status for frame error status. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:STATUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS? + + Properties: + - ``.lock``: The ``ERRORDetector:FRAme:TEST:STATUS:LOCK`` command. + - ``.max_ap``: The ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP`` command. + - ``.signal``: The ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL`` command. + - ``.start``: The ``ERRORDetector:FRAme:TEST:STATUS:START`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lock = ErrordetectorFrameTestStatusLock(device, f"{self._cmd_syntax}:LOCK") + self._max_ap = ErrordetectorFrameTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") + self._signal = ErrordetectorFrameTestStatusSignal(device, f"{self._cmd_syntax}:SIGNAL") + self._start = ErrordetectorFrameTestStatusStart(device, f"{self._cmd_syntax}:START") + + @property + def lock(self) -> ErrordetectorFrameTestStatusLock: + """Return the ``ERRORDetector:FRAme:TEST:STATUS:LOCK`` command. + + **Description:** + - This command queries the LOCK status for the frame error test. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS:LOCK?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:LOCK?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:LOCK? + """ + return self._lock + + @property + def max_ap(self) -> ErrordetectorFrameTestStatusMaxAp: + """Return the ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP`` command. + + **Description:** + - This command queries the ``MAX_AP`` status for the frame error test. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:MAX_AP? + """ + return self._max_ap + + @property + def signal(self) -> ErrordetectorFrameTestStatusSignal: + """Return the ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL`` command. + + **Description:** + - This command queries the SIGNAL status for the frame error test. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:SIGNAL? + """ + return self._signal + + @property + def start(self) -> ErrordetectorFrameTestStatusStart: + """Return the ``ERRORDetector:FRAme:TEST:STATUS:START`` command. + + **Description:** + - This command returns the START status for frame error tests. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS:START?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:STATUS:START?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS:START? + """ + return self._start + + +class ErrordetectorFrameTestSeconds(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:SECOnds`` command. + + **Description:** + - This command queries the result of elapsed duration in seconds for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:SECOnds?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:SECOnds? + """ + + +class ErrordetectorFrameTestResults(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:RESults`` command. + + **Description:** + - This command queries all the results for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:RESults?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:RESults?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:RESults? + """ + + +class ErrordetectorFrameTestRate(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:RATE`` command. + + **Description:** + - This command queries the calculated frame error rate. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:RATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:RATE?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:RATE? + """ + + +class ErrordetectorFrameTestMaxaligns(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:MAXALIGNS`` command. + + **Description:** + - This command queries the result of the maximum consecutive aligns encountered for frame + error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:MAXALIGNS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:MAXALIGNS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:MAXALIGNS? + """ + + +class ErrordetectorFrameTestDuration(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:DURATION`` command. + + **Description:** + - This command queries the elapsed duration in number of frames. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:DURATION?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:DURATION?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:DURATION? + """ + + +class ErrordetectorFrameTestDisparity(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:DISParity`` command. + + **Description:** + - This command queries the disparity error count for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:DISParity?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:DISParity?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:DISParity? + """ + + +class ErrordetectorFrameTestCount(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:COUNt`` command. + + **Description:** + - This command queries the test error count for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:COUNt?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:COUNt? + """ + + +class ErrordetectorFrameTestBadchars(SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST:BADCHARS`` command. + + **Description:** + - This command queries the illegal character count for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:BADCHARS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:BADCHARS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:BADCHARS? + """ + + +# pylint: disable=too-many-instance-attributes +class ErrordetectorFrameTest(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:FRAme:TEST`` command. + + **Description:** + - This command and query initiates and terminates frame error testing for the arguments + START and STOP. Zeroes the frame error results for the argument CLEAR. Re-synchronizes the + recovered clock for the argument SYNC. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FRAme:TEST value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST + - ERRORDetector:FRAme:TEST? + + **Info:** + - ``START`` initiates the frame error test counting of errors and duration. + - ``STOP`` terminates the frame error test counting of frame errors and duration. + - ``CLEAR`` zeroes the frame error test count, duration, and rate. + - ``SYNC`` re-synchronizes the recovered clock. + + Properties: + - ``.badchars``: The ``ERRORDetector:FRAme:TEST:BADCHARS`` command. + - ``.count``: The ``ERRORDetector:FRAme:TEST:COUNt`` command. + - ``.disparity``: The ``ERRORDetector:FRAme:TEST:DISParity`` command. + - ``.duration``: The ``ERRORDetector:FRAme:TEST:DURATION`` command. + - ``.maxaligns``: The ``ERRORDetector:FRAme:TEST:MAXALIGNS`` command. + - ``.rate``: The ``ERRORDetector:FRAme:TEST:RATE`` command. + - ``.results``: The ``ERRORDetector:FRAme:TEST:RESults`` command. + - ``.seconds``: The ``ERRORDetector:FRAme:TEST:SECOnds`` command. + - ``.status``: The ``ERRORDetector:FRAme:TEST:STATUS`` command. + - ``.time``: The ``ERRORDetector:FRAme:TEST:TIME`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._badchars = ErrordetectorFrameTestBadchars(device, f"{self._cmd_syntax}:BADCHARS") + self._count = ErrordetectorFrameTestCount(device, f"{self._cmd_syntax}:COUNt") + self._disparity = ErrordetectorFrameTestDisparity(device, f"{self._cmd_syntax}:DISParity") + self._duration = ErrordetectorFrameTestDuration(device, f"{self._cmd_syntax}:DURATION") + self._maxaligns = ErrordetectorFrameTestMaxaligns(device, f"{self._cmd_syntax}:MAXALIGNS") + self._rate = ErrordetectorFrameTestRate(device, f"{self._cmd_syntax}:RATE") + self._results = ErrordetectorFrameTestResults(device, f"{self._cmd_syntax}:RESults") + self._seconds = ErrordetectorFrameTestSeconds(device, f"{self._cmd_syntax}:SECOnds") + self._status = ErrordetectorFrameTestStatus(device, f"{self._cmd_syntax}:STATUS") + self._time = ErrordetectorFrameTestTime(device, f"{self._cmd_syntax}:TIME") + + @property + def badchars(self) -> ErrordetectorFrameTestBadchars: + """Return the ``ERRORDetector:FRAme:TEST:BADCHARS`` command. + + **Description:** + - This command queries the illegal character count for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:BADCHARS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:BADCHARS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:BADCHARS? + """ + return self._badchars + + @property + def count(self) -> ErrordetectorFrameTestCount: + """Return the ``ERRORDetector:FRAme:TEST:COUNt`` command. + + **Description:** + - This command queries the test error count for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:COUNt?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:COUNt? + """ + return self._count + + @property + def disparity(self) -> ErrordetectorFrameTestDisparity: + """Return the ``ERRORDetector:FRAme:TEST:DISParity`` command. + + **Description:** + - This command queries the disparity error count for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:DISParity?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:DISParity?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:DISParity? + """ + return self._disparity + + @property + def duration(self) -> ErrordetectorFrameTestDuration: + """Return the ``ERRORDetector:FRAme:TEST:DURATION`` command. + + **Description:** + - This command queries the elapsed duration in number of frames. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:DURATION?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:DURATION?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:DURATION? + """ + return self._duration + + @property + def maxaligns(self) -> ErrordetectorFrameTestMaxaligns: + """Return the ``ERRORDetector:FRAme:TEST:MAXALIGNS`` command. + + **Description:** + - This command queries the result of the maximum consecutive aligns encountered for + frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:MAXALIGNS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:MAXALIGNS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:MAXALIGNS? + """ + return self._maxaligns + + @property + def rate(self) -> ErrordetectorFrameTestRate: + """Return the ``ERRORDetector:FRAme:TEST:RATE`` command. + + **Description:** + - This command queries the calculated frame error rate. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:RATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:RATE?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:RATE? + """ + return self._rate + + @property + def results(self) -> ErrordetectorFrameTestResults: + """Return the ``ERRORDetector:FRAme:TEST:RESults`` command. + + **Description:** + - This command queries all the results for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:RESults?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:RESults?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:RESults? + """ + return self._results + + @property + def seconds(self) -> ErrordetectorFrameTestSeconds: + """Return the ``ERRORDetector:FRAme:TEST:SECOnds`` command. + + **Description:** + - This command queries the result of elapsed duration in seconds for frame error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:TEST:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:SECOnds? + """ + return self._seconds + + @property + def status(self) -> ErrordetectorFrameTestStatus: + """Return the ``ERRORDetector:FRAme:TEST:STATUS`` command. + + **Description:** + - This command queries all of the status for frame error status. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:STATUS?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:STATUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:STATUS? + + Sub-properties: + - ``.lock``: The ``ERRORDetector:FRAme:TEST:STATUS:LOCK`` command. + - ``.max_ap``: The ``ERRORDetector:FRAme:TEST:STATUS:MAX_AP`` command. + - ``.signal``: The ``ERRORDetector:FRAme:TEST:STATUS:SIGNAL`` command. + - ``.start``: The ``ERRORDetector:FRAme:TEST:STATUS:START`` command. + """ + return self._status + + @property + def time(self) -> ErrordetectorFrameTestTime: + """Return the ``ERRORDetector:FRAme:TEST:TIME`` command. + + **Description:** + - This command queries the elapsed time (in days, hours, minutes, and seconds) for frame + error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST:TIME?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST:TIME? + + Sub-properties: + - ``.days``: The ``ERRORDetector:FRAme:TEST:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:FRAme:TEST:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:FRAme:TEST:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:FRAme:TEST:TIME:SECOnds`` command. + """ + return self._time + + +class ErrordetectorFrameSof(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:FRAme:SOF`` command. + + **Description:** + - This command sets or queries the Start of Frame for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:SOF?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:SOF?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FRAme:SOF value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:SOF + - ERRORDetector:FRAme:SOF? + + **Info:** + - ```` is a quoted string representing a 32-bit pattern. + """ + + +class ErrordetectorFrameInitialcrcvalue(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:FRAme:INITIALCRCVALue`` command. + + **Description:** + - This command sets or queries the initial CRC value for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:INITIALCRCVALue?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:INITIALCRCVALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:FRAme:INITIALCRCVALue value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:INITIALCRCVALue + - ERRORDetector:FRAme:INITIALCRCVALue? + + **Info:** + - ```` is a value defined by the selected standard. + """ + + +class ErrordetectorFrameEof(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:FRAme:EOF`` command. + + **Description:** + - This command sets or queries the End of Frame for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:EOF?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:EOF?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FRAme:EOF value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:EOF + - ERRORDetector:FRAme:EOF? + + **Info:** + - ```` is a quoted string representing a 32-bit pattern. + """ + + +class ErrordetectorFrame(SCPICmdRead): + """The ``ERRORDetector:FRAme`` command. + + **Description:** + - This command queries all frame error settings, status, and results. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme? + + Properties: + - ``.eof``: The ``ERRORDetector:FRAme:EOF`` command. + - ``.initialcrcvalue``: The ``ERRORDetector:FRAme:INITIALCRCVALue`` command. + - ``.sof``: The ``ERRORDetector:FRAme:SOF`` command. + - ``.test``: The ``ERRORDetector:FRAme:TEST`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._eof = ErrordetectorFrameEof(device, f"{self._cmd_syntax}:EOF") + self._initialcrcvalue = ErrordetectorFrameInitialcrcvalue( + device, f"{self._cmd_syntax}:INITIALCRCVALue" + ) + self._sof = ErrordetectorFrameSof(device, f"{self._cmd_syntax}:SOF") + self._test = ErrordetectorFrameTest(device, f"{self._cmd_syntax}:TEST") + + @property + def eof(self) -> ErrordetectorFrameEof: + """Return the ``ERRORDetector:FRAme:EOF`` command. + + **Description:** + - This command sets or queries the End of Frame for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:EOF?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:EOF?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FRAme:EOF value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:EOF + - ERRORDetector:FRAme:EOF? + + **Info:** + - ```` is a quoted string representing a 32-bit pattern. + """ + return self._eof + + @property + def initialcrcvalue(self) -> ErrordetectorFrameInitialcrcvalue: + """Return the ``ERRORDetector:FRAme:INITIALCRCVALue`` command. + + **Description:** + - This command sets or queries the initial CRC value for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:INITIALCRCVALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:FRAme:INITIALCRCVALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:FRAme:INITIALCRCVALue value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:INITIALCRCVALue + - ERRORDetector:FRAme:INITIALCRCVALue? + + **Info:** + - ```` is a value defined by the selected standard. + """ + return self._initialcrcvalue + + @property + def sof(self) -> ErrordetectorFrameSof: + """Return the ``ERRORDetector:FRAme:SOF`` command. + + **Description:** + - This command sets or queries the Start of Frame for frame error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:SOF?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:SOF?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FRAme:SOF value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:SOF + - ERRORDetector:FRAme:SOF? + + **Info:** + - ```` is a quoted string representing a 32-bit pattern. + """ + return self._sof + + @property + def test(self) -> ErrordetectorFrameTest: + """Return the ``ERRORDetector:FRAme:TEST`` command. + + **Description:** + - This command and query initiates and terminates frame error testing for the arguments + START and STOP. Zeroes the frame error results for the argument CLEAR. Re-synchronizes + the recovered clock for the argument SYNC. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme:TEST?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme:TEST?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FRAme:TEST value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme:TEST + - ERRORDetector:FRAme:TEST? + + **Info:** + - ``START`` initiates the frame error test counting of errors and duration. + - ``STOP`` terminates the frame error test counting of frame errors and duration. + - ``CLEAR`` zeroes the frame error test count, duration, and rate. + - ``SYNC`` re-synchronizes the recovered clock. + + Sub-properties: + - ``.badchars``: The ``ERRORDetector:FRAme:TEST:BADCHARS`` command. + - ``.count``: The ``ERRORDetector:FRAme:TEST:COUNt`` command. + - ``.disparity``: The ``ERRORDetector:FRAme:TEST:DISParity`` command. + - ``.duration``: The ``ERRORDetector:FRAme:TEST:DURATION`` command. + - ``.maxaligns``: The ``ERRORDetector:FRAme:TEST:MAXALIGNS`` command. + - ``.rate``: The ``ERRORDetector:FRAme:TEST:RATE`` command. + - ``.results``: The ``ERRORDetector:FRAme:TEST:RESults`` command. + - ``.seconds``: The ``ERRORDetector:FRAme:TEST:SECOnds`` command. + - ``.status``: The ``ERRORDetector:FRAme:TEST:STATUS`` command. + - ``.time``: The ``ERRORDetector:FRAme:TEST:TIME`` command. + """ + return self._test + + +class ErrordetectorFontsize(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:FONTSIze`` command. + + **Description:** + - Sets or queries error detector font size selection. Currently, the font size only applied + the error detector UI control window. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FONTSIze?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FONTSIze?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FONTSIze value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FONTSIze {DEFAULT | LARGE | XLARGE} + - ERRORDetector:FONTSIze? + + **Info:** + - ``DEFAULT`` sets the font size to the default size. + - ``LARGE`` sets the font size to large. + - ``XLARGE`` sets the font size to extra large. + """ + + +class ErrordetectorFileSave(SCPICmdWrite): + """The ``ERRORDetector:FILE:SAVe`` command. + + **Description:** + - This command initiates a file save of error detector parameters to a text file. Argument + is the file name. The setup files are supplied with the instrument. You can also save your + own setup files. For example, the setup for the USB ``CP0_SKP`` signal test pattern is + supplied in 'C:UsersPublicTektronixTekScopeErrorDetector + ``UsbCP0_SKPsymbolErrorSetup``.txt'. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:FILE:SAVe value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FILE:SAVe + + **Info:** + - ```` is the file name and file location. The default location is + 'C:UsersPublicTektronixTekScopeErrorDetector' and the setup file is in TXT format. + """ + + +class ErrordetectorFileRecall(SCPICmdWrite): + """The ``ERRORDetector:FILE:RECAll`` command. + + **Description:** + - This command initiates a file recall of error detector parameters from a text file. + Argument is the file name. The setup files are supplied with the instrument. You can also + create your own setup files. The setup for the USB ``CP0_SKP`` signal test pattern is + supplied in 'C:UsersPublicTektronixTekScopeErrorDetector + ``UsbCP0_SKPsymbolErrorSetup``.txt'. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:FILE:RECAll value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FILE:RECAll + + **Info:** + - ```` is the file name and file location. The default location is + 'C:UsersPublicTektronixTekScopeErrorDetector' and the setup file is in TXT format. + """ + + +class ErrordetectorFile(SCPICmdRead): + """The ``ERRORDetector:FILE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FILE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FILE?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.recall``: The ``ERRORDetector:FILE:RECAll`` command. + - ``.save``: The ``ERRORDetector:FILE:SAVe`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._recall = ErrordetectorFileRecall(device, f"{self._cmd_syntax}:RECAll") + self._save = ErrordetectorFileSave(device, f"{self._cmd_syntax}:SAVe") + + @property + def recall(self) -> ErrordetectorFileRecall: + """Return the ``ERRORDetector:FILE:RECAll`` command. + + **Description:** + - This command initiates a file recall of error detector parameters from a text file. + Argument is the file name. The setup files are supplied with the instrument. You can + also create your own setup files. The setup for the USB ``CP0_SKP`` signal test + pattern is supplied in 'C:UsersPublicTektronixTekScopeErrorDetector + ``UsbCP0_SKPsymbolErrorSetup``.txt'. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:FILE:RECAll value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FILE:RECAll + + **Info:** + - ```` is the file name and file location. The default location is + 'C:UsersPublicTektronixTekScopeErrorDetector' and the setup file is in TXT format. + """ + return self._recall + + @property + def save(self) -> ErrordetectorFileSave: + """Return the ``ERRORDetector:FILE:SAVe`` command. + + **Description:** + - This command initiates a file save of error detector parameters to a text file. + Argument is the file name. The setup files are supplied with the instrument. You can + also save your own setup files. For example, the setup for the USB ``CP0_SKP`` signal + test pattern is supplied in 'C:UsersPublicTektronixTekScopeErrorDetector + ``UsbCP0_SKPsymbolErrorSetup``.txt'. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:FILE:SAVe value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FILE:SAVe + + **Info:** + - ```` is the file name and file location. The default location is + 'C:UsersPublicTektronixTekScopeErrorDetector' and the setup file is in TXT format. + """ + return self._save + + +class ErrordetectorErrorlimit(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:ERRORLIMIT`` command. + + **Description:** + - This command sets or queries the error limit value to use when STOPWHEN is ERROR. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ERRORLIMIT?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ERRORLIMIT?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:ERRORLIMIT value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ERRORLIMIT + - ERRORDetector:ERRORLIMIT? + + **Info:** + - ```` is the maximum number of errors. + """ + + +class ErrordetectorDurationTimeSeconds(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:DURATION:TIME:SECOnds`` command. + + **Description:** + - This command sets or queries the test duration time seconds component for error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:TIME:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:SECOnds value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:SECOnds + - ERRORDetector:DURATION:TIME:SECOnds? + + **Info:** + - ```` is a number for the test duration time seconds component. + """ + + +class ErrordetectorDurationTimeMinutes(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:DURATION:TIME:MINUTES`` command. + + **Description:** + - This command sets or queries the test duration time minutes component for error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:MINUTES?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:TIME:MINUTES?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:MINUTES value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:MINUTES + - ERRORDetector:DURATION:TIME:MINUTES? + + **Info:** + - ```` is a number for the test duration time minutes component. + """ + + +class ErrordetectorDurationTimeHours(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:DURATION:TIME:HOURS`` command. + + **Description:** + - This command sets or queries the test duration time hours component. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:HOURS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:TIME:HOURS?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:HOURS value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:HOURS + - ERRORDetector:DURATION:TIME:HOURS? + + **Info:** + - ```` is a number for the test duration time hours component. + """ + + +class ErrordetectorDurationTimeDays(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:DURATION:TIME:DAYS`` command. + + **Description:** + - This command sets or queries the test duration time days component. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:DAYS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:TIME:DAYS?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:DAYS value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:DAYS + - ERRORDetector:DURATION:TIME:DAYS? + + **Info:** + - ```` is a number for the test duration time days component. + """ + + +class ErrordetectorDurationTime(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:DURATION:TIME`` command. + + **Description:** + - This command sets or queries the test duration time in days, hours, minutes, and seconds. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:TIME?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:DURATION:TIME value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME + - ERRORDetector:DURATION:TIME? + + **Info:** + - ```` is the test duration time in days, hours, minutes, and seconds. It is in the + format . + + Properties: + - ``.days``: The ``ERRORDetector:DURATION:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:DURATION:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:DURATION:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:DURATION:TIME:SECOnds`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._days = ErrordetectorDurationTimeDays(device, f"{self._cmd_syntax}:DAYS") + self._hours = ErrordetectorDurationTimeHours(device, f"{self._cmd_syntax}:HOURS") + self._minutes = ErrordetectorDurationTimeMinutes(device, f"{self._cmd_syntax}:MINUTES") + self._seconds = ErrordetectorDurationTimeSeconds(device, f"{self._cmd_syntax}:SECOnds") + + @property + def days(self) -> ErrordetectorDurationTimeDays: + """Return the ``ERRORDetector:DURATION:TIME:DAYS`` command. + + **Description:** + - This command sets or queries the test duration time days component. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:DAYS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:DURATION:TIME:DAYS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:DAYS value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:DAYS + - ERRORDetector:DURATION:TIME:DAYS? + + **Info:** + - ```` is a number for the test duration time days component. + """ + return self._days + + @property + def hours(self) -> ErrordetectorDurationTimeHours: + """Return the ``ERRORDetector:DURATION:TIME:HOURS`` command. + + **Description:** + - This command sets or queries the test duration time hours component. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:HOURS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:DURATION:TIME:HOURS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:HOURS value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:HOURS + - ERRORDetector:DURATION:TIME:HOURS? + + **Info:** + - ```` is a number for the test duration time hours component. + """ + return self._hours + + @property + def minutes(self) -> ErrordetectorDurationTimeMinutes: + """Return the ``ERRORDetector:DURATION:TIME:MINUTES`` command. + + **Description:** + - This command sets or queries the test duration time minutes component for error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:MINUTES?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:DURATION:TIME:MINUTES?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:MINUTES value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:MINUTES + - ERRORDetector:DURATION:TIME:MINUTES? + + **Info:** + - ```` is a number for the test duration time minutes component. + """ + return self._minutes + + @property + def seconds(self) -> ErrordetectorDurationTimeSeconds: + """Return the ``ERRORDetector:DURATION:TIME:SECOnds`` command. + + **Description:** + - This command sets or queries the test duration time seconds component for error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:DURATION:TIME:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:TIME:SECOnds value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME:SECOnds + - ERRORDetector:DURATION:TIME:SECOnds? + + **Info:** + - ```` is a number for the test duration time seconds component. + """ + return self._seconds + + +class ErrordetectorDurationSeconds(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:DURATION:SECOnds`` command. + + **Description:** + - This command sets or queries the test duration in seconds. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:SECOnds?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:DURATION:SECOnds value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:SECOnds + - ERRORDetector:DURATION:SECOnds? + + **Info:** + - ```` is the test duration in seconds. + """ + + +class ErrordetectorDurationCount(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:DURATION:COUNt`` command. + + **Description:** + - This command sets or queries the test duration count as the number of bits, frames, + symbols, or characters to be tested for error testing. (Frame, symbol, and character + testing not available on the DPO70000SX instruments.) + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:COUNt?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:DURATION:COUNt value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:COUNt + - ERRORDetector:DURATION:COUNt? + + **Info:** + - ```` indicates the number of bits, frame, symbols, or characters to be tested for the + test duration count. (Frame, symbol, and character testing not available on the DPO70000SX + instruments.). + """ + + +class ErrordetectorDuration(SCPICmdRead): + """The ``ERRORDetector:DURATION`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.count``: The ``ERRORDetector:DURATION:COUNt`` command. + - ``.seconds``: The ``ERRORDetector:DURATION:SECOnds`` command. + - ``.time``: The ``ERRORDetector:DURATION:TIME`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._count = ErrordetectorDurationCount(device, f"{self._cmd_syntax}:COUNt") + self._seconds = ErrordetectorDurationSeconds(device, f"{self._cmd_syntax}:SECOnds") + self._time = ErrordetectorDurationTime(device, f"{self._cmd_syntax}:TIME") + + @property + def count(self) -> ErrordetectorDurationCount: + """Return the ``ERRORDetector:DURATION:COUNt`` command. + + **Description:** + - This command sets or queries the test duration count as the number of bits, frames, + symbols, or characters to be tested for error testing. (Frame, symbol, and character + testing not available on the DPO70000SX instruments.) + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:COUNt?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:COUNt value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:COUNt + - ERRORDetector:DURATION:COUNt? + + **Info:** + - ```` indicates the number of bits, frame, symbols, or characters to be tested for + the test duration count. (Frame, symbol, and character testing not available on the + DPO70000SX instruments.). + """ + return self._count + + @property + def seconds(self) -> ErrordetectorDurationSeconds: + """Return the ``ERRORDetector:DURATION:SECOnds`` command. + + **Description:** + - This command sets or queries the test duration in seconds. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:SECOnds?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:DURATION:SECOnds value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:SECOnds + - ERRORDetector:DURATION:SECOnds? + + **Info:** + - ```` is the test duration in seconds. + """ + return self._seconds + + @property + def time(self) -> ErrordetectorDurationTime: + """Return the ``ERRORDetector:DURATION:TIME`` command. + + **Description:** + - This command sets or queries the test duration time in days, hours, minutes, and + seconds. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION:TIME?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:DURATION:TIME value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:DURATION:TIME + - ERRORDetector:DURATION:TIME? + + **Info:** + - ```` is the test duration time in days, hours, minutes, and seconds. It is in the + format . + + Sub-properties: + - ``.days``: The ``ERRORDetector:DURATION:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:DURATION:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:DURATION:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:DURATION:TIME:SECOnds`` command. + """ + return self._time + + +class ErrordetectorChannel(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:CHANnel`` command. + + **Description:** + - Sets or queries error detector channel selection. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:CHANnel?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:CHANnel?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:CHANnel value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:CHANnel {CH1 | CH2 | CH3 | CH4} + - ERRORDetector:CHANnel? + + **Info:** + - ``CHx`` is the error detector channel selection. + """ + + +class ErrordetectorBitrateValue(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:BITRate:VALue`` command. + + **Description:** + - This command sets or queries error detector custom bitrate value for error detection. To + set the custom value, you must also set ``ERRORDetector:BITTRATE`` to CUSTOM. The bitrate + range is nominally 1.25 Gb/s to 6.25 Gb/s. Special coding also allows the custom bitrate + to range from 200 Mb/s to 350 Mb/s for PRBS7 and PRBS9 only. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BITRate:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BITRate:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:BITRate:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BITRate:VALue + - ERRORDetector:BITRate:VALue? + + **Info:** + - ```` is the custom bit rate value. + """ + + +class ErrordetectorBitrate(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:BITRate`` command. + + **Description:** + - This command sets or queries error detector bitrate enumeration for error detection. There + are two bitrate enumerations for each standard: 1) The standard bitrate, for example + RATE6000 (meaning 6.0Gb/s, for SATA Gen3); and 2) Custom. When Custom is selected the + ``ERRORDetector:BITRATE:VALUE`` must also be set to the specific desired bitrate. For + example, 6.1 Gb/s. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BITRate?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BITRate?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:BITRate value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BITRate {RATEcustom:CUSTOM |RATE312000000:RATE312 |RATE1250000000:RATE1250 |RATE1500000000:RATE1500 |RATE2125000000:RATE2125 |RATE2500000000:RATE2500 |RATE3000000000:RATE3000 |RATE3125000000:RATE3125 |RATE4250000000:RATE4250 |RATE5000000000:RATE5000 |RATE6000000000:RATE6000 |RATE6250000000:RATE6250}DPO70000SX{RATE3200 | RATE3600 | RATE4000 | RATE4400 | RATE4800 | RATE5200 | RATE5600 | RATE6000 | RATE6400 | CUSTOM} + - ERRORDetector:BITRate? + + **Info:** + - ``RATE3200..to..RATE6400`` sets the error detector bit rate to the specified value. + RATE3200 indicates a bitrate of 3.2 Gb/s, etc. + - ``:ERRORDETECTOR:BITRATE:VALUE`` command. + + Properties: + - ``.value``: The ``ERRORDetector:BITRate:VALue`` command. + """ # noqa: E501 + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._value = ErrordetectorBitrateValue(device, f"{self._cmd_syntax}:VALue") + + @property + def value(self) -> ErrordetectorBitrateValue: + """Return the ``ERRORDetector:BITRate:VALue`` command. + + **Description:** + - This command sets or queries error detector custom bitrate value for error detection. + To set the custom value, you must also set ``ERRORDetector:BITTRATE`` to CUSTOM. The + bitrate range is nominally 1.25 Gb/s to 6.25 Gb/s. Special coding also allows the + custom bitrate to range from 200 Mb/s to 350 Mb/s for PRBS7 and PRBS9 only. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BITRate:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BITRate:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:BITRate:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BITRate:VALue + - ERRORDetector:BITRate:VALue? + + **Info:** + - ```` is the custom bit rate value. + """ + return self._value + + +class ErrordetectorBitTestTimeSeconds(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:TIME:SECOnds`` command. + + **Description:** + - This command queries the elapsed time seconds component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:TIME:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:SECOnds? + """ + + +class ErrordetectorBitTestTimeMinutes(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:TIME:MINUTES`` command. + + **Description:** + - This command queries the elapsed time minutes component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:MINUTES?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:TIME:MINUTES?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:MINUTES? + """ + + +class ErrordetectorBitTestTimeHours(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:TIME:HOURS`` command. + + **Description:** + - This command queries the elapsed time hours component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:HOURS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:TIME:HOURS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:HOURS? + """ + + +class ErrordetectorBitTestTimeDays(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:TIME:DAYS`` command. + + **Description:** + - This command queries the elapsed time days component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:DAYS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:TIME:DAYS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:DAYS? + """ + + +class ErrordetectorBitTestTime(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:TIME`` command. + + **Description:** + - This command queries the elapsed time (in days, hours, minutes, and seconds) for bit error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:TIME?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME? + + Properties: + - ``.days``: The ``ERRORDetector:BIT:TEST:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:BIT:TEST:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:BIT:TEST:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:BIT:TEST:TIME:SECOnds`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._days = ErrordetectorBitTestTimeDays(device, f"{self._cmd_syntax}:DAYS") + self._hours = ErrordetectorBitTestTimeHours(device, f"{self._cmd_syntax}:HOURS") + self._minutes = ErrordetectorBitTestTimeMinutes(device, f"{self._cmd_syntax}:MINUTES") + self._seconds = ErrordetectorBitTestTimeSeconds(device, f"{self._cmd_syntax}:SECOnds") + + @property + def days(self) -> ErrordetectorBitTestTimeDays: + """Return the ``ERRORDetector:BIT:TEST:TIME:DAYS`` command. + + **Description:** + - This command queries the elapsed time days component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:DAYS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:TIME:DAYS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:DAYS? + """ + return self._days + + @property + def hours(self) -> ErrordetectorBitTestTimeHours: + """Return the ``ERRORDetector:BIT:TEST:TIME:HOURS`` command. + + **Description:** + - This command queries the elapsed time hours component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:HOURS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:TIME:HOURS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:HOURS? + """ + return self._hours + + @property + def minutes(self) -> ErrordetectorBitTestTimeMinutes: + """Return the ``ERRORDetector:BIT:TEST:TIME:MINUTES`` command. + + **Description:** + - This command queries the elapsed time minutes component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:MINUTES?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:TIME:MINUTES?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:MINUTES? + """ + return self._minutes + + @property + def seconds(self) -> ErrordetectorBitTestTimeSeconds: + """Return the ``ERRORDetector:BIT:TEST:TIME:SECOnds`` command. + + **Description:** + - This command queries the elapsed time seconds component for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME:SECOnds?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:TIME:SECOnds?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME:SECOnds? + """ + return self._seconds + + +class ErrordetectorBitTestStatusSync(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:STATUS:SYNC`` command. + + **Description:** + - This command queries the SYNC status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:SYNC?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:STATUS:SYNC?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:SYNC? + """ + + +class ErrordetectorBitTestStatusStart(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:STATUS:START`` command. + + **Description:** + - This command queries the START status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:START?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:STATUS:START?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:START? + """ + + +class ErrordetectorBitTestStatusSignal(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:STATUS:SIGNAL`` command. + + **Description:** + - This command queries the SIGNAL status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:SIGNAL?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:STATUS:SIGNAL?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:SIGNAL? + """ + + +class ErrordetectorBitTestStatusMaxAp(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:STATUS:MAX_AP`` command. + + **Description:** + - This command queries the ``MAX_AP`` status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:MAX_AP?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:STATUS:MAX_AP?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:MAX_AP? + """ + + +class ErrordetectorBitTestStatusLock(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:STATUS:LOCK`` command. + + **Description:** + - This command queries the LOCK status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:LOCK?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:STATUS:LOCK?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:LOCK? + """ + + +class ErrordetectorBitTestStatus(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:STATUS`` command. + + **Description:** + - This command queries all of the bit error test status bits. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:STATUS?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS? + + Properties: + - ``.lock``: The ``ERRORDetector:BIT:TEST:STATUS:LOCK`` command. + - ``.max_ap``: The ``ERRORDetector:BIT:TEST:STATUS:MAX_AP`` command. + - ``.signal``: The ``ERRORDetector:BIT:TEST:STATUS:SIGNAL`` command. + - ``.start``: The ``ERRORDetector:BIT:TEST:STATUS:START`` command. + - ``.sync``: The ``ERRORDetector:BIT:TEST:STATUS:SYNC`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lock = ErrordetectorBitTestStatusLock(device, f"{self._cmd_syntax}:LOCK") + self._max_ap = ErrordetectorBitTestStatusMaxAp(device, f"{self._cmd_syntax}:MAX_AP") + self._signal = ErrordetectorBitTestStatusSignal(device, f"{self._cmd_syntax}:SIGNAL") + self._start = ErrordetectorBitTestStatusStart(device, f"{self._cmd_syntax}:START") + self._sync = ErrordetectorBitTestStatusSync(device, f"{self._cmd_syntax}:SYNC") + + @property + def lock(self) -> ErrordetectorBitTestStatusLock: + """Return the ``ERRORDetector:BIT:TEST:STATUS:LOCK`` command. + + **Description:** + - This command queries the LOCK status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:LOCK?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:STATUS:LOCK?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:LOCK? + """ + return self._lock + + @property + def max_ap(self) -> ErrordetectorBitTestStatusMaxAp: + """Return the ``ERRORDetector:BIT:TEST:STATUS:MAX_AP`` command. + + **Description:** + - This command queries the ``MAX_AP`` status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:MAX_AP?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:STATUS:MAX_AP?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:MAX_AP? + """ + return self._max_ap + + @property + def signal(self) -> ErrordetectorBitTestStatusSignal: + """Return the ``ERRORDetector:BIT:TEST:STATUS:SIGNAL`` command. + + **Description:** + - This command queries the SIGNAL status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:SIGNAL?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:STATUS:SIGNAL?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:SIGNAL? + """ + return self._signal + + @property + def start(self) -> ErrordetectorBitTestStatusStart: + """Return the ``ERRORDetector:BIT:TEST:STATUS:START`` command. + + **Description:** + - This command queries the START status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:START?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:STATUS:START?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:START? + """ + return self._start + + @property + def sync(self) -> ErrordetectorBitTestStatusSync: + """Return the ``ERRORDetector:BIT:TEST:STATUS:SYNC`` command. + + **Description:** + - This command queries the SYNC status for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS:SYNC?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:STATUS:SYNC?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS:SYNC? + """ + return self._sync + + +class ErrordetectorBitTestSeconds(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:SECOnds`` command. + + **Description:** + - This command queries the elapsed time in seconds for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:SECOnds?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:SECOnds? + """ + + +class ErrordetectorBitTestResults(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:RESults`` command. + + **Description:** + - This command queries all of the results for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:RESults?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:RESults?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:RESults? + """ + + +class ErrordetectorBitTestRate(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:RATE`` command. + + **Description:** + - This command queries the calculated bit error rate for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:RATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:RATE?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:RATE? + """ + + +class ErrordetectorBitTestMaxaligns(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:MAXALIGNS`` command. + + **Description:** + - This command queries the maximum consecutive SATA align primitives or USB skip order sets + for bit error testing. The maximum number of align primitives is a design parameter of the + bus standard. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:MAXALIGNS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:MAXALIGNS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:MAXALIGNS? + """ + + +class ErrordetectorBitTestDuration(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:DURATION`` command. + + **Description:** + - This command queries the elapsed duration (in units of bits) tested for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:DURATION?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:DURATION?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:DURATION? + """ + + +class ErrordetectorBitTestCount(SCPICmdRead): + """The ``ERRORDetector:BIT:TEST:COUNt`` command. + + **Description:** + - This command queries the bit error count for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:COUNt?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:COUNt? + """ + + +# pylint: disable=too-many-instance-attributes +class ErrordetectorBitTest(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:BIT:TEST`` command. + + **Description:** + - This command initiates and terminates bit error testing for the arguments START and STOP. + It zeroes bit error test results for the argument CLEAR. It also copies the test pattern + from the signal to memory for the argument LEARN. It re-synchronizes the recovered clock + for argument SYNC. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:BIT:TEST value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST DPO70000SX + + **Info:** + - ``LEARN`` copies the test pattern from the signal to the hardware template memory. + - ``START`` initiates bit error counting of bit errors and duration. + - ``STOP`` terminates bit error counting of bit errors and duration. + - ``CLEAR`` zeroes the bit error count, duration, and bit error rate. + - ``SYNC`` resynchronizes the recovered clock. + + Properties: + - ``.count``: The ``ERRORDetector:BIT:TEST:COUNt`` command. + - ``.duration``: The ``ERRORDetector:BIT:TEST:DURATION`` command. + - ``.maxaligns``: The ``ERRORDetector:BIT:TEST:MAXALIGNS`` command. + - ``.rate``: The ``ERRORDetector:BIT:TEST:RATE`` command. + - ``.results``: The ``ERRORDetector:BIT:TEST:RESults`` command. + - ``.seconds``: The ``ERRORDetector:BIT:TEST:SECOnds`` command. + - ``.status``: The ``ERRORDetector:BIT:TEST:STATUS`` command. + - ``.time``: The ``ERRORDetector:BIT:TEST:TIME`` command. + """ # noqa: E501 + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._count = ErrordetectorBitTestCount(device, f"{self._cmd_syntax}:COUNt") + self._duration = ErrordetectorBitTestDuration(device, f"{self._cmd_syntax}:DURATION") + self._maxaligns = ErrordetectorBitTestMaxaligns(device, f"{self._cmd_syntax}:MAXALIGNS") + self._rate = ErrordetectorBitTestRate(device, f"{self._cmd_syntax}:RATE") + self._results = ErrordetectorBitTestResults(device, f"{self._cmd_syntax}:RESults") + self._seconds = ErrordetectorBitTestSeconds(device, f"{self._cmd_syntax}:SECOnds") + self._status = ErrordetectorBitTestStatus(device, f"{self._cmd_syntax}:STATUS") + self._time = ErrordetectorBitTestTime(device, f"{self._cmd_syntax}:TIME") + + @property + def count(self) -> ErrordetectorBitTestCount: + """Return the ``ERRORDetector:BIT:TEST:COUNt`` command. + + **Description:** + - This command queries the bit error count for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:COUNt?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:COUNt? + """ + return self._count + + @property + def duration(self) -> ErrordetectorBitTestDuration: + """Return the ``ERRORDetector:BIT:TEST:DURATION`` command. + + **Description:** + - This command queries the elapsed duration (in units of bits) tested for bit error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:DURATION?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:DURATION?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:DURATION? + """ + return self._duration + + @property + def maxaligns(self) -> ErrordetectorBitTestMaxaligns: + """Return the ``ERRORDetector:BIT:TEST:MAXALIGNS`` command. + + **Description:** + - This command queries the maximum consecutive SATA align primitives or USB skip order + sets for bit error testing. The maximum number of align primitives is a design + parameter of the bus standard. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:MAXALIGNS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:TEST:MAXALIGNS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:MAXALIGNS? + """ + return self._maxaligns + + @property + def rate(self) -> ErrordetectorBitTestRate: + """Return the ``ERRORDetector:BIT:TEST:RATE`` command. + + **Description:** + - This command queries the calculated bit error rate for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:RATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:RATE?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:RATE? + """ + return self._rate + + @property + def results(self) -> ErrordetectorBitTestResults: + """Return the ``ERRORDetector:BIT:TEST:RESults`` command. + + **Description:** + - This command queries all of the results for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:RESults?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:RESults?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:RESults? + """ + return self._results + + @property + def seconds(self) -> ErrordetectorBitTestSeconds: + """Return the ``ERRORDetector:BIT:TEST:SECOnds`` command. + + **Description:** + - This command queries the elapsed time in seconds for bit error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:SECOnds?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:SECOnds?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:SECOnds? + """ + return self._seconds + + @property + def status(self) -> ErrordetectorBitTestStatus: + """Return the ``ERRORDetector:BIT:TEST:STATUS`` command. + + **Description:** + - This command queries all of the bit error test status bits. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:STATUS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:STATUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:STATUS? + + Sub-properties: + - ``.lock``: The ``ERRORDetector:BIT:TEST:STATUS:LOCK`` command. + - ``.max_ap``: The ``ERRORDetector:BIT:TEST:STATUS:MAX_AP`` command. + - ``.signal``: The ``ERRORDetector:BIT:TEST:STATUS:SIGNAL`` command. + - ``.start``: The ``ERRORDetector:BIT:TEST:STATUS:START`` command. + - ``.sync``: The ``ERRORDetector:BIT:TEST:STATUS:SYNC`` command. + """ + return self._status + + @property + def time(self) -> ErrordetectorBitTestTime: + """Return the ``ERRORDetector:BIT:TEST:TIME`` command. + + **Description:** + - This command queries the elapsed time (in days, hours, minutes, and seconds) for bit + error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:TEST:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:TEST:TIME?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST:TIME? + + Sub-properties: + - ``.days``: The ``ERRORDetector:BIT:TEST:TIME:DAYS`` command. + - ``.hours``: The ``ERRORDetector:BIT:TEST:TIME:HOURS`` command. + - ``.minutes``: The ``ERRORDetector:BIT:TEST:TIME:MINUTES`` command. + - ``.seconds``: The ``ERRORDetector:BIT:TEST:TIME:SECOnds`` command. + """ + return self._time + + +class ErrordetectorBitSyncpatternPlusItem(ValidatedDynamicNumberCmd, SCPICmdRead): + """The ``ERRORDetector:BIT:SYNCPATtern:PLUS`` command. + + **Description:** + - This command queries the four RD+ bit string sync pattern elements. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:SYNCPATtern:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:PLUS? + """ + + +class ErrordetectorBitSyncpatternMinusItem(ValidatedDynamicNumberCmd, SCPICmdRead): + """The ``ERRORDetector:BIT:SYNCPATtern:MINus`` command. + + **Description:** + - This command queries the four RD- bit string sync pattern elements. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:SYNCPATtern:MINus?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:MINus? + """ + + +class ErrordetectorBitSyncpatternDisparityItem( + ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead +): + """The ``ERRORDetector:BIT:SYNCPATtern:DISParity`` command. + + **Description:** + - Sets or queries the four sync pattern Disparity elements, when the ``SYNCpat:ADVanced`` is + ON. When Advanced is off, the DISParity alternates based on the DISParity of the first + element. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:DISParity?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:DISParity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:DISParity value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:DISParity {RDPLUS | RDMINUS} + - ERRORDetector:BIT:SYNCPATtern:DISParity? + + **Info:** + - ``RDPLUS`` sets the sync pattern disparity element to RDPLUS. + - ``RDMINUS`` sets the sync pattern disparity element to RDMINUS. + """ + + +class ErrordetectorBitSyncpatternBitstring(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:BIT:SYNCPATtern:BITString`` command. + + **Description:** + - This command queries the 10-, 20-, 30-, or 40-bit sync pattern in bit string form. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:SYNCPATtern:BITString?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:BITString?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:BITString value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:BITString + - ERRORDetector:BIT:SYNCPATtern:BITString? + + **Info:** + - ```` is the bit string. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class ErrordetectorBitSyncpattern(SCPICmdRead): + """The ``ERRORDetector:BIT:SYNCPATtern`` command. + + **Description:** + - This command queries all of the sync pattern forms and associated settings for non-USB bit + error testing. The SYNCPATtern consists of one to four symbolic 10-bit 8B10B characters + and their matching RD+ and RD- bit string equivalents. It is required for all non-USB bit + error testing. This sequence of 8B10B characters must actually occur and be unique in the + signal test pattern sent to the oscilloscope for error detection to work correctly. The + SyncPattern has a symbolic form ('K28.5'), an RD+ and RD- bit string form ('0011111010'), + and an as-used bit string form. The actual form used depends on the + ``SyncPattern:Disparity`` and ``SyncPattern:Advanced`` settings. When Advanced is Off, the + disparity setting determines the disparity of the first (leftmost) syncpattern element, + and the others alternate disparity. When Advanced is On, the Disparity is set for each + SyncPattern element. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:SYNCPATtern?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:SYNCPATtern?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern? + + Properties: + - ``.bitstring``: The ``ERRORDetector:BIT:SYNCPATtern:BITString`` command. + - ``.disparity``: The ``ERRORDetector:BIT:SYNCPATtern:DISParity`` command. + - ``.minus``: The ``ERRORDetector:BIT:SYNCPATtern:MINus`` command. + - ``.plus``: The ``ERRORDetector:BIT:SYNCPATtern:PLUS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._bitstring = ErrordetectorBitSyncpatternBitstring( + device, f"{self._cmd_syntax}:BITString" + ) + self._disparity: Dict[ + int, ErrordetectorBitSyncpatternDisparityItem + ] = DefaultDictPassKeyToFactory( + lambda x: ErrordetectorBitSyncpatternDisparityItem( + device, f"{self._cmd_syntax}:DISParity{x}" + ) + ) + self._minus: Dict[int, ErrordetectorBitSyncpatternMinusItem] = DefaultDictPassKeyToFactory( + lambda x: ErrordetectorBitSyncpatternMinusItem(device, f"{self._cmd_syntax}:MINus{x}") + ) + self._plus: Dict[int, ErrordetectorBitSyncpatternPlusItem] = DefaultDictPassKeyToFactory( + lambda x: ErrordetectorBitSyncpatternPlusItem(device, f"{self._cmd_syntax}:PLUS{x}") + ) + + @property + def bitstring(self) -> ErrordetectorBitSyncpatternBitstring: + """Return the ``ERRORDetector:BIT:SYNCPATtern:BITString`` command. + + **Description:** + - This command queries the 10-, 20-, 30-, or 40-bit sync pattern in bit string form. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:BITString?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:BITString?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:BITString value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:BITString + - ERRORDetector:BIT:SYNCPATtern:BITString? + + **Info:** + - ```` is the bit string. + """ + return self._bitstring + + @property + def disparity(self) -> Dict[int, ErrordetectorBitSyncpatternDisparityItem]: + """Return the ``ERRORDetector:BIT:SYNCPATtern:DISParity`` command. + + **Description:** + - Sets or queries the four sync pattern Disparity elements, when the + ``SYNCpat:ADVanced`` is ON. When Advanced is off, the DISParity alternates based on + the DISParity of the first element. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:DISParity?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:DISParity?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:DISParity value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:DISParity {RDPLUS | RDMINUS} + - ERRORDetector:BIT:SYNCPATtern:DISParity? + + **Info:** + - ``RDPLUS`` sets the sync pattern disparity element to RDPLUS. + - ``RDMINUS`` sets the sync pattern disparity element to RDMINUS. + """ + return self._disparity + + @property + def minus(self) -> Dict[int, ErrordetectorBitSyncpatternMinusItem]: + """Return the ``ERRORDetector:BIT:SYNCPATtern:MINus`` command. + + **Description:** + - This command queries the four RD- bit string sync pattern elements. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:MINus? + """ + return self._minus + + @property + def plus(self) -> Dict[int, ErrordetectorBitSyncpatternPlusItem]: + """Return the ``ERRORDetector:BIT:SYNCPATtern:PLUS`` command. + + **Description:** + - This command queries the four RD+ bit string sync pattern elements. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:SYNCPATtern:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:BIT:SYNCPATtern:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern:PLUS? + """ + return self._plus + + +class ErrordetectorBitLength(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:BIT:LENgth`` command. + + **Description:** + - This command sets or queries the signal test pattern length in bits for non-USB bit error + testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:LENgth?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:LENgth?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:BIT:LENgth value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:LENgth + - ERRORDetector:BIT:LENgth? + + **Info:** + - ```` indicates the bit length of the signal test pattern. + """ + + +class ErrordetectorBit(SCPICmdRead): + """The ``ERRORDetector:BIT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.length``: The ``ERRORDetector:BIT:LENgth`` command. + - ``.syncpattern``: The ``ERRORDetector:BIT:SYNCPATtern`` command. + - ``.test``: The ``ERRORDetector:BIT:TEST`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._length = ErrordetectorBitLength(device, f"{self._cmd_syntax}:LENgth") + self._syncpattern = ErrordetectorBitSyncpattern(device, f"{self._cmd_syntax}:SYNCPATtern") + self._test = ErrordetectorBitTest(device, f"{self._cmd_syntax}:TEST") + + @property + def length(self) -> ErrordetectorBitLength: + """Return the ``ERRORDetector:BIT:LENgth`` command. + + **Description:** + - This command sets or queries the signal test pattern length in bits for non-USB bit + error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:LENgth?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:LENgth?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:BIT:LENgth value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:LENgth + - ERRORDetector:BIT:LENgth? + + **Info:** + - ```` indicates the bit length of the signal test pattern. + """ + return self._length + + @property + def syncpattern(self) -> ErrordetectorBitSyncpattern: + """Return the ``ERRORDetector:BIT:SYNCPATtern`` command. + + **Description:** + - This command queries all of the sync pattern forms and associated settings for non-USB + bit error testing. The SYNCPATtern consists of one to four symbolic 10-bit 8B10B + characters and their matching RD+ and RD- bit string equivalents. It is required for + all non-USB bit error testing. This sequence of 8B10B characters must actually occur + and be unique in the signal test pattern sent to the oscilloscope for error detection + to work correctly. The SyncPattern has a symbolic form ('K28.5'), an RD+ and RD- bit + string form ('0011111010'), and an as-used bit string form. The actual form used + depends on the ``SyncPattern:Disparity`` and ``SyncPattern:Advanced`` settings. When + Advanced is Off, the disparity setting determines the disparity of the first + (leftmost) syncpattern element, and the others alternate disparity. When Advanced is + On, the Disparity is set for each SyncPattern element. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT:SYNCPATtern?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT:SYNCPATtern?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:SYNCPATtern? + + Sub-properties: + - ``.bitstring``: The ``ERRORDetector:BIT:SYNCPATtern:BITString`` command. + - ``.disparity``: The ``ERRORDetector:BIT:SYNCPATtern:DISParity`` command. + - ``.minus``: The ``ERRORDetector:BIT:SYNCPATtern:MINus`` command. + - ``.plus``: The ``ERRORDetector:BIT:SYNCPATtern:PLUS`` command. + """ + return self._syncpattern + + @property + def test(self) -> ErrordetectorBitTest: + """Return the ``ERRORDetector:BIT:TEST`` command. + + **Description:** + - This command initiates and terminates bit error testing for the arguments START and + STOP. It zeroes bit error test results for the argument CLEAR. It also copies the test + pattern from the signal to memory for the argument LEARN. It re-synchronizes the + recovered clock for argument SYNC. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:BIT:TEST value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BIT:TEST DPO70000SX + + **Info:** + - ``LEARN`` copies the test pattern from the signal to the hardware template memory. + - ``START`` initiates bit error counting of bit errors and duration. + - ``STOP`` terminates bit error counting of bit errors and duration. + - ``CLEAR`` zeroes the bit error count, duration, and bit error rate. + - ``SYNC`` resynchronizes the recovered clock. + + Sub-properties: + - ``.count``: The ``ERRORDetector:BIT:TEST:COUNt`` command. + - ``.duration``: The ``ERRORDetector:BIT:TEST:DURATION`` command. + - ``.maxaligns``: The ``ERRORDetector:BIT:TEST:MAXALIGNS`` command. + - ``.rate``: The ``ERRORDetector:BIT:TEST:RATE`` command. + - ``.results``: The ``ERRORDetector:BIT:TEST:RESults`` command. + - ``.seconds``: The ``ERRORDetector:BIT:TEST:SECOnds`` command. + - ``.status``: The ``ERRORDetector:BIT:TEST:STATUS`` command. + - ``.time``: The ``ERRORDetector:BIT:TEST:TIME`` command. + """ # noqa: E501 + return self._test + + +class ErrordetectorAlignprimitiveSymbols(SCPICmdWriteNoArguments, SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` command. + + **Description:** + - Sets or queries the four align primitive symbols. You can set one or more symbols with the + command, but they must be done in order. The query returns all four symbols. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:SYMBOLS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:SYMBOLS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write()`` method will send the ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:SYMBOLS + - ERRORDetector:ALIGNPRIMitive:SYMBOLS? + + **Info:** + - ```` is a quoted string representing one of the four align primitive symbols, + such as 'K28.5'. You can set one or more of the symbols with a single command, but the + symbols must be set in order. + """ + + +class ErrordetectorAlignprimitiveSymbolItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive:SYMBOL`` command. + + **Description:** + - Sets or queries the align primitive symbol. The individual symbolic array elements may be + accessed through SYMbol1, SYMBol2, etc. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:SYMBOL?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:SYMBOL?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:SYMBOL value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:SYMBOL + - ERRORDetector:ALIGNPRIMitive:SYMBOL? + + **Info:** + - ```` is a quoted string representing the symbolic align primitive symbols such as + K28.5. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class ErrordetectorAlignprimitiveState(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive:STATE`` command. + + **Description:** + - This command sets or queries the status of the RD- align primitive option. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNPRIMitive:STATE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:STATE value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:STATE {|OFF|ON} + - ERRORDetector:ALIGNPRIMitive:STATE? + + **Info:** + - ``ON`` enables the align primitive option. + - ``OFF`` disables the align primitive option. + - ```` = 0 disables the align primitive option; any other value enables the option. + """ + + +class ErrordetectorAlignprimitivePlusItem(ValidatedDynamicNumberCmd, SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + + **Description:** + - This command queries the align primitive plus value. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:PLUS? + """ + + +class ErrordetectorAlignprimitivePlus(SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + + **Description:** + - This command queries the four RD+ align primitive bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:PLUS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNPRIMitive:PLUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:PLUS? + """ + + +class ErrordetectorAlignprimitiveMinusItem(ValidatedDynamicNumberCmd, SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive:MINus`` command. + + **Description:** + - This command queries the RD- align primitive bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:MINus?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:MINus? + """ + + +class ErrordetectorAlignprimitiveMinus(SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive:MINUS`` command. + + **Description:** + - This command queries the RD- align primitive bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:MINUS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNPRIMitive:MINUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:MINUS? + """ + + +class ErrordetectorAlignprimitive(SCPICmdRead): + """The ``ERRORDetector:ALIGNPRIMitive`` command. + + **Description:** + - This command queries all of the align primitive values, including its state (ON=1/OFF=0), + the length four array of symbolic character values, and the RD+ and RD- .length four + arrays of bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNPRIMitive?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive? + + Properties: + - ``.minus``: The ``ERRORDetector:ALIGNPRIMitive:MINUS`` command. + - ``.minusx``: The ``ERRORDetector:ALIGNPRIMitive:MINus`` command. + - ``.plus``: The ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + - ``.plusx``: The ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + - ``.state``: The ``ERRORDetector:ALIGNPRIMitive:STATE`` command. + - ``.symbol``: The ``ERRORDetector:ALIGNPRIMitive:SYMBOL`` command. + - ``.symbols``: The ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus = ErrordetectorAlignprimitiveMinus(device, f"{self._cmd_syntax}:MINUS") + self._minusx: Dict[int, ErrordetectorAlignprimitiveMinusItem] = DefaultDictPassKeyToFactory( + lambda x: ErrordetectorAlignprimitiveMinusItem(device, f"{self._cmd_syntax}:MINus{x}") + ) + self._plus = ErrordetectorAlignprimitivePlus(device, f"{self._cmd_syntax}:PLUS") + self._plusx: Dict[int, ErrordetectorAlignprimitivePlusItem] = DefaultDictPassKeyToFactory( + lambda x: ErrordetectorAlignprimitivePlusItem(device, f"{self._cmd_syntax}:PLUS{x}") + ) + self._state = ErrordetectorAlignprimitiveState(device, f"{self._cmd_syntax}:STATE") + self._symbol: Dict[ + int, ErrordetectorAlignprimitiveSymbolItem + ] = DefaultDictPassKeyToFactory( + lambda x: ErrordetectorAlignprimitiveSymbolItem(device, f"{self._cmd_syntax}:SYMBOL{x}") + ) + self._symbols = ErrordetectorAlignprimitiveSymbols(device, f"{self._cmd_syntax}:SYMBOLS") + + @property + def minus(self) -> ErrordetectorAlignprimitiveMinus: + """Return the ``ERRORDetector:ALIGNPRIMitive:MINUS`` command. + + **Description:** + - This command queries the RD- align primitive bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:MINUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:MINUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:MINUS? + """ + return self._minus + + @property + def minusx(self) -> Dict[int, ErrordetectorAlignprimitiveMinusItem]: + """Return the ``ERRORDetector:ALIGNPRIMitive:MINus`` command. + + **Description:** + - This command queries the RD- align primitive bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:MINus?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:MINus? + """ + return self._minusx + + @property + def plus(self) -> ErrordetectorAlignprimitivePlus: + """Return the ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + + **Description:** + - This command queries the four RD+ align primitive bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:PLUS? + """ + return self._plus + + @property + def plusx(self) -> Dict[int, ErrordetectorAlignprimitivePlusItem]: + """Return the ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + + **Description:** + - This command queries the align primitive plus value. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:PLUS? + """ + return self._plusx + + @property + def state(self) -> ErrordetectorAlignprimitiveState: + """Return the ``ERRORDetector:ALIGNPRIMitive:STATE`` command. + + **Description:** + - This command sets or queries the status of the RD- align primitive option. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:STATE?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:STATE?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:STATE value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:STATE {|OFF|ON} + - ERRORDetector:ALIGNPRIMitive:STATE? + + **Info:** + - ``ON`` enables the align primitive option. + - ``OFF`` disables the align primitive option. + - ```` = 0 disables the align primitive option; any other value enables the option. + """ + return self._state + + @property + def symbol(self) -> Dict[int, ErrordetectorAlignprimitiveSymbolItem]: + """Return the ``ERRORDetector:ALIGNPRIMitive:SYMBOL`` command. + + **Description:** + - Sets or queries the align primitive symbol. The individual symbolic array elements may + be accessed through SYMbol1, SYMBol2, etc. + + **Usage:** + - Using the ``.query()`` method will send the + ``ERRORDetector:ALIGNPRIMitive:SYMBOL?`` query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:SYMBOL?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:SYMBOL value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:SYMBOL + - ERRORDetector:ALIGNPRIMitive:SYMBOL? + + **Info:** + - ```` is a quoted string representing the symbolic align primitive symbols + such as K28.5. + """ + return self._symbol + + @property + def symbols(self) -> ErrordetectorAlignprimitiveSymbols: + """Return the ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` command. + + **Description:** + - Sets or queries the four align primitive symbols. You can set one or more symbols with + the command, but they must be done in order. The query returns all four symbols. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive:SYMBOLS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNPRIMitive:SYMBOLS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write()`` method will send the ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive:SYMBOLS + - ERRORDetector:ALIGNPRIMitive:SYMBOLS? + + **Info:** + - ```` is a quoted string representing one of the four align primitive symbols, + such as 'K28.5'. You can set one or more of the symbols with a single command, but the + symbols must be set in order. + """ + return self._symbols + + +class ErrordetectorAligncharacterSymbol(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:ALIGNCHARacter:SYMBOL`` command. + + **Description:** + - This command sets or queries the symbolic align character value. Reception of the align + character by the instrument aligns the receiver to the 10-bit character boundary. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter:SYMBOL?`` + query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNCHARacter:SYMBOL?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:ALIGNCHARacter:SYMBOL value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter:SYMBOL + - ERRORDetector:ALIGNCHARacter:SYMBOL? + + **Info:** + - ```` is a quoted string representing a symbolic character, e.g., 'K28.5'. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class ErrordetectorAligncharacterPlus(SCPICmdRead): + """The ``ERRORDetector:ALIGNCHARacter:PLUS`` command. + + **Description:** + - This command queries the RD+ align character bit string value. Reception of the align + character by the instrument aligns the receiver to the 10-bit character boundary. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter:PLUS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNCHARacter:PLUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter:PLUS? + """ + + +class ErrordetectorAligncharacterMinus(SCPICmdRead): + """The ``ERRORDetector:ALIGNCHARacter:MINus`` command. + + **Description:** + - This command queries the RD- align character bit string value. Reception of this character + by the instrument causes the receiver to align to the 10-bit character boundary. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter:MINus?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNCHARacter:MINus?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter:MINus? + """ + + +class ErrordetectorAligncharacter(SCPICmdRead): + """The ``ERRORDetector:ALIGNCHARacter`` command. + + **Description:** + - This command queries all of the align character values. Align characters must be defined + for all test types, and those characters must appear in the signal test pattern. The Align + character may be in symbolic or bit string form + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNCHARacter?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter? + + Properties: + - ``.minus``: The ``ERRORDetector:ALIGNCHARacter:MINus`` command. + - ``.plus``: The ``ERRORDetector:ALIGNCHARacter:PLUS`` command. + - ``.symbol``: The ``ERRORDetector:ALIGNCHARacter:SYMBOL`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus = ErrordetectorAligncharacterMinus(device, f"{self._cmd_syntax}:MINus") + self._plus = ErrordetectorAligncharacterPlus(device, f"{self._cmd_syntax}:PLUS") + self._symbol = ErrordetectorAligncharacterSymbol(device, f"{self._cmd_syntax}:SYMBOL") + + @property + def minus(self) -> ErrordetectorAligncharacterMinus: + """Return the ``ERRORDetector:ALIGNCHARacter:MINus`` command. + + **Description:** + - This command queries the RD- align character bit string value. Reception of this + character by the instrument causes the receiver to align to the 10-bit character + boundary. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter:MINus?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNCHARacter:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter:MINus? + """ + return self._minus + + @property + def plus(self) -> ErrordetectorAligncharacterPlus: + """Return the ``ERRORDetector:ALIGNCHARacter:PLUS`` command. + + **Description:** + - This command queries the RD+ align character bit string value. Reception of the align + character by the instrument aligns the receiver to the 10-bit character boundary. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNCHARacter:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter:PLUS? + """ + return self._plus + + @property + def symbol(self) -> ErrordetectorAligncharacterSymbol: + """Return the ``ERRORDetector:ALIGNCHARacter:SYMBOL`` command. + + **Description:** + - This command sets or queries the symbolic align character value. Reception of the + align character by the instrument aligns the receiver to the 10-bit character + boundary. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter:SYMBOL?`` + query. + - Using the ``.verify(value)`` method will send the + ``ERRORDetector:ALIGNCHARacter:SYMBOL?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``ERRORDetector:ALIGNCHARacter:SYMBOL value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter:SYMBOL + - ERRORDetector:ALIGNCHARacter:SYMBOL? + + **Info:** + - ```` is a quoted string representing a symbolic character, e.g., 'K28.5'. + """ + return self._symbol + + +class ErrordetectorAlert(SCPICmdWrite, SCPICmdRead): + """The ``ERRORDetector:ALERT`` command. + + **Description:** + - This command sets or queries the error detector alert. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALERT?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALERT?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:ALERT value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALERT {ON|OFF|} + - ERRORDetector:ALERT? + + **Info:** + - ``ON`` turns on the error detector alert. + - ``OFF`` turns off the error detector alert. + - ```` = 0 disables the alert; any other value enables the alert. + """ + + +# pylint: disable=too-many-instance-attributes,too-many-public-methods +class Errordetector(SCPICmdRead): + """The ``ERRORDetector`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.alert``: The ``ERRORDetector:ALERT`` command. + - ``.aligncharacter``: The ``ERRORDetector:ALIGNCHARacter`` command. + - ``.alignprimitive``: The ``ERRORDetector:ALIGNPRIMitive`` command. + - ``.bit``: The ``ERRORDetector:BIT`` command tree. + - ``.bitrate``: The ``ERRORDetector:BITRate`` command. + - ``.channel``: The ``ERRORDetector:CHANnel`` command. + - ``.duration``: The ``ERRORDetector:DURATION`` command tree. + - ``.errorlimit``: The ``ERRORDetector:ERRORLIMIT`` command. + - ``.file``: The ``ERRORDetector:FILE`` command tree. + - ``.fontsize``: The ``ERRORDetector:FONTSIze`` command. + - ``.frame``: The ``ERRORDetector:FRAme`` command. + - ``.maxaligns``: The ``ERRORDetector:MAXALIGNS`` command. + - ``.patternname``: The ``ERRORDetector:PATTERNNAME`` command. + - ``.preset``: The ``ERRORDetector:PREset`` command. + - ``.saveimage``: The ``ERRORDetector:SAVEIMAGE`` command. + - ``.savewfm``: The ``ERRORDetector:SAVEWFM`` command. + - ``.scrambled``: The ``ERRORDetector:SCRAMBLED`` command. + - ``.sendemail``: The ``ERRORDetector:SENDEMAIL`` command. + - ``.signaltype``: The ``ERRORDetector:SIGnaltype`` command. + - ``.ssc``: The ``ERRORDetector:SSC`` command. + - ``.standard``: The ``ERRORDetector:STANdard`` command. + - ``.state``: The ``ERRORDetector:STATE`` command. + - ``.status``: The ``ERRORDetector:STATus`` command. + - ``.stopwhen``: The ``ERRORDetector:STOPWHEN`` command. + - ``.symbol``: The ``ERRORDetector:SYMBOL`` command. + - ``.timeformat``: The ``ERRORDetector:TIMEformat`` command. + - ``.type``: The ``ERRORDetector:TYPe`` command. + """ + + def __init__( + self, device: Optional["PIDevice"] = None, cmd_syntax: str = "ERRORDetector" + ) -> None: + super().__init__(device, cmd_syntax) + self._alert = ErrordetectorAlert(device, f"{self._cmd_syntax}:ALERT") + self._aligncharacter = ErrordetectorAligncharacter( + device, f"{self._cmd_syntax}:ALIGNCHARacter" + ) + self._alignprimitive = ErrordetectorAlignprimitive( + device, f"{self._cmd_syntax}:ALIGNPRIMitive" + ) + self._bit = ErrordetectorBit(device, f"{self._cmd_syntax}:BIT") + self._bitrate = ErrordetectorBitrate(device, f"{self._cmd_syntax}:BITRate") + self._channel = ErrordetectorChannel(device, f"{self._cmd_syntax}:CHANnel") + self._duration = ErrordetectorDuration(device, f"{self._cmd_syntax}:DURATION") + self._errorlimit = ErrordetectorErrorlimit(device, f"{self._cmd_syntax}:ERRORLIMIT") + self._file = ErrordetectorFile(device, f"{self._cmd_syntax}:FILE") + self._fontsize = ErrordetectorFontsize(device, f"{self._cmd_syntax}:FONTSIze") + self._frame = ErrordetectorFrame(device, f"{self._cmd_syntax}:FRAme") + self._maxaligns = ErrordetectorMaxaligns(device, f"{self._cmd_syntax}:MAXALIGNS") + self._patternname = ErrordetectorPatternname(device, f"{self._cmd_syntax}:PATTERNNAME") + self._preset = ErrordetectorPreset(device, f"{self._cmd_syntax}:PREset") + self._saveimage = ErrordetectorSaveimage(device, f"{self._cmd_syntax}:SAVEIMAGE") + self._savewfm = ErrordetectorSavewfm(device, f"{self._cmd_syntax}:SAVEWFM") + self._scrambled = ErrordetectorScrambled(device, f"{self._cmd_syntax}:SCRAMBLED") + self._sendemail = ErrordetectorSendemail(device, f"{self._cmd_syntax}:SENDEMAIL") + self._signaltype = ErrordetectorSignaltype(device, f"{self._cmd_syntax}:SIGnaltype") + self._ssc = ErrordetectorSsc(device, f"{self._cmd_syntax}:SSC") + self._standard = ErrordetectorStandard(device, f"{self._cmd_syntax}:STANdard") + self._state = ErrordetectorState(device, f"{self._cmd_syntax}:STATE") + self._status = ErrordetectorStatus(device, f"{self._cmd_syntax}:STATus") + self._stopwhen = ErrordetectorStopwhen(device, f"{self._cmd_syntax}:STOPWHEN") + self._symbol = ErrordetectorSymbol(device, f"{self._cmd_syntax}:SYMBOL") + self._timeformat = ErrordetectorTimeformat(device, f"{self._cmd_syntax}:TIMEformat") + self._type = ErrordetectorType(device, f"{self._cmd_syntax}:TYPe") + + @property + def alert(self) -> ErrordetectorAlert: + """Return the ``ERRORDetector:ALERT`` command. + + **Description:** + - This command sets or queries the error detector alert. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALERT?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALERT?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:ALERT value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALERT {ON|OFF|} + - ERRORDetector:ALERT? + + **Info:** + - ``ON`` turns on the error detector alert. + - ``OFF`` turns off the error detector alert. + - ```` = 0 disables the alert; any other value enables the alert. + """ + return self._alert + + @property + def aligncharacter(self) -> ErrordetectorAligncharacter: + """Return the ``ERRORDetector:ALIGNCHARacter`` command. + + **Description:** + - This command queries all of the align character values. Align characters must be + defined for all test types, and those characters must appear in the signal test + pattern. The Align character may be in symbolic or bit string form + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNCHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNCHARacter?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNCHARacter? + + Sub-properties: + - ``.minus``: The ``ERRORDetector:ALIGNCHARacter:MINus`` command. + - ``.plus``: The ``ERRORDetector:ALIGNCHARacter:PLUS`` command. + - ``.symbol``: The ``ERRORDetector:ALIGNCHARacter:SYMBOL`` command. + """ + return self._aligncharacter + + @property + def alignprimitive(self) -> ErrordetectorAlignprimitive: + """Return the ``ERRORDetector:ALIGNPRIMitive`` command. + + **Description:** + - This command queries all of the align primitive values, including its state + (ON=1/OFF=0), the length four array of symbolic character values, and the RD+ and RD- + .length four arrays of bit string values. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ALIGNPRIMitive?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ALIGNPRIMitive?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ALIGNPRIMitive? + + Sub-properties: + - ``.minus``: The ``ERRORDetector:ALIGNPRIMitive:MINUS`` command. + - ``.minusx``: The ``ERRORDetector:ALIGNPRIMitive:MINus`` command. + - ``.plus``: The ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + - ``.plusx``: The ``ERRORDetector:ALIGNPRIMitive:PLUS`` command. + - ``.state``: The ``ERRORDetector:ALIGNPRIMitive:STATE`` command. + - ``.symbol``: The ``ERRORDetector:ALIGNPRIMitive:SYMBOL`` command. + - ``.symbols``: The ``ERRORDetector:ALIGNPRIMitive:SYMBOLS`` command. + """ + return self._alignprimitive + + @property + def bit(self) -> ErrordetectorBit: + """Return the ``ERRORDetector:BIT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BIT?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BIT?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.length``: The ``ERRORDetector:BIT:LENgth`` command. + - ``.syncpattern``: The ``ERRORDetector:BIT:SYNCPATtern`` command. + - ``.test``: The ``ERRORDetector:BIT:TEST`` command. + """ + return self._bit + + @property + def bitrate(self) -> ErrordetectorBitrate: + """Return the ``ERRORDetector:BITRate`` command. + + **Description:** + - This command sets or queries error detector bitrate enumeration for error detection. + There are two bitrate enumerations for each standard: 1) The standard bitrate, for + example RATE6000 (meaning 6.0Gb/s, for SATA Gen3); and 2) Custom. When Custom is + selected the ``ERRORDetector:BITRATE:VALUE`` must also be set to the specific desired + bitrate. For example, 6.1 Gb/s. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:BITRate?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:BITRate?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:BITRate value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:BITRate {RATEcustom:CUSTOM |RATE312000000:RATE312 |RATE1250000000:RATE1250 |RATE1500000000:RATE1500 |RATE2125000000:RATE2125 |RATE2500000000:RATE2500 |RATE3000000000:RATE3000 |RATE3125000000:RATE3125 |RATE4250000000:RATE4250 |RATE5000000000:RATE5000 |RATE6000000000:RATE6000 |RATE6250000000:RATE6250}DPO70000SX{RATE3200 | RATE3600 | RATE4000 | RATE4400 | RATE4800 | RATE5200 | RATE5600 | RATE6000 | RATE6400 | CUSTOM} + - ERRORDetector:BITRate? + + **Info:** + - ``RATE3200..to..RATE6400`` sets the error detector bit rate to the specified value. + RATE3200 indicates a bitrate of 3.2 Gb/s, etc. + - ``:ERRORDETECTOR:BITRATE:VALUE`` command. + + Sub-properties: + - ``.value``: The ``ERRORDetector:BITRate:VALue`` command. + """ # noqa: E501 + return self._bitrate + + @property + def channel(self) -> ErrordetectorChannel: + """Return the ``ERRORDetector:CHANnel`` command. + + **Description:** + - Sets or queries error detector channel selection. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:CHANnel?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:CHANnel?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:CHANnel value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:CHANnel {CH1 | CH2 | CH3 | CH4} + - ERRORDetector:CHANnel? + + **Info:** + - ``CHx`` is the error detector channel selection. + """ + return self._channel + + @property + def duration(self) -> ErrordetectorDuration: + """Return the ``ERRORDetector:DURATION`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:DURATION?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:DURATION?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.count``: The ``ERRORDetector:DURATION:COUNt`` command. + - ``.seconds``: The ``ERRORDetector:DURATION:SECOnds`` command. + - ``.time``: The ``ERRORDetector:DURATION:TIME`` command. + """ + return self._duration + + @property + def errorlimit(self) -> ErrordetectorErrorlimit: + """Return the ``ERRORDetector:ERRORLIMIT`` command. + + **Description:** + - This command sets or queries the error limit value to use when STOPWHEN is ERROR. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:ERRORLIMIT?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:ERRORLIMIT?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:ERRORLIMIT value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:ERRORLIMIT + - ERRORDetector:ERRORLIMIT? + + **Info:** + - ```` is the maximum number of errors. + """ + return self._errorlimit + + @property + def file(self) -> ErrordetectorFile: + """Return the ``ERRORDetector:FILE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FILE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FILE?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.recall``: The ``ERRORDetector:FILE:RECAll`` command. + - ``.save``: The ``ERRORDetector:FILE:SAVe`` command. + """ + return self._file + + @property + def fontsize(self) -> ErrordetectorFontsize: + """Return the ``ERRORDetector:FONTSIze`` command. + + **Description:** + - Sets or queries error detector font size selection. Currently, the font size only + applied the error detector UI control window. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FONTSIze?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FONTSIze?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:FONTSIze value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FONTSIze {DEFAULT | LARGE | XLARGE} + - ERRORDetector:FONTSIze? + + **Info:** + - ``DEFAULT`` sets the font size to the default size. + - ``LARGE`` sets the font size to large. + - ``XLARGE`` sets the font size to extra large. + """ + return self._fontsize + + @property + def frame(self) -> ErrordetectorFrame: + """Return the ``ERRORDetector:FRAme`` command. + + **Description:** + - This command queries all frame error settings, status, and results. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:FRAme?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:FRAme?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:FRAme? + + Sub-properties: + - ``.eof``: The ``ERRORDetector:FRAme:EOF`` command. + - ``.initialcrcvalue``: The ``ERRORDetector:FRAme:INITIALCRCVALue`` command. + - ``.sof``: The ``ERRORDetector:FRAme:SOF`` command. + - ``.test``: The ``ERRORDetector:FRAme:TEST`` command. + """ + return self._frame + + @property + def maxaligns(self) -> ErrordetectorMaxaligns: + """Return the ``ERRORDetector:MAXALIGNS`` command. + + **Description:** + - This command sets or queries the maximum consecutive align primitives before a + ``MAX_AP_FAIL`` error is reported. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:MAXALIGNS?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:MAXALIGNS?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:MAXALIGNS value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:MAXALIGNS + - ERRORDetector:MAXALIGNS? + + **Info:** + - ```` is a integer. The limit values are 0 to 63 and the default is 8. + """ + return self._maxaligns + + @property + def patternname(self) -> ErrordetectorPatternname: + """Return the ``ERRORDetector:PATTERNNAME`` command. + + **Description:** + - This command sets or queries the pattern name stored in the setup file. Setting this + name has no functional effect on the instrument, but it is a convenient reminder to + users as to which setup is in effect. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:PATTERNNAME?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:PATTERNNAME?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:PATTERNNAME value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:PATTERNNAME + - ERRORDetector:PATTERNNAME? + + **Info:** + - ```` is a quoted string representing a pattern name. + """ + return self._patternname + + @property + def preset(self) -> ErrordetectorPreset: + """Return the ``ERRORDetector:PREset`` command. + + **Description:** + - This command sets or queries error detector font preset selection. A number of preset + setups are selected by this parameter to cover the more common cases. The preset names + attempt to indicate the standard, signal pattern, and test type employed. The bit rate + appropriate for the standard is used. The text files containing the preset setups are + located in the C:UsersPublicTektronixTekScopeErrorDetector directory in Windows. You + may select CUSTOM as a preset value, and save or recall your own custom setups. You + may want to recall one of the standard preset setups, modify some of the parameters, + and then save it as a custom setup for recall at a later time. This same behavior is + supported on the error detector User Interface. he ``SATA3_FRAME`` preset expects the + SATA3 Compliance Pattern. ``USB3_SYMBOL`` preset expects the USB3 standard ``CP0_SKP`` + signal. You can set a PATTERNNAME for each setup. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:PREset value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:PREset {SATA1_CJTPAT_BIT | SATA2_CJTPAT_BIT | SATA3_CJTPAT_BIT | SATA3_FRAME | SATA3_CHAR | SATA3_HFTP_BIT | SATA3_LBP_BIT | SATA3_LFTP_BIT | SATA3_MFTP_BIT | USB3_SYMBOL | USB3_CHAR | PCIE1_COMP_BIT | PCIE2_COMP_BIT | ANY_CJTPAT_BIT | ANY_CJTPAT_CHAR | CUSTOM}DPO70000SX{CUSTOM_SETUP | PRBS7_BIT_ERROR | PRBS9_BIT_ERROR | PRBS11_BIT_ERROR | PRBS16_BIT_ERROR | PRBS23_BIT_ERROR} + + Sub-properties: + - ``.apply``: The ``ERRORDetector:PREset:APPLY`` command. + """ # noqa: E501 + return self._preset + + @property + def saveimage(self) -> ErrordetectorSaveimage: + """Return the ``ERRORDetector:SAVEIMAGE`` command. + + **Description:** + - Sets or queries error detector Save Image control. When set to ON, a screen shot will + be made when the error detector detects an error (because detecting an error triggers + the scope). The images are saved in the C:Users + TektronixTekScopeSaveOnTrigger directory. A default limit of 10 screen shots prevents + overflowing your disk drive should the error detector sense massive errors, such as + when you disconnect the signal. If you also set the SendEmail parameter to ON, the + saved image (screen shot) will be emailed to the recipient (set elsewhere in the + trigger PI). SaveImage is an alternate way of setting the Save on Trigger actions + defined elsewhere in the PI. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SAVEIMAGE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SAVEIMAGE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SAVEIMAGE value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SAVEIMAGE {OFF | ON} + - ERRORDetector:SAVEIMAGE? + """ + return self._saveimage + + @property + def savewfm(self) -> ErrordetectorSavewfm: + """Return the ``ERRORDetector:SAVEWFM`` command. + + **Description:** + - This command sets or queries error detector Save Waveform (WFM) control. When set to + ON, a waveform object will be made when the error detector detects an error (because + detecting an error triggers the instrument). The waveforms are saved in the + C:UsersTektronixTekScopeSaveOnTrigger directory. A default limit of 10 + screen shots prevents overflowing your disk drive should the error detector sense + massive errors, such as when you disconnect the signal. If you also set the SendEmail + parameter to ON, the saved waveform (wfm object) is emailed to the recipient (set + elsewhere in the trigger PI) as an attachedment. SaveImage is an alternate way of + setting the Save on Trigger actions defined elsewhere in the PI. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SAVEWFM?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SAVEWFM?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SAVEWFM value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SAVEWFM {OFF | ON} + - ERRORDetector:SAVEWFM? + + **Info:** + - ``OFF`` turns off the error detector save waveform feature. + - ``ON`` turns on the error detector save waveform feature. + """ + return self._savewfm + + @property + def scrambled(self) -> ErrordetectorScrambled: + """Return the ``ERRORDetector:SCRAMBLED`` command. + + **Description:** + - This command sets or queries the status of the error detection data scrambling option. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SCRAMBLED?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SCRAMBLED?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SCRAMBLED value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SCRAMBLED {ON | OFF} + - ERRORDetector:SCRAMBLED? + + **Info:** + - ``ON`` enables the error detection data scrambling option. This is the default option. + - ``OFF`` disables the error detection data scrambling option. + """ + return self._scrambled + + @property + def sendemail(self) -> ErrordetectorSendemail: + """Return the ``ERRORDetector:SENDEMAIL`` command. + + **Description:** + - This command sets or queries error detector Send Email control. When set to ON, a + email will be sent to the recipient, defined elsewhere in the PI, when the error + detector detects an error (because detecting an error triggers the instrument). The + default number of emails sent is 1, so that you do not overflow your inbox. If you + also set the SaveImage or SaveWfm parameters to ON, the email will contain these + items. Send Email is an alternate way of setting the E-mail on Trigger actions defined + elsewhere in the PI. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SENDEMAIL?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SENDEMAIL?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SENDEMAIL value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SENDEMAIL {OFF | ON} + - ERRORDetector:SENDEMAIL? + + **Info:** + - ``OFF`` disables the send email feature. + - ``ON`` enables the send email feature. + """ + return self._sendemail + + @property + def signaltype(self) -> ErrordetectorSignaltype: + """Return the ``ERRORDetector:SIGnaltype`` command. + + **Description:** + - This command sets or queries error detector Signal Type control. Setting the signal + type establishes the bit rate appropriate for the standard, as well as establishing + the testing algorithm. Custom bit rates may be used as well. See the + ``ERRORDetector:BITRATE`` and ``ERRORDetector:BITRATE:VALue`` commands. + + **Usage:** + - Using the ``.write(value)`` method will send the ``ERRORDetector:SIGnaltype value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SIGnaltype {SATAGEN| USB3|PCIEGEN|ANY8B10B|PRBS7|PRBS9}?DPO70000SX{CUSTOM | PRBS7 | PRBS9 | PRBS11 | PRBS16 |PRBS23} + + **Info:** + - ``The DPO70000SX only supports PRBS7, PRBS9, PRBS11, PRBS16, PRBS23, and CUSTOM.`` + """ # noqa: E501 + return self._signaltype + + @property + def ssc(self) -> ErrordetectorSsc: + """Return the ``ERRORDetector:SSC`` command. + + **Description:** + - This command sets or queries the status of the spread spectrum clock tracking option. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SSC?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SSC?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:SSC value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SSC {ON|OFF} + - ERRORDetector:SSC? + + **Info:** + - ``ON`` enables spread spectrum clock tracking. For error detector, the spread spectrum + clock tracking should always be turned on. + - ``OFF`` disables spread spectrum clock tracking. For serial trigger, the spread + spectrum clock tracking is turned off. + """ + return self._ssc + + @property + def standard(self) -> ErrordetectorStandard: + """Return the ``ERRORDetector:STANdard`` command. + + **Description:** + - This command sets or queries the standard selection for error testing. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STANdard?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STANdard?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:STANdard value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STANdard + - ERRORDetector:STANdard? + + **Info:** + - ```` is the supported standard. + """ + return self._standard + + @property + def state(self) -> ErrordetectorState: + """Return the ``ERRORDetector:STATE`` command. + + **Description:** + - This command sets or queries the status of the error option. STATE must be ON to use + the error detector feature. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STATE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:STATE value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STATE {| OFF | ON}?DPO70000SX{OFF | ON} + - ERRORDetector:STATE? + + **Info:** + - ``ON`` enables the software error detector feature. + - ``OFF`` disables the software error detector feature. This is the default. + - ```` = 0 disables the error detector; any other value enables the error detector. + """ + return self._state + + @property + def status(self) -> ErrordetectorStatus: + """Return the ``ERRORDetector:STATus`` command. + + **Description:** + - Queries only the 'most significant' or 'summary' status of the error detector. All of + the status flags for each test type may be obtained from the + ``ERRORdetector::TEST:STATUS`` commands. LOCK refers to the recovered clock. + Signal refers to the cable carrying the signal to the scope. SYNC refers to bit error + tests that require a sync pattern. STOPPED/COUNTING refer to whether the error + detector is testing for errors. ``MAX_AP`` refers to whether the error detector has + detected the maximum consecutive Align (or SkipSets) Primitives as specified in the + ERRORDetector: MAXALIGNS command + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STATus?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STATus?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STATus? + """ + return self._status + + @property + def stopwhen(self) -> ErrordetectorStopwhen: + """Return the ``ERRORDetector:STOPWHEN`` command. + + **Description:** + - This command sets or queries the stopping condition. The test can be stopped when the + count, time, or number of errors elapses. If the STOPWHEN value is MANUAL, the test + runs until a TEST STOP command is received. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:STOPWHEN?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:STOPWHEN?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:STOPWHEN value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:STOPWHEN DPO70000SX + - ERRORDetector:STOPWHEN? + + **Info:** + - ``MANUAL`` indicates that the test must be stopped by issuing a TEST STOP command. + This is the default. + - ``COUNT`` stops the test when ``DURATION:COUNT`` comparisons are made. The comparisons + can be bit, frame, symbol, or character as appropriate for the ``TEST:TYPE``. + - ``TIME`` stops the test when ``DURATION:TIME`` elapses. + - ``ERROR`` stops the test when the number of errors ≥ ERRORLIMIT. + """ + return self._stopwhen + + @property + def symbol(self) -> ErrordetectorSymbol: + """Return the ``ERRORDetector:SYMBOL`` command. + + **Description:** + - This command queries all symbol error settings, status, and results. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:SYMBOL?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:SYMBOL?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ERRORDetector:SYMBOL? + + Sub-properties: + - ``.test``: The ``ERRORDetector:SYMBOL:TEST`` command. + """ + return self._symbol + + @property + def timeformat(self) -> ErrordetectorTimeformat: + """Return the ``ERRORDetector:TIMEformat`` command. + + **Description:** + - This command sets or queries error detector Elapsed Time Format as DDHHMMSS or + Seconds. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:TIMEformat?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:TIMEformat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:TIMEformat value`` + command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:TIMEformat {DDHHMMSS | SECONDS} + - ERRORDetector:TIMEformat? + """ + return self._timeformat + + @property + def type(self) -> ErrordetectorType: + """Return the ``ERRORDetector:TYPe`` command. + + **Description:** + - This command sets or queries the error detector type. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector:TYPe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ERRORDetector:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - ERRORDetector:TYPe {BIT | FRAME | SYMBOL | CHARACTER | PRBS7 | PRBS9} + - ERRORDetector:TYPe? + + **Info:** + - ``BIT`` sets the error detector type to bit. + - ``FRAME`` sets the error detector type to frame. + - ``SYMBOL`` sets the error detector type to symbol. + - ``CHARACTER`` sets the error detector type to character. + - ``PRBS7`` sets the error detector type to PRBS7. + - ``PRBS9`` sets the error detector type to PRBS9. + """ + return self._type diff --git a/src/tm_devices/commands/_fn2qbf_msodpo/trigger.py b/src/tm_devices/commands/_fn2qbf_msodpo/trigger.py new file mode 100644 index 000000000..44e0ef927 --- /dev/null +++ b/src/tm_devices/commands/_fn2qbf_msodpo/trigger.py @@ -0,0 +1,36710 @@ +# pylint: disable=too-many-lines +# pylint: disable=line-too-long +r"""The trigger commands module. + +These commands are used in the following models: +DPO5K, DPO7K, MSO5K + +THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. + +Please report an issue if one is found. + +Commands and Queries: + +:: + + - TRIGger FORCe + - TRIGger:A SETLevel + - TRIGger:A:BUS:CAN:ADDRess:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:ADDRess:DIRection? + - TRIGger:A:BUS:CAN:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:ADDRess:FORMat? + - TRIGger:A:BUS:CAN:ADDRess:MODe {EXTENDed|STandard} + - TRIGger:A:BUS:CAN:ADDRess:MODe? + - TRIGger:A:BUS:CAN:ADDRess:VALue + - TRIGger:A:BUS:CAN:ADDRess:VALue? + - TRIGger:A:BUS:CAN:CONDition {ERRor|DATA|IDANDDATA|EOF|IDentifier|ACKMISS|SOF|FRAMEtype} + - TRIGger:A:BUS:CAN:CONDition? + - TRIGger:A:BUS:CAN:DATa:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:DATa:DIRection? + - TRIGger:A:BUS:CAN:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:DATa:FORMat? + - TRIGger:A:BUS:CAN:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:CAN:DATa:QUALifier? + - TRIGger:A:BUS:CAN:DATa:SIZe + - TRIGger:A:BUS:CAN:DATa:SIZe? + - TRIGger:A:BUS:CAN:DATa:VALue + - TRIGger:A:BUS:CAN:DATa:VALue? + - TRIGger:A:BUS:CAN:FRAMEtype {DATa|ERRor|OVERLoad|REMote} + - TRIGger:A:BUS:CAN:FRAMEtype? + - TRIGger:A:BUS:CAN:IDentifier:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:IDentifier:DIRection? + - TRIGger:A:BUS:CAN:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:IDentifier:FORMat? + - TRIGger:A:BUS:CAN:IDentifier:MODe {EXTENDed|STandard} + - TRIGger:A:BUS:CAN:IDentifier:MODe? + - TRIGger:A:BUS:CAN:IDentifier:VALue + - TRIGger:A:BUS:CAN:IDentifier:VALue? + - TRIGger:A:BUS:DATa:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:DATa:FORMat? + - TRIGger:A:BUS:DATa:VALue + - TRIGger:A:BUS:DATa:VALue? + - TRIGger:A:BUS:ETHERnet:DATa:FORMat {BINARY | HEX} + - TRIGger:A:BUS:ETHERnet:DATa:FORMat? + - TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue + - TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue? + - TRIGger:A:BUS:FLEXRAY:CONDition {SOF|FRAMEtype|IDentifier|CYCLEcount|HEADer|DATA|IDANDDATA|EOF|ERRor} + - TRIGger:A:BUS:FLEXRAY:CONDition? + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat? + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier? + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue? + - TRIGger:A:BUS:FLEXRAY:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:DATa:FORMat? + - TRIGger:A:BUS:FLEXRAY:DATa:OFFSet + - TRIGger:A:BUS:FLEXRAY:DATa:OFFSet? + - TRIGger:A:BUS:FLEXRAY:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:DATa:QUALifier? + - TRIGger:A:BUS:FLEXRAY:DATa:SIZe + - TRIGger:A:BUS:FLEXRAY:DATa:SIZe? + - TRIGger:A:BUS:FLEXRAY:DATa:VALue + - TRIGger:A:BUS:FLEXRAY:DATa:VALue? + - TRIGger:A:BUS:FLEXRAY:EOFTYPE {ALL|STATIC|DYNAMIC} + - TRIGger:A:BUS:FLEXRAY:EOFTYPE? + - TRIGger:A:BUS:FLEXRAY:ERRTYPE {CRCHEADer|CRCTRAILer|NULLFRSTATIC|NULLFRDYNAMIC |SYNCFRAME|STARTUPNOSYNC} + - TRIGger:A:BUS:FLEXRAY:ERRTYPE? + - TRIGger:A:BUS:FLEXRAY:FRAMEType {NORMal|PAYload|NULL|SYNC|STARTup} + - TRIGger:A:BUS:FLEXRAY:FRAMEType? + - TRIGger:A:BUS:FLEXRAY:HEADER:CRC + - TRIGger:A:BUS:FLEXRAY:HEADER:CRC? + - TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount + - TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount? + - TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID + - TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID? + - TRIGger:A:BUS:FLEXRAY:HEADER:INDBits + - TRIGger:A:BUS:FLEXRAY:HEADER:INDBits? + - TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth + - TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth? + - TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat? + - TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier? + - TRIGger:A:BUS:FLEXRAY:IDentifier:VALue + - TRIGger:A:BUS:FLEXRAY:IDentifier:VALue? + - TRIGger:A:BUS:I2C:ADDress:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:I2C:ADDress:FORMat? + - TRIGger:A:BUS:I2C:ADDress:MODe {ADDR7|ADDR10} + - TRIGger:A:BUS:I2C:ADDress:MODe? + - TRIGger:A:BUS:I2C:ADDress:TYPe {NONe|STARtbyte|HSMODe|GENeralcall|EEPROm|CBUS} + - TRIGger:A:BUS:I2C:ADDress:TYPe? + - TRIGger:A:BUS:I2C:ADDress:VALue + - TRIGger:A:BUS:I2C:ADDress:VALue? + - TRIGger:A:BUS:I2C:CONDition {ACKMISS|ADDress|ADDRANDDATA|DATa|REPEATstart|STARt|STOP} + - TRIGger:A:BUS:I2C:CONDition? + - TRIGger:A:BUS:I2C:DATa:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:I2C:DATa:DIRection? + - TRIGger:A:BUS:I2C:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:I2C:DATa:FORMat? + - TRIGger:A:BUS:I2C:DATa:SIZe + - TRIGger:A:BUS:I2C:DATa:SIZe? + - TRIGger:A:BUS:I2C:DATa:VALue + - TRIGger:A:BUS:I2C:DATa:VALue? + - TRIGger:A:BUS:LIN:CONDition {DATA|IDANDDATA|ERRor|IDentifier|SLEEP|SYNC|WAKEup} + - TRIGger:A:BUS:LIN:CONDition? + - TRIGger:A:BUS:LIN:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:LIN:DATa:FORMat? + - TRIGger:A:BUS:LIN:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:LIN:DATa:QUALifier? + - TRIGger:A:BUS:LIN:DATa:SIZe + - TRIGger:A:BUS:LIN:DATa:SIZe? + - TRIGger:A:BUS:LIN:DATa:VALue + - TRIGger:A:BUS:LIN:DATa:VALue? + - TRIGger:A:BUS:LIN:ERRTYPE {CHecksum|PARity|SYNC} + - TRIGger:A:BUS:LIN:ERRTYPE? + - TRIGger:A:BUS:LIN:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:LIN:IDentifier:FORMat? + - TRIGger:A:BUS:LIN:IDentifier:VALue + - TRIGger:A:BUS:LIN:IDentifier:VALue? + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat? + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier {LESSthan|MOREthan|EQual|UNEQual|LESSEQual|MOREEQual} + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier? + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue? + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat? + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt? + - TRIGger:A:BUS:MIL1553B:COMMAND:PARity {0|1|X|ZERo|ONE|NOCARE|OFF|ON|DONTCare} + - TRIGger:A:BUS:MIL1553B:COMMAND:PARity? + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat? + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress? + - TRIGger:A:BUS:MIL1553B:COMMAND:TRBit {RX|TX|X|DONTCare} + - TRIGger:A:BUS:MIL1553B:COMMAND:TRBit? + - TRIGger:A:BUS:MIL1553B:CONDition {SYNC|COMMAND|STATUS|DATA|TIMe|ERRor} + - TRIGger:A:BUS:MIL1553B:CONDition? + - TRIGger:A:BUS:MIL1553B:DATA:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:DATA:FORMat? + - TRIGger:A:BUS:MIL1553B:DATA:PARity {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:DATA:PARity? + - TRIGger:A:BUS:MIL1553B:DATA:VALue + - TRIGger:A:BUS:MIL1553B:DATA:VALue? + - TRIGger:A:BUS:MIL1553B:ERRTYPE {PARity|SYNC|MANCHester|DATA} + - TRIGger:A:BUS:MIL1553B:ERRTYPE? + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat? + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier {LESSthan|MOREthan|EQual|UNEQual|LESSEQual|MOREEQual} + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier? + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity {0|1|X|ZERo|ONE|NOCARE|DONTCare|ON|OFF} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF? + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF? + - TRIGger:A:BUS:MIL1553B:TIME:LESSLimit + - TRIGger:A:BUS:MIL1553B:TIME:LESSLimit? + - TRIGger:A:BUS:MIL1553B:TIME:MORELimit + - TRIGger:A:BUS:MIL1553B:TIME:MORELimit? + - TRIGger:A:BUS:MIL1553B:TIME:QUALifier {LESSthan|MOREthan|INrange|OUTrange} + - TRIGger:A:BUS:MIL1553B:TIME:QUALifier? + - TRIGger:A:BUS:PCIE:CHARacter:CHAR + - TRIGger:A:BUS:PCIE:CHARacter:CHAR? + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus? + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS? + - TRIGger:A:BUS:PCIE:CONDition {ANYControl|CHARacter|ERROR|PATtern} + - TRIGger:A:BUS:PCIE:CONDition? + - TRIGger:A:BUS:PCIE:DISParity {EITher|NEGAtive|POSITIVe} + - TRIGger:A:BUS:PCIE:DISParity? + - TRIGger:A:BUS:PCIE:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:PCIE:ERROR? + - TRIGger:A:BUS:PCIE:FORMat {ORDERedset|SYMbol|CHAR} + - TRIGger:A:BUS:PCIE:FORMat? + - TRIGger:A:BUS:PCIE:PATtern:CHAR + - TRIGger:A:BUS:PCIE:PATtern:CHAR? + - TRIGger:A:BUS:PCIE:PATtern:ORDERedset {EI|FTS|SKP} + - TRIGger:A:BUS:PCIE:PATtern:ORDERedset? + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus? + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS? + - TRIGger:A:BUS:RS232C:CONDition {DATa|EOp|PARItyerror|STARt} + - TRIGger:A:BUS:RS232C:CONDition? + - TRIGger:A:BUS:RS232C:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:RS232C:DATa:FORMat? + - TRIGger:A:BUS:RS232C:DATa:SIZe + - TRIGger:A:BUS:RS232C:DATa:SIZe? + - TRIGger:A:BUS:RS232C:DATa:VALue + - TRIGger:A:BUS:RS232C:DATa:VALue? + - TRIGger:A:BUS:S64B66B:BLOCKONE { SYNC | INVSYNC | BLOCKtype | PATtern } + - TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType { NONe | X1E | X2D | X33 | X66 | X55 | X78 | X4B | X87 | X99 | XB4 | XCC | XD2 | XE1 | XFF } + - TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType? + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat { Binary | HEX } + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat? + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC? + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue? + - TRIGger:A:BUS:S64B66B:BLOCKONE? + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat { Binary | HEX } + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat? + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC? + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue? + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC? + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue? + - TRIGger:A:BUS:S64B66B:CONDition { BLOCK | BLOCK1THEN2 } + - TRIGger:A:BUS:S64B66B:CONDition? + - TRIGger:A:BUS:S8B10B:CHARacter:CHAR + - TRIGger:A:BUS:S8B10B:CHARacter:CHAR? + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus? + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS? + - TRIGger:A:BUS:S8B10B:CONDition {ANYControl|CHARacter|ERROR|PATtern} + - TRIGger:A:BUS:S8B10B:CONDition? + - TRIGger:A:BUS:S8B10B:DISParity {NEGAtive|POSITIVe|EITher} + - TRIGger:A:BUS:S8B10B:DISParity? + - TRIGger:A:BUS:S8B10B:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:S8B10B:ERROR? + - TRIGger:A:BUS:S8B10B:FORMat {CHAR|SYMbol} + - TRIGger:A:BUS:S8B10B:FORMat? + - TRIGger:A:BUS:S8B10B:PATtern:CHAR + - TRIGger:A:BUS:S8B10B:PATtern:CHAR? + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus? + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS? + - TRIGger:A:BUS:SOUrce {B1|B2|B3|B4|B5|B6|B7|B8|B9|B10|B11|B12| B13|B14|B15|B16} + - TRIGger:A:BUS:SOUrce? + - TRIGger:A:BUS:SPI:CONDition {DATA|SS} + - TRIGger:A:BUS:SPI:CONDition? + - TRIGger:A:BUS:SPI:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:SPI:DATa:FORMat? + - TRIGger:A:BUS:SPI:DATa:SIZe + - TRIGger:A:BUS:SPI:DATa:SIZe? + - TRIGger:A:BUS:SPI:DATa:VALue + - TRIGger:A:BUS:SPI:DATa:VALue? + - TRIGger:A:BUS:USB:ADDress:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:USB:ADDress:FORMat? + - TRIGger:A:BUS:USB:ADDress:HIVALue + - TRIGger:A:BUS:USB:ADDress:HIVALue? + - TRIGger:A:BUS:USB:ADDress:VALue + - TRIGger:A:BUS:USB:ADDress:VALue? + - TRIGger:A:BUS:USB:CHARacter:CHAR + - TRIGger:A:BUS:USB:CHARacter:CHAR? + - TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus? + - TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS? + - TRIGger:A:BUS:USB:CONDition {DATAPacket|EOP|ERROR|HANDSHAKEPacket|RESET|RESUME| SPECIALPacket|SUSPEND|SYNC|TOKENPacket} + - TRIGger:A:BUS:USB:CONDition? + - TRIGger:A:BUS:USB:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:DATa:FORMat? + - TRIGger:A:BUS:USB:DATa:HIVALue + - TRIGger:A:BUS:USB:DATa:HIVALue? + - TRIGger:A:BUS:USB:DATa:OFFSet {|DONTCare} + - TRIGger:A:BUS:USB:DATa:OFFSet? + - TRIGger:A:BUS:USB:DATa:SIZe + - TRIGger:A:BUS:USB:DATa:SIZe? + - TRIGger:A:BUS:USB:DATa:TYPe {ANY|DATA|MDATA} + - TRIGger:A:BUS:USB:DATa:TYPe? + - TRIGger:A:BUS:USB:DATa:VALue + - TRIGger:A:BUS:USB:DATa:VALue? + - TRIGger:A:BUS:USB:DISParity {NEGAtive|POSITIVe|EITher} + - TRIGger:A:BUS:USB:DISParity? + - TRIGger:A:BUS:USB:ENDPoint:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:ENDPoint:FORMat? + - TRIGger:A:BUS:USB:ENDPoint:HIVALue + - TRIGger:A:BUS:USB:ENDPoint:HIVALue? + - TRIGger:A:BUS:USB:ENDPoint:VALue + - TRIGger:A:BUS:USB:ENDPoint:VALue? + - TRIGger:A:BUS:USB:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:USB:ERROR? + - TRIGger:A:BUS:USB:ERRTYPE {BITSTUFFing|CRC5|CRC16|PID} + - TRIGger:A:BUS:USB:ERRTYPE? + - TRIGger:A:BUS:USB:FORMat {CHAR|SYMbol} + - TRIGger:A:BUS:USB:FORMat? + - TRIGger:A:BUS:USB:HANDShaketype {ACK|ANY|NAK|NYET|STALL} + - TRIGger:A:BUS:USB:HANDShaketype? + - TRIGger:A:BUS:USB:PATtern:CHAR + - TRIGger:A:BUS:USB:PATtern:CHAR? + - TRIGger:A:BUS:USB:PATtern:NUMSymbols + - TRIGger:A:BUS:USB:PATtern:NUMSymbols? + - TRIGger:A:BUS:USB:PATtern:ORDERedset {OFF|ON|0|1} + - TRIGger:A:BUS:USB:PATtern:ORDERedset? + - TRIGger:A:BUS:USB:PATtern:SYMbol:MINus + - TRIGger:A:BUS:USB:PATtern:SYMbol:MINus? + - TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS? + - TRIGger:A:BUS:USB:QUAlifier {EQUal|INrange|LESSEQual|MOREEQual|OUTrange|UNEQual| LESSThan|MOREThan} + - TRIGger:A:BUS:USB:QUAlifier? + - TRIGger:A:BUS:USB:SOF:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:USB:SOF:FORMat? + - TRIGger:A:BUS:USB:SOF:FRAMENUMber + - TRIGger:A:BUS:USB:SOF:FRAMENUMber? + - TRIGger:A:BUS:USB:SPECIALType {ANY|ERR|PING|PRE|RESERVED|SPLIT} + - TRIGger:A:BUS:USB:SPECIALType? + - TRIGger:A:BUS:USB:SPLIT:ET:VALue {DONTcare|CONTRol|ISOchronous|BULK|INTERRUPT} + - TRIGger:A:BUS:USB:SPLIT:ET:VALue? + - TRIGger:A:BUS:USB:SPLIT:HUB:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:SPLIT:HUB:FORMat? + - TRIGger:A:BUS:USB:SPLIT:HUB:VALue + - TRIGger:A:BUS:USB:SPLIT:HUB:VALue? + - TRIGger:A:BUS:USB:SPLIT:PORT:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:SPLIT:PORT:FORMat? + - TRIGger:A:BUS:USB:SPLIT:PORT:VALue + - TRIGger:A:BUS:USB:SPLIT:PORT:VALue? + - TRIGger:A:BUS:USB:SPLIT:SC:VALue {CSPLIT|SSPLIT|DONTcare} + - TRIGger:A:BUS:USB:SPLIT:SC:VALue? + - TRIGger:A:BUS:USB:SPLIT:SE:VALue {DONTCare|FULLSPeed|LOWSPeed|ISOMID|ISOEND|ISOSTART|ISOALL} + - TRIGger:A:BUS:USB:SPLIT:SE:VALue? + - TRIGger:A:BUS:USB:TOKENType {ANY|IN|OUT|SOF|SETUP} + - TRIGger:A:BUS:USB:TOKENType? + - TRIGger:A:CAN:CONDition {SOF|FRAMEtype|IDENTifier|DATA|IDANDDATA|EOF|ACKMISS} + - TRIGger:A:CAN:CONDition? + - TRIGger:A:CAN:DATa:DIRection {READ|WRITE|NOCARE} + - TRIGger:A:CAN:DATa:DIRection? + - TRIGger:A:CAN:DATa:LEVel + - TRIGger:A:CAN:DATa:LEVel? + - TRIGger:A:CAN:DATa:SOUrce CH + - TRIGger:A:CAN:DATa:SOUrce? + - TRIGger:A:CAN:DATa:VALue + - TRIGger:A:CAN:DATa:VALue? + - TRIGger:A:CAN:FORMat {BINary|HEX} + - TRIGger:A:CAN:FORMat? + - TRIGger:A:CAN:FRAMEtype {DATA|REMote|ERROR|OVERLOAD} + - TRIGger:A:CAN:FRAMEtype? + - TRIGger:A:CAN:IDENTifier:MODe {STANdard|EXTENded} + - TRIGger:A:CAN:IDENTifier:MODe? + - TRIGger:A:CAN:IDENTifier:VALue + - TRIGger:A:CAN:IDENTifier:VALue? + - TRIGger:A:CAN:PROBE {CANL|CANH|DIFFerential|TX|RX} + - TRIGger:A:CAN:PROBE? + - TRIGger:A:CAN:SPEed + - TRIGger:A:CAN:SPEed? + - TRIGger:A:COMMunication:AMI:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:AMI:PULSEForm? + - TRIGger:A:COMMunication:AMI:THReshold:HIGH + - TRIGger:A:COMMunication:AMI:THReshold:HIGH? + - TRIGger:A:COMMunication:AMI:THReshold:LOW + - TRIGger:A:COMMunication:AMI:THReshold:LOW? + - TRIGger:A:COMMunication:B3ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B3ZS:PULSEForm? + - TRIGger:A:COMMunication:B3ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B3ZS:THReshold:HIGH? + - TRIGger:A:COMMunication:B3ZS:THReshold:LOW + - TRIGger:A:COMMunication:B3ZS:THReshold:LOW? + - TRIGger:A:COMMunication:B6ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B6ZS:PULSEForm? + - TRIGger:A:COMMunication:B6ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B6ZS:THReshold:HIGH? + - TRIGger:A:COMMunication:B6ZS:THReshold:LOW + - TRIGger:A:COMMunication:B6ZS:THReshold:LOW? + - TRIGger:A:COMMunication:B8ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B8ZS:PULSEForm? + - TRIGger:A:COMMunication:B8ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B8ZS:THReshold:HIGH? + - TRIGger:A:COMMunication:B8ZS:THReshold:LOW + - TRIGger:A:COMMunication:B8ZS:THReshold:LOW? + - TRIGger:A:COMMunication:BITRate + - TRIGger:A:COMMunication:BITRate? + - TRIGger:A:COMMunication:CLOCk:POLarity {RISe|FALL} + - TRIGger:A:COMMunication:CLOCk:POLarity? + - TRIGger:A:COMMunication:CMI:PULSEForm {PLUSOne|MINUSOne|ZERO|EYEdiagram} + - TRIGger:A:COMMunication:CMI:PULSEForm? + - TRIGger:A:COMMunication:CODe {AMI|HDB3|B3ZS|B6ZS|B8ZS|CMI|NRZ|MLT3|MANChester} + - TRIGger:A:COMMunication:CODe? + - TRIGger:A:COMMunication:HDB3:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:HDB3:PULSEForm? + - TRIGger:A:COMMunication:HDB3:THReshold:HIGH + - TRIGger:A:COMMunication:HDB3:THReshold:HIGH? + - TRIGger:A:COMMunication:HDB3:THReshold:LOW + - TRIGger:A:COMMunication:HDB3:THReshold:LOW? + - TRIGger:A:COMMunication:SOUrce {CH} + - TRIGger:A:COMMunication:SOUrce:TYPe {DATa|CLOCk|RECOVered} + - TRIGger:A:COMMunication:SOUrce:TYPe? + - TRIGger:A:COMMunication:SOUrce? + - TRIGger:A:COMMunication:STANdard {ATAG|CLOCKCoax| CLOCKSymmetrical|Custom|D|DS0Contra| DS0Double| DS0Single|DS0Timing|DS1|DS1A| DS1C|DS2| DS2RATECoax|DS2RATESymmetrical| DS3|DS4NA|E1|E2|E3|E4|ENET100|ENET1250| ENETXAUI| FC133|FC266|FC531|FC1063|FC2125|FC4250| FST|FW1394BS400B|FW1394BS1600B|HST|INF2_5G| OC1|OC3| OC12|OC48|OC48_FEC|PCIEXPRESS|RATE32Mbit| RATE97Mbit|RIO_500M|RIO_750M| RIO_1G|RIO_2G|RIO_1_5G|RIO_SERIAL_1G| RIO_SERIAL_2G|RIO_SERIAL_3G|SAS1_5|SAS3_?| SFI5_2|SFI5_3|STM0_CMI|STM0_HDBX|STM1E|STS1| STS3| TFI5_2|TFI5_3|VIDEO270|VIDEO292M|VIDEO360|VSROC192} + - TRIGger:A:COMMunication:STANdard? + - TRIGger:A:EDGE:COUPling {AC|DC|HFRej|LFRej|NOISErej|ATRIGger} + - TRIGger:A:EDGE:COUPling:CH {AC|DC|HFRej|LFRej|NOISErej} + - TRIGger:A:EDGE:COUPling:CH? + - TRIGger:A:EDGE:COUPling? + - TRIGger:A:EDGE:SLOpe {RISe|FALL|EITher} + - TRIGger:A:EDGE:SLOpe? + - TRIGger:A:EDGE:SOUrce {AUXiliary|CH|MCH|LINE|D} + - TRIGger:A:EDGE:SOUrce? + - TRIGger:A:EDGE? + - TRIGger:A:HOLDoff:ACTUal? + - TRIGger:A:HOLDoff:BY {TIMe|DEFAult|RANDom|AUTO} + - TRIGger:A:HOLDoff:BY? + - TRIGger:A:HOLDoff:TIMe + - TRIGger:A:HOLDoff:TIMe? + - TRIGger:A:HOLDoff? + - TRIGger:A:I2C:ADDRess:RWINClude {OFF|ON} + - TRIGger:A:I2C:ADDRess:RWINClude? + - TRIGger:A:LEVel {ECL|TTL|} + - TRIGger:A:LEVel:CH {ECL|TTL|} + - TRIGger:A:LEVel:CH? + - TRIGger:A:LEVel? + - TRIGger:A:LOGIc:CLAss {PATtern|STATE|SETHold} + - TRIGger:A:LOGIc:CLAss? + - TRIGger:A:LOGIc:FUNCtion {AND|NANd|NOR|OR} + - TRIGger:A:LOGIc:FUNCtion? + - TRIGger:A:LOGIc:INPut:ALL + - TRIGger:A:LOGIc:INPut:ALL? + - TRIGger:A:LOGIc:INPut:CH {HIGH|LOW|X} + - TRIGger:A:LOGIc:INPut:CH? + - TRIGger:A:LOGIc:INPut:FORMat {HEXadecimal|BINary} + - TRIGger:A:LOGIc:INPut:FORMat? + - TRIGger:A:LOGIc:INPut? + - TRIGger:A:LOGIc:PATtern:INPut:CH {HIGH|LOW|X} + - TRIGger:A:LOGIc:PATtern:INPut:CH? + - TRIGger:A:LOGIc:PATtern:WHEn {TRUe|FALSe|LESSThan|MOREThan} + - TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit + - TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit? + - TRIGger:A:LOGIc:PATtern:WHEn:MORELimit + - TRIGger:A:LOGIc:PATtern:WHEn:MORELimit? + - TRIGger:A:LOGIc:PATtern:WHEn? + - TRIGger:A:LOGIc:PATtern? + - TRIGger:A:LOGIc:SETHold:CLOCk:EDGE {FALL|RISe} + - TRIGger:A:LOGIc:SETHold:CLOCk:EDGE? + - TRIGger:A:LOGIc:SETHold:CLOCk:LEVel {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:LEVel? + - TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce CH + - TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce? + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH? + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold? + - TRIGger:A:LOGIc:SETHold:CLOCk? + - TRIGger:A:LOGIc:SETHold:DATa:LEVel {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:LEVel? + - TRIGger:A:LOGIc:SETHold:DATa:SOUrce CH + - TRIGger:A:LOGIc:SETHold:DATa:SOUrce? + - TRIGger:A:LOGIc:SETHold:DATa:THReshold {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH? + - TRIGger:A:LOGIc:SETHold:DATa:THReshold? + - TRIGger:A:LOGIc:SETHold:DATa? + - TRIGger:A:LOGIc:SETHold:HOLDTime + - TRIGger:A:LOGIc:SETHold:HOLDTime? + - TRIGger:A:LOGIc:SETHold:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:LOGIc:SETHold:QUAlify? + - TRIGger:A:LOGIc:SETHold:SETTime + - TRIGger:A:LOGIc:SETHold:SETTime? + - TRIGger:A:LOGIc:SETHold? + - TRIGger:A:LOGIc:STATE:INPut:CH {FALL|RISe} + - TRIGger:A:LOGIc:STATE:INPut:CH? + - TRIGger:A:LOGIc:STATE:WHEn {TRUe|FALSe} + - TRIGger:A:LOGIc:STATE:WHEn? + - TRIGger:A:LOGIc:STATE? + - TRIGger:A:LOGIc:THReshold:CH + - TRIGger:A:LOGIc:THReshold:CH? + - TRIGger:A:LOGIc:THReshold? + - TRIGger:A:LOGIc? + - TRIGger:A:LOWerthreshold:CH {ECL|TTL|} + - TRIGger:A:LOWerthreshold:CH? + - TRIGger:A:MODe {AUTO|NORMal} + - TRIGger:A:MODe? + - TRIGger:A:PLOCK:COUNT + - TRIGger:A:PLOCK:COUNT? + - TRIGger:A:PLOCK:LENGTH + - TRIGger:A:PLOCK:LENGTH? + - TRIGger:A:PLOCK:SOURCE CH + - TRIGger:A:PLOCK:SOURCE? + - TRIGger:A:PULse:CLAss {GLItch|RUNT|WIDth| TRANsition|TIMEOut|WINdow} + - TRIGger:A:PULse:CLAss? + - TRIGger:A:PULse:GLItch:FILTer {ACCept|REJect} + - TRIGger:A:PULse:GLItch:FILTer? + - TRIGger:A:PULse:GLItch:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:GLItch:LOWPASSfilter? + - TRIGger:A:PULse:GLItch:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:GLItch:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:GLItch:POLarity:CH? + - TRIGger:A:PULse:GLItch:POLarity? + - TRIGger:A:PULse:GLItch:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:GLItch:QUAlify? + - TRIGger:A:PULse:GLItch:TRIGIF {ACCept|REJect} + - TRIGger:A:PULse:GLItch:TRIGIF? + - TRIGger:A:PULse:GLItch:WIDth + - TRIGger:A:PULse:GLItch:WIDth? + - TRIGger:A:PULse:GLItch? + - TRIGger:A:PULse:PERiod:HIGHLimit + - TRIGger:A:PULse:PERiod:HIGHLimit? + - TRIGger:A:PULse:PERiod:LOWLimit + - TRIGger:A:PULse:PERiod:LOWLimit? + - TRIGger:A:PULse:PERiod:POLarity {NEGAtive|POSITIVe} + - TRIGger:A:PULse:PERiod:POLarity? + - TRIGger:A:PULse:PERiod:QUAlify {OCCurs | LOGIC | BUS} + - TRIGger:A:PULse:PERiod:QUAlify? + - TRIGger:A:PULse:PERiod:VIEW {PERiod|FREQuency} + - TRIGger:A:PULse:PERiod:VIEW? + - TRIGger:A:PULse:PERiod:WHEn {LESSthan | GREATerthan | WITHin | OUTside} + - TRIGger:A:PULse:PERiod:WHEn? + - TRIGger:A:PULse:PERiod? + - TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH {HIGH|LOW|X} + - TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH? + - TRIGger:A:PULse:RUNT:LOGIc:INPUT? TRIGger:A:PULse:RUNT:LOGIcINPUT? + - TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH + - TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH? + - TRIGger:A:PULse:RUNT:LOGIc? + - TRIGger:A:PULse:RUNT:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:RUNT:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:RUNT:POLarity:CH? + - TRIGger:A:PULse:RUNT:POLarity? + - TRIGger:A:PULse:RUNT:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:RUNT:QUAlify? + - TRIGger:A:PULse:RUNT:THReshold:BOTh {TTL|ECL} + - TRIGger:A:PULse:RUNT:THReshold:HIGH + - TRIGger:A:PULse:RUNT:THReshold:HIGH? + - TRIGger:A:PULse:RUNT:THReshold:LOW + - TRIGger:A:PULse:RUNT:THReshold:LOW? + - TRIGger:A:PULse:RUNT:THReshold? + - TRIGger:A:PULse:RUNT:WHEn {OCCurs|WIDERthan} + - TRIGger:A:PULse:RUNT:WHEn? + - TRIGger:A:PULse:RUNT:WIDth + - TRIGger:A:PULse:RUNT:WIDth? + - TRIGger:A:PULse:SOUrce {CH|D|MCH} + - TRIGger:A:PULse:SOUrce? + - TRIGger:A:PULse:TIMEOut:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:TIMEOut:LOWPASSfilter? + - TRIGger:A:PULse:TIMEOut:POLarity {STAYSHigh|STAYSLow|EITher} + - TRIGger:A:PULse:TIMEOut:POLarity:CH {STAYSHigh|STAYSLow|EITher} + - TRIGger:A:PULse:TIMEOut:POLarity:CH? + - TRIGger:A:PULse:TIMEOut:POLarity? + - TRIGger:A:PULse:TIMEOut:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:TIMEOut:QUAlify? + - TRIGger:A:PULse:TIMEOut:TIMe + - TRIGger:A:PULse:TIMEOut:TIMe? + - TRIGger:A:PULse:TIMEOut? + - TRIGger:A:PULse:TRANsition:DELTATime + - TRIGger:A:PULse:TRANsition:DELTATime? + - TRIGger:A:PULse:TRANsition:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:TRANsition:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:TRANsition:POLarity:CH? + - TRIGger:A:PULse:TRANsition:POLarity? + - TRIGger:A:PULse:TRANsition:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:TRANsition:QUAlify? + - TRIGger:A:PULse:TRANsition:THReshold:BOTh {TTL|ECL} + - TRIGger:A:PULse:TRANsition:THReshold:HIGH + - TRIGger:A:PULse:TRANsition:THReshold:HIGH? + - TRIGger:A:PULse:TRANsition:THReshold:LOW + - TRIGger:A:PULse:TRANsition:THReshold:LOW? + - TRIGger:A:PULse:TRANsition:THReshold? + - TRIGger:A:PULse:TRANsition:WHEn {FASTERthan|SLOWERthan} + - TRIGger:A:PULse:TRANsition:WHEn? + - TRIGger:A:PULse:TRANsition? + - TRIGger:A:PULse:WIDth:HIGHLimit + - TRIGger:A:PULse:WIDth:HIGHLimit? + - TRIGger:A:PULse:WIDth:LOWLimit + - TRIGger:A:PULse:WIDth:LOWLimit? + - TRIGger:A:PULse:WIDth:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:WIDth:LOWPASSfilter? + - TRIGger:A:PULse:WIDth:POLarity {NEGAtive|POSITIVe} + - TRIGger:A:PULse:WIDth:POLarity:CH {NEGAtive|POSITIVe} + - TRIGger:A:PULse:WIDth:POLarity:CH? + - TRIGger:A:PULse:WIDth:POLarity? + - TRIGger:A:PULse:WIDth:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:WIDth:QUAlify? + - TRIGger:A:PULse:WIDth:WHEn {OUTside|WIThin} + - TRIGger:A:PULse:WIDth:WHEn? + - TRIGger:A:PULse:WIDth? + - TRIGger:A:PULse:WINdow:EVENT {OUTSIDEGreater|INSIDEGreater|ENTERSWindow|EXITSWindow} + - TRIGger:A:PULse:WINdow:EVENT? + - TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH {HIGH\LOW\X} + - TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH? + - TRIGger:A:PULse:WINdow:LOGIc:INPUT? TRIGger:A:PULse:WINdow:LOGIcINPUT? + - TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH + - TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH? + - TRIGger:A:PULse:WINdow:LOGIc? + - TRIGger:A:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:WINdow:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:WINdow:POLarity:CH? + - TRIGger:A:PULse:WINdow:POLarity? + - TRIGger:A:PULse:WINdow:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:WINdow:QUAlify? + - TRIGger:A:PULse:WINdow:THReshold:BOTh {TTL|ECL} + - TRIGger:A:PULse:WINdow:THReshold:HIGH + - TRIGger:A:PULse:WINdow:THReshold:HIGH? + - TRIGger:A:PULse:WINdow:THReshold:LOW + - TRIGger:A:PULse:WINdow:THReshold:LOW? + - TRIGger:A:PULse:WINdow:THReshold? + - TRIGger:A:PULse:WINdow:TYPe {INSide|OUTside} + - TRIGger:A:PULse:WINdow:TYPe? + - TRIGger:A:PULse:WINdow:WHEn {LOGIc|OCCurs|WIDERthan} + - TRIGger:A:PULse:WINdow:WHEn? + - TRIGger:A:PULse:WINdow:WIDTH + - TRIGger:A:PULse:WINdow:WIDTH? + - TRIGger:A:READY? + - TRIGger:A:SERIAL:BITRate + - TRIGger:A:SERIAL:BITRate? + - TRIGger:A:SERIAL:CLOCk:LEVel + - TRIGger:A:SERIAL:CLOCk:LEVel? + - TRIGger:A:SERIAL:CLOCk:POLarity {RISe|FALL} + - TRIGger:A:SERIAL:CLOCk:POLarity? + - TRIGger:A:SERIAL:CLOCk:SOUrce {CH|RECOVered} + - TRIGger:A:SERIAL:CLOCk:SOUrce? + - TRIGger:A:SERIAL:CODe {NRZ|S8B10B} + - TRIGger:A:SERIAL:CODe? + - TRIGger:A:SERIAL:DATa:FORMat {BINary|HEX} + - TRIGger:A:SERIAL:DATa:FORMat? + - TRIGger:A:SERIAL:DATa:PATtern + - TRIGger:A:SERIAL:DATa:PATtern:NRZ + - TRIGger:A:SERIAL:DATa:PATtern:NRZ? + - TRIGger:A:SERIAL:DATa:PATtern:S8B10B + - TRIGger:A:SERIAL:DATa:PATtern:S8B10B? + - TRIGger:A:SERIAL:DATa:PATtern? + - TRIGger:A:SERIAL:ERRORdetector:FILE:NAME + - TRIGger:A:SERIAL:LOCKLen + - TRIGger:A:SERIAL:LOCKLen? + - TRIGger:A:SERIAL:LOCKOffset + - TRIGger:A:SERIAL:LOCKOffset? + - TRIGger:A:SERIAL:SOUrce {CH} + - TRIGger:A:SERIAL:SOUrce? + - TRIGger:A:SERIAL:STANdard {FC133|FC266|FC531|FC1063|D|VIDEO270|VIDEO360|OC1|OC3| OC12|ENET1250|FW1394BS400B|FW1394BS800B|CUSTom|ENET100FX| RIO_500M|RIO_750M|RIO_1G|RIO_SERIAL_1G|VSROC192|ENETXAUI| SAS3_?|PCIExpress|INFINIBAND|RIO_SERIAL_2G|RIO_SERIAL_3G| FC2125|RIO_2G|FW1394BS1600B|SAS1_5|ENETXAUI|ENETXAUI2| FC2125|FC4250|FW1394BS1600B|INFINIBAND|PCIExpress|PCIExpress2| RIO_2G|RIO_500M|RIO_750M|RIO_SERIAL_1G|RIO_SERIAL_2_5G| RIO_SERIAL_3G|SAS6_0|SATA1_5|SATA3_0|SATA6_0} + - TRIGger:A:SERIAL:STANdard? + - TRIGger:A:SERIAL:TRIGgeron {PATtern|LOck} + - TRIGger:A:SERIAL:TRIGgeron? + - TRIGger:A:SPI:CONDition {MISO|MOSI|MISOMOSI} + - TRIGger:A:SPI:CONDition? + - TRIGger:A:SPI:DATa:FORMat {BINary|HEX} + - TRIGger:A:SPI:DATa:FORMat? + - TRIGger:A:SPI:DATa:MISO:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:DATa:MISO:ACTIVE? + - TRIGger:A:SPI:DATa:MISO:LEVel + - TRIGger:A:SPI:DATa:MISO:LEVel? + - TRIGger:A:SPI:DATa:MISO:SOUrce CH + - TRIGger:A:SPI:DATa:MISO:SOUrce? + - TRIGger:A:SPI:DATa:MISO:VALue + - TRIGger:A:SPI:DATa:MISO:VALue? + - TRIGger:A:SPI:DATa:MOSI:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:DATa:MOSI:ACTIVE? + - TRIGger:A:SPI:DATa:MOSI:LEVel + - TRIGger:A:SPI:DATa:MOSI:LEVel? + - TRIGger:A:SPI:DATa:MOSI:SOUrce CH + - TRIGger:A:SPI:DATa:MOSI:SOUrce? + - TRIGger:A:SPI:DATa:MOSI:VALue + - TRIGger:A:SPI:DATa:MOSI:VALue? + - TRIGger:A:SPI:DATa:STARt + - TRIGger:A:SPI:DATa:STARt? + - TRIGger:A:SPI:FORMat {BINary|HEX} + - TRIGger:A:SPI:FORMat? + - TRIGger:A:SPI:SCLK:ACTIVE {RISe|FALL} + - TRIGger:A:SPI:SCLK:ACTIVE? + - TRIGger:A:SPI:SCLK:LEVel + - TRIGger:A:SPI:SCLK:LEVel? + - TRIGger:A:SPI:SCLK:SOUrce CH + - TRIGger:A:SPI:SCLK:SOUrce? + - TRIGger:A:SPI:SS:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:SS:ACTIVE? + - TRIGger:A:SPI:SS:LEVel + - TRIGger:A:SPI:SS:LEVel? + - TRIGger:A:SPI:SS:SOUrce CH + - TRIGger:A:SPI:SS:SOUrce? + - TRIGger:A:TYPe {EDGE|LOGIc|PULse|VIDeo| I2C|CAN|SPI|COMMunication|SERIAL|RS232}} + - TRIGger:A:TYPe? + - TRIGger:A:UPPerthreshold:CH {ECL|TTL|} + - TRIGger:A:UPPerthreshold:CH? + - TRIGger:A:VIDeo:CUSTom:FORMat {INTERLAced|PROGressive} + - TRIGger:A:VIDeo:CUSTom:FORMat? + - TRIGger:A:VIDeo:CUSTom:LINEPeriod + - TRIGger:A:VIDeo:CUSTom:LINEPeriod? + - TRIGger:A:VIDeo:CUSTom:SYNCInterval + - TRIGger:A:VIDeo:CUSTom:SYNCInterval? + - TRIGger:A:VIDeo:CUSTom? + - TRIGger:A:VIDeo:FIELD {ODD|EVEN|FIELD|ALLFields|ALLLines|NUMERic} + - TRIGger:A:VIDeo:FIELD? + - TRIGger:A:VIDeo:HOLdoff:FIELD + - TRIGger:A:VIDeo:HOLdoff:FIELD? + - TRIGger:A:VIDeo:LINE + - TRIGger:A:VIDeo:LINE? + - TRIGger:A:VIDeo:POLarity {INVERTed|NORMal} + - TRIGger:A:VIDeo:POLarity? + - TRIGger:A:VIDeo:SCAN {RATE} + - TRIGger:A:VIDeo:SCAN? + - TRIGger:A:VIDeo:SOUrce CH + - TRIGger:A:VIDeo:SOUrce? + - TRIGger:A:VIDeo:STANdard {BILevelcustom|TRILevelcustom|NTSc|PAL| SECAM|HD480P60|HD576P50|HD875I60|HD720P30|HD720P50| HD720P60|HD1080I50|HD1080I60|HD1080P24| HD1080P25|HD1080P30|HD1080P50|HD1080P60| HD1080SF24} + - TRIGger:A:VIDeo:STANdard? + - TRIGger:A:VIDeo? + - TRIGger:A? + - TRIGger:AUXLevel {|ECL|TTL} + - TRIGger:AUXLevel? + - TRIGger:B SETLevel + - TRIGger:B:BY {EVENTS|TIMe|ARMAtrigb} + - TRIGger:B:BY? + - TRIGger:B:EDGE:COUPling {AC|DC|HFRej|LFRej|NOISErej|ATRIGger} + - TRIGger:B:EDGE:COUPling:CH {AC|DC|HFRej|LFRej|NOISErej} + - TRIGger:B:EDGE:COUPling:CH? + - TRIGger:B:EDGE:COUPling? + - TRIGger:B:EDGE:SLOpe {RISe|FALL|EITher} + - TRIGger:B:EDGE:SLOpe? + - TRIGger:B:EDGE:SOUrce {AUXiliary|CH|MCH|LINE|D} + - TRIGger:B:EDGE:SOUrce? + - TRIGger:B:EDGE? + - TRIGger:B:EVENTS:COUNt + - TRIGger:B:EVENTS:COUNt? + - TRIGger:B:EVENTS? + - TRIGger:B:LEVel {ECL|TTL|} + - TRIGger:B:LEVel:CH {ECL|TTL|} + - TRIGger:B:LEVel:CH? + - TRIGger:B:LEVel? + - TRIGger:B:LOGIc:CLAss {PATtern|STATE|SETHold} + - TRIGger:B:LOGIc:CLAss? + - TRIGger:B:LOGIc:FUNCtion {AND|NANd|NOR|OR} + - TRIGger:B:LOGIc:FUNCtion? + - TRIGger:B:LOGIc:INPut:ALL + - TRIGger:B:LOGIc:INPut:ALL? + - TRIGger:B:LOGIc:INPut:CH {HIGH|LOW|X} + - TRIGger:B:LOGIc:INPut:CH? + - TRIGger:B:LOGIc:INPut:FORMat {HEXadecimal|BINary} + - TRIGger:B:LOGIc:INPut:FORMat? + - TRIGger:B:LOGIc:INPut? + - TRIGger:B:LOGIc:PATtern:INPut:CH {HIGH|LOW|X} + - TRIGger:B:LOGIc:PATtern:INPut:CH? + - TRIGger:B:LOGIc:PATtern:WHEn {TRUe|FALSe|LESSThan|MOREThan} + - TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit + - TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit? + - TRIGger:B:LOGIc:PATtern:WHEn:MORELimit + - TRIGger:B:LOGIc:PATtern:WHEn:MORELimit? + - TRIGger:B:LOGIc:PATtern:WHEn? + - TRIGger:B:LOGIc:PATtern? + - TRIGger:B:LOGIc:SETHold:CLOCk:EDGE {FALL|RISe} + - TRIGger:B:LOGIc:SETHold:CLOCk:EDGE? + - TRIGger:B:LOGIc:SETHold:CLOCk:LEVel {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:LEVel? + - TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce CH + - TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce? + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH? + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold? + - TRIGger:B:LOGIc:SETHold:CLOCk? + - TRIGger:B:LOGIc:SETHold:DATa:LEVel {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:LEVel? + - TRIGger:B:LOGIc:SETHold:DATa:SOUrce CH + - TRIGger:B:LOGIc:SETHold:DATa:SOUrce? + - TRIGger:B:LOGIc:SETHold:DATa:THReshold {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH? + - TRIGger:B:LOGIc:SETHold:DATa:THReshold? + - TRIGger:B:LOGIc:SETHold:DATa? + - TRIGger:B:LOGIc:SETHold:HOLDTime + - TRIGger:B:LOGIc:SETHold:HOLDTime? + - TRIGger:B:LOGIc:SETHold:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:LOGIc:SETHold:QUAlify? + - TRIGger:B:LOGIc:SETHold:SETTime + - TRIGger:B:LOGIc:SETHold:SETTime? + - TRIGger:B:LOGIc:SETHold? + - TRIGger:B:LOGIc:STATE:INPut:CH {FALL|RISe} + - TRIGger:B:LOGIc:STATE:INPut:CH? + - TRIGger:B:LOGIc:STATE:WHEn {TRUe|FALSe} + - TRIGger:B:LOGIc:STATE:WHEn? + - TRIGger:B:LOGIc:STATE? + - TRIGger:B:LOGIc:THReshold:CH + - TRIGger:B:LOGIc:THReshold:CH? + - TRIGger:B:LOGIc:THReshold? + - TRIGger:B:LOGIc? + - TRIGger:B:LOWerthreshold:CH {ECL|TTL|} + - TRIGger:B:LOWerthreshold:CH? + - TRIGger:B:PULse:CLAss {GLItch|RUNT|WIDth| TRANsition|TIMEOut|WINdow} + - TRIGger:B:PULse:CLAss? + - TRIGger:B:PULse:GLItch:FILTer {ACCept|REJect} + - TRIGger:B:PULse:GLItch:FILTer? + - TRIGger:B:PULse:GLItch:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:GLItch:LOWPASSfilter? + - TRIGger:B:PULse:GLItch:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:GLItch:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:GLItch:POLarity:CH? + - TRIGger:B:PULse:GLItch:POLarity? + - TRIGger:B:PULse:GLItch:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:GLItch:QUAlify? + - TRIGger:B:PULse:GLItch:TRIGIF {ACCept|REJect} + - TRIGger:B:PULse:GLItch:TRIGIF? + - TRIGger:B:PULse:GLItch:WIDth + - TRIGger:B:PULse:GLItch:WIDth? + - TRIGger:B:PULse:GLItch? + - TRIGger:B:PULse:PERiod:HIGHLimit + - TRIGger:B:PULse:PERiod:HIGHLimit? + - TRIGger:B:PULse:PERiod:LOWLimit + - TRIGger:B:PULse:PERiod:LOWLimit? + - TRIGger:B:PULse:PERiod:POLarity {NEGAtive|POSITIVe} + - TRIGger:B:PULse:PERiod:POLarity? + - TRIGger:B:PULse:PERiod:QUAlify {OCCurs | LOGIC | BUS} + - TRIGger:B:PULse:PERiod:QUAlify? + - TRIGger:B:PULse:PERiod:VIEW {PERiod|FREQuency} + - TRIGger:B:PULse:PERiod:VIEW? + - TRIGger:B:PULse:PERiod:WHEn {LESSthan | GREATerthan | WITHin | OUTside} + - TRIGger:B:PULse:PERiod:WHEn? + - TRIGger:B:PULse:PERiod? + - TRIGger:B:PULse:RUNT:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:RUNT:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:RUNT:POLarity:CH? + - TRIGger:B:PULse:RUNT:POLarity? + - TRIGger:B:PULse:RUNT:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:RUNT:QUAlify? + - TRIGger:B:PULse:RUNT:THReshold:BOTh {TTL|ECL} + - TRIGger:B:PULse:RUNT:THReshold:HIGH + - TRIGger:B:PULse:RUNT:THReshold:HIGH? + - TRIGger:B:PULse:RUNT:THReshold:LOW + - TRIGger:B:PULse:RUNT:THReshold:LOW? + - TRIGger:B:PULse:RUNT:THReshold? + - TRIGger:B:PULse:RUNT:WHEn {OCCurs|WIDERthan} + - TRIGger:B:PULse:RUNT:WHEn? + - TRIGger:B:PULse:RUNT:WIDth + - TRIGger:B:PULse:RUNT:WIDth? + - TRIGger:B:PULse:RUNT? + - TRIGger:B:PULse:SOUrce {CH|D|MCH} + - TRIGger:B:PULse:SOUrce? + - TRIGger:B:PULse:TIMEOut:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:TIMEOut:LOWPASSfilter? + - TRIGger:B:PULse:TIMEOut:POLarity {STAYSHigh|STAYSLow|EITher} + - TRIGger:B:PULse:TIMEOut:POLarity:CH {STAYSHigh|STAYSLow|EITher} + - TRIGger:B:PULse:TIMEOut:POLarity:CH? + - TRIGger:B:PULse:TIMEOut:POLarity? + - TRIGger:B:PULse:TIMEOut:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:TIMEOut:QUAlify? + - TRIGger:B:PULse:TIMEOut:TIMe + - TRIGger:B:PULse:TIMEOut:TIMe? + - TRIGger:B:PULse:TIMEOut? + - TRIGger:B:PULse:TRANsition:DELTATime + - TRIGger:B:PULse:TRANsition:DELTATime? + - TRIGger:B:PULse:TRANsition:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:TRANsition:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:TRANsition:POLarity:CH? + - TRIGger:B:PULse:TRANsition:POLarity? + - TRIGger:B:PULse:TRANsition:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:TRANsition:QUAlify? + - TRIGger:B:PULse:TRANsition:THReshold:BOTh {TTL|ECL} + - TRIGger:B:PULse:TRANsition:THReshold:HIGH + - TRIGger:B:PULse:TRANsition:THReshold:HIGH? + - TRIGger:B:PULse:TRANsition:THReshold:LOW + - TRIGger:B:PULse:TRANsition:THReshold:LOW? + - TRIGger:B:PULse:TRANsition:THReshold? + - TRIGger:B:PULse:TRANsition:WHEn {FASTERthan|SLOWERthan} + - TRIGger:B:PULse:TRANsition:WHEn? + - TRIGger:B:PULse:TRANsition? + - TRIGger:B:PULse:WIDth:HIGHLimit + - TRIGger:B:PULse:WIDth:HIGHLimit? + - TRIGger:B:PULse:WIDth:LOWLimit + - TRIGger:B:PULse:WIDth:LOWLimit? + - TRIGger:B:PULse:WIDth:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:WIDth:LOWPASSfilter? + - TRIGger:B:PULse:WIDth:POLarity {NEGAtive|POSITIVe} + - TRIGger:B:PULse:WIDth:POLarity:CH {NEGAtive|POSITIVe} + - TRIGger:B:PULse:WIDth:POLarity:CH? + - TRIGger:B:PULse:WIDth:POLarity? + - TRIGger:B:PULse:WIDth:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:WIDth:QUAlify? + - TRIGger:B:PULse:WIDth:WHEn {OUTside|WIThin} + - TRIGger:B:PULse:WIDth:WHEn? + - TRIGger:B:PULse:WIDth? + - TRIGger:B:PULse:WINdow:EVENT {OUTSIDEGreater|INSIDEGreater|ENTERSWindow|EXITSWindow} + - TRIGger:B:PULse:WINdow:EVENT? + - TRIGger:B:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:WINdow:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:WINdow:POLarity:CH? + - TRIGger:B:PULse:WINdow:POLarity? + - TRIGger:B:PULse:WINdow:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:WINdow:QUAlify? + - TRIGger:B:PULse:WINdow:THReshold:BOTh {TTL|ECL} + - TRIGger:B:PULse:WINdow:THReshold:HIGH + - TRIGger:B:PULse:WINdow:THReshold:HIGH? + - TRIGger:B:PULse:WINdow:THReshold:LOW + - TRIGger:B:PULse:WINdow:THReshold:LOW? + - TRIGger:B:PULse:WINdow:THReshold? + - TRIGger:B:PULse:WINdow:TYPe {INSide|OUTside} + - TRIGger:B:PULse:WINdow:TYPe? + - TRIGger:B:PULse:WINdow:WHEn {OCCurs|WIDERthan} + - TRIGger:B:PULse:WINdow:WHEn? + - TRIGger:B:PULse:WINdow:WIDTH + - TRIGger:B:PULse:WINdow:WIDTH? + - TRIGger:B:READY? + - TRIGger:B:RESET:ACCEPTCOUNT? + - TRIGger:B:RESET:ACCEPTTIMEout + - TRIGger:B:RESET:ACCEPTTIMEout? + - TRIGger:B:RESET:RATIO? + - TRIGger:B:RESET:RATIOENable + - TRIGger:B:RESET:RATIOENable? + - TRIGger:B:RESET:REJECTCOUNT? + - TRIGger:B:RESET:REJECTTIMEout + - TRIGger:B:RESET:REJECTTIMEout? + - TRIGger:B:RESET:SOUrce {CH|AUXiliary} + - TRIGger:B:RESET:SOUrce? + - TRIGger:B:RESET:STATE {HIGH|LOW} + - TRIGger:B:RESET:STATE? + - TRIGger:B:RESET:THReshold {ECL|TTL|} + - TRIGger:B:RESET:THReshold? + - TRIGger:B:RESET:TIMEOut + - TRIGger:B:RESET:TIMEOut? + - TRIGger:B:RESET:TOTALCOUNT? + - TRIGger:B:RESET:TRANsition {RISe|FALL} + - TRIGger:B:RESET:TRANsition? + - TRIGger:B:RESET:TYPe {NONe|TIMEOut|STATE|TRANsition|ACCepts|REJects} + - TRIGger:B:RESET:TYPe? + - TRIGger:B:SCAN:ADVANCEafter + - TRIGger:B:SCAN:ADVANCEafter? + - TRIGger:B:SCAN:ENAble {ON|OFF} + - TRIGger:B:SCAN:ENAble? + - TRIGger:B:SCAN:ENDevent + - TRIGger:B:SCAN:ENDevent? + - TRIGger:B:SCAN:MODE {SEQUENTIAL|RANDOM|TOGGLE} + - TRIGger:B:SCAN:MODE? + - TRIGger:B:SCAN:STARTevent + - TRIGger:B:SCAN:STARTevent? + - TRIGger:B:STATE {ON|OFF|} + - TRIGger:B:STATE? + - TRIGger:B:TIMe + - TRIGger:B:TIMe? + - TRIGger:B:TYPe {EDGE|LOGIc|PULse|VIDeo| I2C|CAN|SPI|COMMunication|SERIAL|RS232}} + - TRIGger:B:TYPe? + - TRIGger:B:UPPerthreshold:CH {ECL|TTL|} + - TRIGger:B:UPPerthreshold:CH? + - TRIGger:ENHanced {|OFF|ON} + - TRIGger:ENHanced? + - TRIGger:EQUation + - TRIGger:EQUation? + - TRIGger:LVLSrcpreference {SRCDependent|SRCIndependent} + - TRIGger:LVLSrcpreference? + - TRIGger:MAIn:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:MAIn:PULse:WINdow:POLarity? + - TRIGger:MULTiscope {DISable|ENable} + - TRIGger:MULTiscope:ALIGN + - TRIGger:MULTiscope:ALIGN:COMPleted? + - TRIGger:MULTiscope:ALIGN:DESKEW? + - TRIGger:MULTiscope:ALIGN:MRTTime + - TRIGger:MULTiscope:ALIGN:MRTTime? + - TRIGger:MULTiscope:ALIGN:SETSTATE {START|STOP|WAIT|DONE} + - TRIGger:MULTiscope:ALIGN:SETSTATE? + - TRIGger:MULTiscope:ALIGN:VALue? + - TRIGger:MULTiscope:DELay? + - TRIGger:MULTiscope:LOGic {AND|OR} + - TRIGger:MULTiscope:LOGic? + - TRIGger:MULTiscope:OPTion {AND|OR} + - TRIGger:MULTiscope:OPTion? + - TRIGger:MULTiscope:ROLe {PRODucer|CONSumer|NONe} + - TRIGger:MULTiscope:ROLe? + - TRIGger:MULTiscope? + - TRIGger:QUALification:BUS:FORMat {BINary|HEX|SYMBolic} + - TRIGger:QUALification:BUS:FORMat? + - TRIGger:QUALification:BUS:SOUrce {B} + - TRIGger:QUALification:BUS:SOUrce? + - TRIGger:QUALification:BUS:VALue + - TRIGger:QUALification:BUS:VALue? + - TRIGger:SENSITivity {|OFF|ON} + - TRIGger:SENSITivity? + - TRIGger:SHOWEQuation {ON|OFF} + - TRIGger:SHOWEQuation? + - TRIGger:STATE? + - TRIGger? +""" # noqa: E501 +from typing import Dict, Optional, TYPE_CHECKING + +from .._helpers import ( + DefaultDictPassKeyToFactory, + SCPICmdRead, + SCPICmdReadWithArguments, + SCPICmdWrite, + SCPICmdWriteNoArguments, + ValidatedChannel, + ValidatedDynamicNumberCmd, +) + +if TYPE_CHECKING: + from tm_devices.drivers.pi.pi_device import PIDevice + + +class TriggerState(SCPICmdRead): + """The ``TRIGger:STATE`` command. + + **Description:** + - This query-only command returns the current state of the triggering system. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:STATE?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:STATE? + """ + + +class TriggerShowequation(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:SHOWEQuation`` command. + + **Description:** + - Causes the Visual Trigger Equation to be displayed in the upper left portion of the + oscilloscope graticule. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:SHOWEQuation?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:SHOWEQuation?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:SHOWEQuation value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:SHOWEQuation {ON|OFF} + - TRIGger:SHOWEQuation? + + **Info:** + - ``ON`` causes the equation to appear on screen. + - ``Off`` hides the equation. + """ + + +class TriggerSensitivity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:SENSITivity`` command. + + **Description:** + - This command set or queries the state of trigger sensitivity. When on, the instrument + calculates a rolling average for trigger position enhancement to suppress trigger jitter + in noisy signals. This is equivalent to selecting Higher Sensitivity for Noisy Signals + from the Trigger Mode menu. This is available only when ``TRIGGER:ENHANCED`` or the + equivalent check box control is also on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:SENSITivity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:SENSITivity?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:SENSITivity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:SENSITivity {|OFF|ON} + - TRIGger:SENSITivity? + + **Info:** + - ```` = 0 disables rolling averaging, any other value enables rolling averaging for + trigger position enhancement. + - ``OFF`` disables rolling averaging for trigger position enhancement. + - ``ON`` enables rolling averaging for trigger position enhancement. + """ + + +class TriggerQualificationBusValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:QUALification:BUS:VALue`` command. + + **Description:** + - This command sets or queries the bit pattern for the bus qualification. The command is + available only when the Trigger Type is set to Glitch, Runt, Setup/Hold, Timeout, + Transition, Width, or Window and the trigger qualification is set to Occurs And. The + pattern assigned is in the order D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Ch1 + Ch2 Ch3 Ch4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification:BUS:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:QUALification:BUS:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:QUALification:BUS:VALue + - TRIGger:QUALification:BUS:VALue? + + **Info:** + - ```` sets the bus value. + """ + + +class TriggerQualificationBusSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:QUALification:BUS:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the bus qualification. The command is + available only when the Trigger Type is set to Glitch, Runt, Setup/Hold, Timeout, + Transition, Width, or Window and the trigger qualification is set to Occurs And. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification:BUS:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:QUALification:BUS:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:QUALification:BUS:SOUrce {B} + - TRIGger:QUALification:BUS:SOUrce? + + **Info:** + - ``B`` specifies the bus source from B0 to B16. x has a minimum of 0 and a maximum of + 16. + """ + + +class TriggerQualificationBusFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:QUALification:BUS:FORMat`` command. + + **Description:** + - This command sets or queries the format of the bit pattern for the bus qualification. The + command is available only when the Trigger Type is set to Glitch, Runt, Setup/Hold, + Timeout, Transition, Width, or Window and the trigger qualification is set to Occurs And. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification:BUS:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:QUALification:BUS:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:QUALification:BUS:FORMat {BINary|HEX|SYMBolic} + - TRIGger:QUALification:BUS:FORMat? + + **Info:** + - ``BINary`` specifies the pattern format as binary. + - ``HEX`` specifies the pattern format as hexadecimal. + - ``SYMBolic`` specifies the pattern format as symbolic. + """ + + +class TriggerQualificationBus(SCPICmdRead): + """The ``TRIGger:QUALification:BUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification:BUS?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:QUALification:BUS:FORMat`` command. + - ``.source``: The ``TRIGger:QUALification:BUS:SOUrce`` command. + - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerQualificationBusFormat(device, f"{self._cmd_syntax}:FORMat") + self._source = TriggerQualificationBusSource(device, f"{self._cmd_syntax}:SOUrce") + self._value = TriggerQualificationBusValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerQualificationBusFormat: + """Return the ``TRIGger:QUALification:BUS:FORMat`` command. + + **Description:** + - This command sets or queries the format of the bit pattern for the bus qualification. + The command is available only when the Trigger Type is set to Glitch, Runt, + Setup/Hold, Timeout, Transition, Width, or Window and the trigger qualification is set + to Occurs And. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:QUALification:BUS:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:QUALification:BUS:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:QUALification:BUS:FORMat {BINary|HEX|SYMBolic} + - TRIGger:QUALification:BUS:FORMat? + + **Info:** + - ``BINary`` specifies the pattern format as binary. + - ``HEX`` specifies the pattern format as hexadecimal. + - ``SYMBolic`` specifies the pattern format as symbolic. + """ + return self._format + + @property + def source(self) -> TriggerQualificationBusSource: + """Return the ``TRIGger:QUALification:BUS:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the bus qualification. The command is + available only when the Trigger Type is set to Glitch, Runt, Setup/Hold, Timeout, + Transition, Width, or Window and the trigger qualification is set to Occurs And. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:QUALification:BUS:SOUrce?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:QUALification:BUS:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:QUALification:BUS:SOUrce {B} + - TRIGger:QUALification:BUS:SOUrce? + + **Info:** + - ``B`` specifies the bus source from B0 to B16. x has a minimum of 0 and a maximum + of 16. + """ + return self._source + + @property + def value(self) -> TriggerQualificationBusValue: + """Return the ``TRIGger:QUALification:BUS:VALue`` command. + + **Description:** + - This command sets or queries the bit pattern for the bus qualification. The command is + available only when the Trigger Type is set to Glitch, Runt, Setup/Hold, Timeout, + Transition, Width, or Window and the trigger qualification is set to Occurs And. The + pattern assigned is in the order D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 + Ch1 Ch2 Ch3 Ch4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS:VALue?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification:BUS:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:QUALification:BUS:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:QUALification:BUS:VALue + - TRIGger:QUALification:BUS:VALue? + + **Info:** + - ```` sets the bus value. + """ + return self._value + + +class TriggerQualification(SCPICmdRead): + """The ``TRIGger:QUALification`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._bus = TriggerQualificationBus(device, f"{self._cmd_syntax}:BUS") + + @property + def bus(self) -> TriggerQualificationBus: + """Return the ``TRIGger:QUALification:BUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification:BUS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification:BUS?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:QUALification:BUS:FORMat`` command. + - ``.source``: The ``TRIGger:QUALification:BUS:SOUrce`` command. + - ``.value``: The ``TRIGger:QUALification:BUS:VALue`` command. + """ + return self._bus + + +class TriggerMultiscopeRole(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:MULTiscope:ROLe`` command. + + **Description:** + - This command sets or queries the role of the instrument in the MultiScope trigger network. + PRODUCER means that the instrument will both contribute and use the MultiScope trigger. If + there is no hub, this makes the local instrument the master. CONSUMER means that the + trigger in from the MultiScope network is used (rather than an internal trigger). This + applies to a network with or without a hub. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ROLe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ROLe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope:ROLe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ROLe {PRODucer|CONSumer|NONe} + - TRIGger:MULTiscope:ROLe? + + **Info:** + - ``PRODucer`` sets the instrument to both contribute and use the MultiScope trigger. + - ``CONSumer`` sets the instrument to use the MultiScope trigger. + - ``NONe`` takes the instrument off the MultiScope trigger network. + """ + + +class TriggerMultiscopeOption(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:MULTiscope:OPTion`` command. + + **Description:** + - This command sets or queries the trigger type for the TekLink trigger. This will cause the + instrument to set the hub and all instruments participating to either AND or OR + triggering. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:OPTion?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:OPTion?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope:OPTion value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:OPTion {AND|OR} + - TRIGger:MULTiscope:OPTion? + + **Info:** + - ``AND`` sets the hub and all participating instruments to AND triggering. + - ``OR`` sets the hub and all participating instruments to OR triggering. + """ + + +class TriggerMultiscopeLogic(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:MULTiscope:LOGic`` command. + + **Description:** + - This command sets or queries the TekLink trigger configuration when the TekLink network + connection is HUB. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:LOGic?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:LOGic?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope:LOGic value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:LOGic {AND|OR} + - TRIGger:MULTiscope:LOGic? + + **Info:** + - ``AND`` sets the hub and all participating instruments to AND triggering configuration. + - ``OR`` sets the hub and all participating instruments to OR triggering configuration. + """ + + +class TriggerMultiscopeDelay(SCPICmdRead): + """The ``TRIGger:MULTiscope:DELay`` command. + + **Description:** + - This command queries the delay time in nanoseconds, for trigger out of the TekLink trigger + out line. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:DELay?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:DELay?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:DELay? + """ + + +class TriggerMultiscopeAlignValue(SCPICmdRead): + """The ``TRIGger:MULTiscope:ALIGN:VALue`` command. + + **Description:** + - This command returns the time interval result from the ``TRIGGER:MULTISCOPE:ALIGN`` + command. Round trip time, trigger out to trigger in. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ALIGN:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:VALue? + """ + + +class TriggerMultiscopeAlignSetstate(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:MULTiscope:ALIGN:SETSTATE`` command. + + **Description:** + - This command causes the instrument to measure the round trip time between sending a + trigger out the TekLink port and receiving the trigger pulse back from the port. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:SETSTATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ALIGN:SETSTATE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:MULTiscope:ALIGN:SETSTATE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:SETSTATE {START|STOP|WAIT|DONE} + - TRIGger:MULTiscope:ALIGN:SETSTATE? + + **Info:** + - ``START`` begins calibration. + - ``STOP`` ends calibration. + - ``WAIT`` postpones calibration. + - ``DONE`` indicates that the calibration is complete. + """ + + +class TriggerMultiscopeAlignMrttime(SCPICmdWriteNoArguments, SCPICmdRead): + """The ``TRIGger:MULTiscope:ALIGN:MRTTime`` command. + + **Description:** + - This command returns or sends the maximum round trip time to each of the instruments in a + calibration cycle. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:MRTTime?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ALIGN:MRTTime?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write()`` method will send the ``TRIGger:MULTiscope:ALIGN:MRTTime`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:MRTTime + - TRIGger:MULTiscope:ALIGN:MRTTime? + """ + + +class TriggerMultiscopeAlignDeskew(SCPICmdRead): + """The ``TRIGger:MULTiscope:ALIGN:DESKEW`` command. + + **Description:** + - This command sets or queries the deskew time in nanoseconds, for horizontal positioning of + the waveform. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:DESKEW?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ALIGN:DESKEW?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:DESKEW? + """ + + +class TriggerMultiscopeAlignCompleted(SCPICmdRead): + """The ``TRIGger:MULTiscope:ALIGN:COMPleted`` command. + + **Description:** + - This command returns whether the oscilloscope has successfully completed the MultiScope + trigger align procedure. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:COMPleted?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ALIGN:COMPleted?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:COMPleted? + """ + + +class TriggerMultiscopeAlign(SCPICmdWriteNoArguments, SCPICmdRead): + """The ``TRIGger:MULTiscope:ALIGN`` command. + + **Description:** + - This command starts the TekLink trigger alignment procedure on all oscilloscopes which are + participating in MultiScope triggering. For this command to have any effect, the + instrument must be participating in MultiScope triggering. Other instruments on the + TekLink network are not affected. + + **Usage:** + - Using the ``.write()`` method will send the ``TRIGger:MULTiscope:ALIGN`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN + + Properties: + - ``.completed``: The ``TRIGger:MULTiscope:ALIGN:COMPleted`` command. + - ``.deskew``: The ``TRIGger:MULTiscope:ALIGN:DESKEW`` command. + - ``.mrttime``: The ``TRIGger:MULTiscope:ALIGN:MRTTime`` command. + - ``.setstate``: The ``TRIGger:MULTiscope:ALIGN:SETSTATE`` command. + - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._completed = TriggerMultiscopeAlignCompleted(device, f"{self._cmd_syntax}:COMPleted") + self._deskew = TriggerMultiscopeAlignDeskew(device, f"{self._cmd_syntax}:DESKEW") + self._mrttime = TriggerMultiscopeAlignMrttime(device, f"{self._cmd_syntax}:MRTTime") + self._setstate = TriggerMultiscopeAlignSetstate(device, f"{self._cmd_syntax}:SETSTATE") + self._value = TriggerMultiscopeAlignValue(device, f"{self._cmd_syntax}:VALue") + + @property + def completed(self) -> TriggerMultiscopeAlignCompleted: + """Return the ``TRIGger:MULTiscope:ALIGN:COMPleted`` command. + + **Description:** + - This command returns whether the oscilloscope has successfully completed the + MultiScope trigger align procedure. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:COMPleted?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:MULTiscope:ALIGN:COMPleted?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:COMPleted? + """ + return self._completed + + @property + def deskew(self) -> TriggerMultiscopeAlignDeskew: + """Return the ``TRIGger:MULTiscope:ALIGN:DESKEW`` command. + + **Description:** + - This command sets or queries the deskew time in nanoseconds, for horizontal + positioning of the waveform. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:DESKEW?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ALIGN:DESKEW?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:DESKEW? + """ + return self._deskew + + @property + def mrttime(self) -> TriggerMultiscopeAlignMrttime: + """Return the ``TRIGger:MULTiscope:ALIGN:MRTTime`` command. + + **Description:** + - This command returns or sends the maximum round trip time to each of the instruments + in a calibration cycle. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:MRTTime?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:MULTiscope:ALIGN:MRTTime?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write()`` method will send the ``TRIGger:MULTiscope:ALIGN:MRTTime`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:MRTTime + - TRIGger:MULTiscope:ALIGN:MRTTime? + """ + return self._mrttime + + @property + def setstate(self) -> TriggerMultiscopeAlignSetstate: + """Return the ``TRIGger:MULTiscope:ALIGN:SETSTATE`` command. + + **Description:** + - This command causes the instrument to measure the round trip time between sending a + trigger out the TekLink port and receiving the trigger pulse back from the port. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:SETSTATE?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:MULTiscope:ALIGN:SETSTATE?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:MULTiscope:ALIGN:SETSTATE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:SETSTATE {START|STOP|WAIT|DONE} + - TRIGger:MULTiscope:ALIGN:SETSTATE? + + **Info:** + - ``START`` begins calibration. + - ``STOP`` ends calibration. + - ``WAIT`` postpones calibration. + - ``DONE`` indicates that the calibration is complete. + """ + return self._setstate + + @property + def value(self) -> TriggerMultiscopeAlignValue: + """Return the ``TRIGger:MULTiscope:ALIGN:VALue`` command. + + **Description:** + - This command returns the time interval result from the ``TRIGGER:MULTISCOPE:ALIGN`` + command. Round trip time, trigger out to trigger in. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ALIGN:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ALIGN:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN:VALue? + """ + return self._value + + +class TriggerMultiscope(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:MULTiscope`` command. + + **Description:** + - This command sets or queries the state of MultiScope triggering, either ENABle or DISable. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope {DISable|ENable} + - TRIGger:MULTiscope? + + **Info:** + - ``DISable`` sets the MultiScope triggering state to disabled. + - ``ENable`` sets the MultiScope triggering state to enabled. + + Properties: + - ``.align``: The ``TRIGger:MULTiscope:ALIGN`` command. + - ``.delay``: The ``TRIGger:MULTiscope:DELay`` command. + - ``.logic``: The ``TRIGger:MULTiscope:LOGic`` command. + - ``.option``: The ``TRIGger:MULTiscope:OPTion`` command. + - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._align = TriggerMultiscopeAlign(device, f"{self._cmd_syntax}:ALIGN") + self._delay = TriggerMultiscopeDelay(device, f"{self._cmd_syntax}:DELay") + self._logic = TriggerMultiscopeLogic(device, f"{self._cmd_syntax}:LOGic") + self._option = TriggerMultiscopeOption(device, f"{self._cmd_syntax}:OPTion") + self._role = TriggerMultiscopeRole(device, f"{self._cmd_syntax}:ROLe") + + @property + def align(self) -> TriggerMultiscopeAlign: + """Return the ``TRIGger:MULTiscope:ALIGN`` command. + + **Description:** + - This command starts the TekLink trigger alignment procedure on all oscilloscopes which + are participating in MultiScope triggering. For this command to have any effect, the + instrument must be participating in MultiScope triggering. Other instruments on the + TekLink network are not affected. + + **Usage:** + - Using the ``.write()`` method will send the ``TRIGger:MULTiscope:ALIGN`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ALIGN + + Sub-properties: + - ``.completed``: The ``TRIGger:MULTiscope:ALIGN:COMPleted`` command. + - ``.deskew``: The ``TRIGger:MULTiscope:ALIGN:DESKEW`` command. + - ``.mrttime``: The ``TRIGger:MULTiscope:ALIGN:MRTTime`` command. + - ``.setstate``: The ``TRIGger:MULTiscope:ALIGN:SETSTATE`` command. + - ``.value``: The ``TRIGger:MULTiscope:ALIGN:VALue`` command. + """ + return self._align + + @property + def delay(self) -> TriggerMultiscopeDelay: + """Return the ``TRIGger:MULTiscope:DELay`` command. + + **Description:** + - This command queries the delay time in nanoseconds, for trigger out of the TekLink + trigger out line. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:DELay?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:DELay?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:DELay? + """ + return self._delay + + @property + def logic(self) -> TriggerMultiscopeLogic: + """Return the ``TRIGger:MULTiscope:LOGic`` command. + + **Description:** + - This command sets or queries the TekLink trigger configuration when the TekLink + network connection is HUB. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:LOGic?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:LOGic?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope:LOGic value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:LOGic {AND|OR} + - TRIGger:MULTiscope:LOGic? + + **Info:** + - ``AND`` sets the hub and all participating instruments to AND triggering + configuration. + - ``OR`` sets the hub and all participating instruments to OR triggering configuration. + """ + return self._logic + + @property + def option(self) -> TriggerMultiscopeOption: + """Return the ``TRIGger:MULTiscope:OPTion`` command. + + **Description:** + - This command sets or queries the trigger type for the TekLink trigger. This will cause + the instrument to set the hub and all instruments participating to either AND or OR + triggering. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:OPTion?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:OPTion?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope:OPTion value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:OPTion {AND|OR} + - TRIGger:MULTiscope:OPTion? + + **Info:** + - ``AND`` sets the hub and all participating instruments to AND triggering. + - ``OR`` sets the hub and all participating instruments to OR triggering. + """ + return self._option + + @property + def role(self) -> TriggerMultiscopeRole: + """Return the ``TRIGger:MULTiscope:ROLe`` command. + + **Description:** + - This command sets or queries the role of the instrument in the MultiScope trigger + network. PRODUCER means that the instrument will both contribute and use the + MultiScope trigger. If there is no hub, this makes the local instrument the master. + CONSUMER means that the trigger in from the MultiScope network is used (rather than an + internal trigger). This applies to a network with or without a hub. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope:ROLe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope:ROLe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope:ROLe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope:ROLe {PRODucer|CONSumer|NONe} + - TRIGger:MULTiscope:ROLe? + + **Info:** + - ``PRODucer`` sets the instrument to both contribute and use the MultiScope trigger. + - ``CONSumer`` sets the instrument to use the MultiScope trigger. + - ``NONe`` takes the instrument off the MultiScope trigger network. + """ + return self._role + + +class TriggerMainPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. + + **Description:** + - This command sets or queries the polarity option seen in main pulse window trigger mode + that causes the oscilloscope to trigger only when the signal exits the window. This is + available only when the Window Event option is set to Inside > t. Also the logic selection + is available only when the polarity is set to Either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn:PULse:WINdow:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MAIn:PULse:WINdow:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:MAIn:PULse:WINdow:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MAIn:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:MAIn:PULse:WINdow:POLarity? + + **Info:** + - ``EITher`` argument specifies positive or negative polarity. + - ``NEGAtive`` argument specifies positive polarity. + - ``POSITIVe`` argument specifies negative polarity. + """ + + +class TriggerMainPulseWindow(SCPICmdRead): + """The ``TRIGger:MAIn:PULse:WINdow`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn:PULse:WINdow?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MAIn:PULse:WINdow?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._polarity = TriggerMainPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") + + @property + def polarity(self) -> TriggerMainPulseWindowPolarity: + """Return the ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. + + **Description:** + - This command sets or queries the polarity option seen in main pulse window trigger + mode that causes the oscilloscope to trigger only when the signal exits the window. + This is available only when the Window Event option is set to Inside > t. Also the + logic selection is available only when the polarity is set to Either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn:PULse:WINdow:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:MAIn:PULse:WINdow:POLarity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:MAIn:PULse:WINdow:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MAIn:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:MAIn:PULse:WINdow:POLarity? + + **Info:** + - ``EITher`` argument specifies positive or negative polarity. + - ``NEGAtive`` argument specifies positive polarity. + - ``POSITIVe`` argument specifies negative polarity. + """ + return self._polarity + + +class TriggerMainPulse(SCPICmdRead): + """The ``TRIGger:MAIn:PULse`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn:PULse?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MAIn:PULse?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._window = TriggerMainPulseWindow(device, f"{self._cmd_syntax}:WINdow") + + @property + def window(self) -> TriggerMainPulseWindow: + """Return the ``TRIGger:MAIn:PULse:WINdow`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn:PULse:WINdow?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MAIn:PULse:WINdow?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.polarity``: The ``TRIGger:MAIn:PULse:WINdow:POLarity`` command. + """ + return self._window + + +class TriggerMain(SCPICmdRead): + """The ``TRIGger:MAIn`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MAIn?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._pulse = TriggerMainPulse(device, f"{self._cmd_syntax}:PULse") + + @property + def pulse(self) -> TriggerMainPulse: + """Return the ``TRIGger:MAIn:PULse`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn:PULse?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MAIn:PULse?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.window``: The ``TRIGger:MAIn:PULse:WINdow`` command tree. + """ + return self._pulse + + +class TriggerLvlsrcpreference(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:LVLSrcpreference`` command. + + **Description:** + - This command sets or queries the dependent source/level trigger feature. SRCIndependent is + the default value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:LVLSrcpreference?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:LVLSrcpreference?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:LVLSrcpreference value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:LVLSrcpreference {SRCDependent|SRCIndependent} + - TRIGger:LVLSrcpreference? + + **Info:** + - ``SRCDependent`` sets the level of all trigger sources to the value you currently select, + regardless of the last value selected. + - ``SRCIndependent`` sets each trigger source to the level you are currently selecting. + """ + + +class TriggerEquationItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:EQUation`` command. + + **Description:** + - Sets the Visual Trigger Equation string, which defines the behavior of the areas. There + can be only one equation, which can be up to 128 characters. You can enter the command as + ``TRIGGER:EQUATION`` or ``TRIGGER:EQUATION1``. Each area is assigned a single source + (analog channel 1, 2, 3, or 4). Any analog channel can be used as the source for one or + more areas. Some basic equations are: (C1 IN A1) - The channel 1 waveform must intersect + with Area 1. (C2 OUT A2) - The channel 2 waveform must NOT intersect with Area 2. ((C1 IN + A1) and (C2 OUT A2)) - Combines the previous two examples. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:EQUation?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:EQUation?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:EQUation value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:EQUation + - TRIGger:EQUation? + + **Info:** + - ```` is the equation that you want to use for visual triggering. This equation is + shown on the oscilloscope screen when visual triggering is enabled. + """ + + +class TriggerEnhanced(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:ENHanced`` command. + + **Description:** + - This command sets or queries the state of trigger position enhancement. When on, the + instrument improves the trigger positioning to more closely match the acquired data. This + is equivalent to selecting Enhanced Triggering from the Trigger Mode menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:ENHanced?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:ENHanced?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:ENHanced value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:ENHanced {|OFF|ON} + - TRIGger:ENHanced? + + **Info:** + - ```` = 0 disables trigger position enhancement, any other value enables trigger + position enhancement. + - ``OFF`` disables trigger position enhancement. + - ``ON`` enables trigger position enhancement. + """ + + +class TriggerBUpperthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:UPPerthreshold:CH`` command. + + **Description:** + - This command sets or queries the CH upper trigger level for + ``TRIGger:LVLSrcpreference SRCDependent``. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:UPPerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:UPPerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:UPPerthreshold:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:UPPerthreshold:CH {ECL|TTL|} + - TRIGger:B:UPPerthreshold:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + + +class TriggerBUpperthreshold(SCPICmdRead): + """The ``TRIGger:B:UPPerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:UPPerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:UPPerthreshold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBUpperthresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBUpperthresholdChannel]: + """Return the ``TRIGger:B:UPPerthreshold:CH`` command. + + **Description:** + - This command sets or queries the CH upper trigger level for + ``TRIGger:LVLSrcpreference SRCDependent``. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:UPPerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:UPPerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:UPPerthreshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:UPPerthreshold:CH {ECL|TTL|} + - TRIGger:B:UPPerthreshold:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + return self._ch + + +class TriggerBType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:TYPe`` command. + + **Description:** + - This command sets or queries the type of A or B trigger. Logic and Pulse triggers contain + classes. Logic triggers consist of State and Pattern classes; Pulse triggers consist of + Glitch, Runt, Width, Transition, Timeout, and Window classes. Once you have set the + trigger type, you might also need to identify the associated trigger class. For details on + selecting Logic and Pulse trigger classes, see and respectively. This command is similar + to selecting Event Trigger Setup from the Trig menu and then selecting the desired Trigger + Type. Some trigger types are not available on some instruments. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:TYPe?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:TYPe {EDGE|LOGIc|PULse|VIDeo| I2C|CAN|SPI|COMMunication|SERIAL|RS232}} + - TRIGger:B:TYPe? + + **Info:** + - ``EDGE`` is a normal trigger. A trigger event occurs when a signal passes through a + specified voltage level in a specified direction and is controlled by the + ``TRIGger:A:EDGE`` commands. + - ``LOGIc`` specifies that a trigger occurs when specified conditions are met and is + controlled by the ``TRIGger:A:LOGIc`` commands. + - ``PULse`` specifies that a trigger occurs when a specified pulse is found and is + controlled by the ``TRIGger:A:PULse`` commands. + - ``VIDeo`` specifies that the trigger occurs when a video signal is found. Requires an + instrument with video hardware. + - ``I2C`` specifies that a trigger occurs when an Inter-IC Control signal is found. + - ``CAN`` specifies that a trigger occurs when a Controller Area Network frame signal is + found. + - ``SPI`` specifies that a trigger occurs when a Serial Peripheral Interface signal is + found. + - ``COMMunication`` (Option MTM) specifies that a trigger occurs when a communications + signal is found. Supports AMI, HDB3, B3ZS, B6ZS, B8ZS, CMI, MLT3, Manchester, and NRZ + encoded communications signals. COMMunication is available only if Option MTM is + installed. + - ``SERIAL`` specifies that a trigger occurs when NRZ-encoded data is found, providing a + 32-bit serial word. This argument is available with instruments with Option PTM. + - ``RS232`` takes a signal on a data source and allows you to trigger on data within the + RS232 bitstream. The data is only one byte wide. + """ + + +class TriggerBTime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:TIMe`` command. + + **Description:** + - This command sets or queries B trigger delay time, in seconds. The B Trigger time applies + only if ``TRIGger:B:BY`` is set to TIMe. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:TIMe?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:TIMe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:TIMe + - TRIGger:B:TIMe? + + **Info:** + - ```` is the B trigger delay time in seconds. + """ + + +class TriggerBState(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:STATE`` command. + + **Description:** + - This command sets or queries the state of B trigger activity. If the B trigger state is + on, the B trigger is part of the triggering sequence. If the B trigger state is off, then + only the A trigger causes the trigger event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:STATE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:STATE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:STATE {ON|OFF|} + - TRIGger:B:STATE? + + **Info:** + - ``ON`` indicates that the B trigger is active and causes trigger events with the A + trigger. + - ``OFF`` indicates that only the A trigger causes trigger events. + - ```` is an integer number. 0 turns off the B trigger; any other value activates the B + trigger. + """ + + +class TriggerBScanStartevent(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:SCAN:STARTevent`` command. + + **Description:** + - This command sets or queries the start event value of B-Event Scan. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:STARTevent?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:STARTevent?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:STARTevent value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:STARTevent + - TRIGger:B:SCAN:STARTevent? + + **Info:** + - ```` is the start event value of B-Event Scan. The default value is 1 and ranges from + 1 to 2e9. + """ + + +class TriggerBScanMode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:SCAN:MODE`` command. + + **Description:** + - This command sets or queries the sequence advance mode of B-Event Scan. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:MODE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:MODE?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:MODE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:MODE {SEQUENTIAL|RANDOM|TOGGLE} + - TRIGger:B:SCAN:MODE? + + **Info:** + - ``SEQUENTIAL`` , where the B-Event Scan is initialized at start event. This value is + incremented after each set of Advance After triggers have occurred, until the B-Event + exceeds the end event value. Then the B-Event count is again set to the start event value. + - ``RANDOM`` , where the B-Event value is changed to a random value such that start event + value <= BEvent <= end event value), and after Advance After triggers have occurred. + - ``TOGGLE`` , where the B-Event count is first set to the start event value and then + changed to the end event value after additional Advance After triggers have occurred, and + then B-Event is set back to the start event value. + """ + + +class TriggerBScanEndevent(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:SCAN:ENDevent`` command. + + **Description:** + - This command sets or queries the end event value of B-Event Scan. The end event value is + greater than or equal to the start event value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:ENDevent?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:ENDevent?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:ENDevent value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:ENDevent + - TRIGger:B:SCAN:ENDevent? + + **Info:** + - ```` is the end event value of B-Event Scan. The default value is 8 and ranges from 1 + to 2e9. + """ + + +class TriggerBScanEnable(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:SCAN:ENAble`` command. + + **Description:** + - This command sets or queries if the B-Event Scan is on or off. The B-Events value is + updated in a sequential, random, or toggle Advance mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:ENAble?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:ENAble?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:ENAble value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:ENAble {ON|OFF} + - TRIGger:B:SCAN:ENAble? + + **Info:** + - ``ON`` with A->B Sequence mode set to Trig on nth Event, the B-Event count is determined + by the other B Scan triggering parameters such as Start Event value, End Event value, + Advance After value, and the Advance mode. + - ``OFF`` with A->B Sequence mode set to Trig on nth Event, behaves in a conventional way. + """ + + +class TriggerBScanAdvanceafter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:SCAN:ADVANCEafter`` command. + + **Description:** + - This command sets or queries the B-Event Scan advance after value. Advance After advances + the B-Event value after the specified number of acquisitions have occurred. The B-Events + value is updated in a sequential, random, or toggle mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:ADVANCEafter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:ADVANCEafter?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:ADVANCEafter value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:ADVANCEafter + - TRIGger:B:SCAN:ADVANCEafter? + + **Info:** + - ```` is the value that advances the B-Event after the given number of acquisitions + have occurred. The default value is 1 and ranges from 1 to 2e9 (2000000000). + """ + + +class TriggerBScan(SCPICmdRead): + """The ``TRIGger:B:SCAN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.advanceafter``: The ``TRIGger:B:SCAN:ADVANCEafter`` command. + - ``.enable``: The ``TRIGger:B:SCAN:ENAble`` command. + - ``.endevent``: The ``TRIGger:B:SCAN:ENDevent`` command. + - ``.mode``: The ``TRIGger:B:SCAN:MODE`` command. + - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._advanceafter = TriggerBScanAdvanceafter(device, f"{self._cmd_syntax}:ADVANCEafter") + self._enable = TriggerBScanEnable(device, f"{self._cmd_syntax}:ENAble") + self._endevent = TriggerBScanEndevent(device, f"{self._cmd_syntax}:ENDevent") + self._mode = TriggerBScanMode(device, f"{self._cmd_syntax}:MODE") + self._startevent = TriggerBScanStartevent(device, f"{self._cmd_syntax}:STARTevent") + + @property + def advanceafter(self) -> TriggerBScanAdvanceafter: + """Return the ``TRIGger:B:SCAN:ADVANCEafter`` command. + + **Description:** + - This command sets or queries the B-Event Scan advance after value. Advance After + advances the B-Event value after the specified number of acquisitions have occurred. + The B-Events value is updated in a sequential, random, or toggle mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:ADVANCEafter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:ADVANCEafter?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:ADVANCEafter value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:ADVANCEafter + - TRIGger:B:SCAN:ADVANCEafter? + + **Info:** + - ```` is the value that advances the B-Event after the given number of + acquisitions have occurred. The default value is 1 and ranges from 1 to 2e9 + (2000000000). + """ + return self._advanceafter + + @property + def enable(self) -> TriggerBScanEnable: + """Return the ``TRIGger:B:SCAN:ENAble`` command. + + **Description:** + - This command sets or queries if the B-Event Scan is on or off. The B-Events value is + updated in a sequential, random, or toggle Advance mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:ENAble?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:ENAble?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:ENAble value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:ENAble {ON|OFF} + - TRIGger:B:SCAN:ENAble? + + **Info:** + - ``ON`` with A->B Sequence mode set to Trig on nth Event, the B-Event count is + determined by the other B Scan triggering parameters such as Start Event value, End + Event value, Advance After value, and the Advance mode. + - ``OFF`` with A->B Sequence mode set to Trig on nth Event, behaves in a conventional + way. + """ + return self._enable + + @property + def endevent(self) -> TriggerBScanEndevent: + """Return the ``TRIGger:B:SCAN:ENDevent`` command. + + **Description:** + - This command sets or queries the end event value of B-Event Scan. The end event value + is greater than or equal to the start event value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:ENDevent?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:ENDevent?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:ENDevent value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:ENDevent + - TRIGger:B:SCAN:ENDevent? + + **Info:** + - ```` is the end event value of B-Event Scan. The default value is 8 and ranges + from 1 to 2e9. + """ + return self._endevent + + @property + def mode(self) -> TriggerBScanMode: + """Return the ``TRIGger:B:SCAN:MODE`` command. + + **Description:** + - This command sets or queries the sequence advance mode of B-Event Scan. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:MODE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:MODE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:MODE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:MODE {SEQUENTIAL|RANDOM|TOGGLE} + - TRIGger:B:SCAN:MODE? + + **Info:** + - ``SEQUENTIAL`` , where the B-Event Scan is initialized at start event. This value is + incremented after each set of Advance After triggers have occurred, until the B-Event + exceeds the end event value. Then the B-Event count is again set to the start event + value. + - ``RANDOM`` , where the B-Event value is changed to a random value such that start + event value <= BEvent <= end event value), and after Advance After triggers have + occurred. + - ``TOGGLE`` , where the B-Event count is first set to the start event value and then + changed to the end event value after additional Advance After triggers have occurred, + and then B-Event is set back to the start event value. + """ + return self._mode + + @property + def startevent(self) -> TriggerBScanStartevent: + """Return the ``TRIGger:B:SCAN:STARTevent`` command. + + **Description:** + - This command sets or queries the start event value of B-Event Scan. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN:STARTevent?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN:STARTevent?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:SCAN:STARTevent value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:SCAN:STARTevent + - TRIGger:B:SCAN:STARTevent? + + **Info:** + - ```` is the start event value of B-Event Scan. The default value is 1 and ranges + from 1 to 2e9. + """ + return self._startevent + + +class TriggerBResetType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:TYPe`` command. + + **Description:** + - This command sets or queries the type of A→B sequential trigger reset. If the B trigger + reset is active, the reset criteria are part of the B triggering sequence. If the reset + conditions defined by the reset type are not met, the instrument must start over searching + for a new occurrence of the A event. You must identify a trigger Source and Threshold for + each reset type, except for the Timeout, Accept, and Reject trigger types. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TYPe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TYPe {NONe|TIMEOut|STATE|TRANsition|ACCepts|REJects} + - TRIGger:B:RESET:TYPe? + + **Info:** + - ``NONe`` defeats the trigger reset feature. + - ``TIMEOut`` initiates a reset if the timeout conditions specified by + ``TRIGger:B:RESET:TIMEOut`` are met. + - ``STATE`` initiates a reset if the state conditions specified by TRIGger: + ``B:RESET:SOUrce``, ``TRIGger:B:RESET:STATE``, and ``TRIGger:B:RESET:THReshold`` are met. + - ``TRANsition`` initiates a reset if the transition conditions specified by + ``TRIGger:B:RESET:SOUrce``, ``TRIGger:B:RESET:TRANsition``, and + ``TRIGger:B:RESET:THReshold`` are met. + - ``ACCepts`` initiates a trigger at the A-Event if the B-Event occurs before the Accept + Timeout, as measured from the A- to the B-Event. That is, the B-Event Accepts (validates) + the A- Event. Otherwise the oscilloscope does not trigger. The trigger location is at the + A-Event. + - ``REJects`` initiates a trigger if the Reject Timeout expires before the B-Event occurs, + as measured from the A- to the B-Event. That is, reception of the B-Event Rejects + (invalidates) the A-Event. Otherwise the oscilloscope does not trigger (if the B-Event + occurs before the Reject Timeout). The trigger location is at the A-Event. + """ + + +class TriggerBResetTransition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:TRANsition`` command. + + **Description:** + - This command sets or queries the type of transition required for a Transition trigger + reset. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TRANsition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TRANsition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:TRANsition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TRANsition {RISe|FALL} + - TRIGger:B:RESET:TRANsition? + + **Info:** + - ``RISe`` indicates that a reset occurs when the trigger rises above the threshold level. + - ``FALL`` indicates that a reset occurs when the trigger falls below the threshold level. + """ + + +class TriggerBResetTotalcount(SCPICmdRead): + """The ``TRIGger:B:RESET:TOTALCOUNT`` command. + + **Description:** + - This command queries the Reset Total Count for a sequence trigger reset by the ACCept and + REJect Reset Types. These are often referred to as the Validation/Invalidation Triggers. + The TotalCount is the sum of the accepted and rejected triggers when the Reset or Accept + Reset Types are active, and is part of the equation TotalCount = AcceptCount + RejectCount + used to form the ratio of accepted to total triggers that is optionally displayed when + Validation/Invalidation Triggers are employed. For example, if the Reset Type Accept is + active, the TotalCount is the sum of the accepted and rejected triggers processed by the + Accept Reset Type, a query only value determined by the trigger system. Any acquired + waveform obtained by Accept or Reject Reset Types is positioned at the A-Event. For + example, if the Reset Type Reject is active, the TotalCount is the sum of the accepted and + rejected triggers processed by the Reject Reset Type, a query only value determined by the + trigger system. Any acquired waveform obtained by Accept or Reject Reset Types is + positioned at the A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TOTALCOUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TOTALCOUNT?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TOTALCOUNT? + """ + + +class TriggerBResetTimeout(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:TIMEOut`` command. + + **Description:** + - This command sets or queries the reset timer for a sequential timeout trigger reset. For + example, if the timeout is set to 1 s, this additional reset time begins following an A + trigger event and runs sequentially with any B Trigger Delay. If a B trigger event is not + found before it expires, the instrument searches for a new A event trigger sequence. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TIMEOut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TIMEOut?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:TIMEOut value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TIMEOut + - TRIGger:B:RESET:TIMEOut? + + **Info:** + - ```` specifies the reset time. + """ + + +class TriggerBResetThreshold(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:THReshold`` command. + + **Description:** + - This command sets or queries the trigger threshold for the A→B sequential trigger reset, + except for the Timeout reset type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:THReshold?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:THReshold value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:THReshold {ECL|TTL|} + - TRIGger:B:RESET:THReshold? + + **Info:** + - ``ECL`` sets the reset threshold to ECL voltage levels. + - ``TTL`` sets the reset threshold to TTL voltage levels. + - ```` sets the reset threshold in volts. + """ + + +class TriggerBResetState(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:STATE`` command. + + **Description:** + - This command sets or queries the trigger reset state for the A→B sequential State trigger + reset feature. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:STATE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:STATE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:STATE {HIGH|LOW} + - TRIGger:B:RESET:STATE? + + **Info:** + - ``HIGH`` sets the condition for the state sequential trigger reset to high. + - ``LOW`` sets the condition for the state sequential trigger reset to low. + """ + + +class TriggerBResetSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:SOUrce`` command. + + **Description:** + - This command sets or queries the trigger source for the A→B sequential trigger reset + feature, except for the Timeout trigger type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:SOUrce {CH|AUXiliary} + - TRIGger:B:RESET:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels as the reset source. Input channels are + specified by x and can be 1, 2, 3, or 4. + - ``AUXiliary`` specifies an external trigger (using the Auxiliary Trigger Input connector) + as the reset source. + """ + + +class TriggerBResetRejecttimeout(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:REJECTTIMEout`` command. + + **Description:** + - This command sets or queries the Reset Reject Time Out timer for a sequence trigger reset + by the REJect Reset Type. This is often referred to as the Invalidation Trigger. The + Reject Time Out indicates the time measured from the A-Event in which the B-Event must + occur in order to reject the A-Event. When the B-Event does not occur within the Reject + Time Out, the scope triggers on the A-Event, because the B-Event is interpreted as an + invalidation or rejection of the A-Event. If the B-Event does occur within the Reject Time + Out, the scope again starts waiting for an A-Event to occur, i.e., no trigger occurs and + no acquisition is retained. Note that the acquired waveform trigger position is located at + the A-Event, contrary to the behavior of most A->B Sequence triggers. For example, if the + Reject Time Out is set to 5.2 µS, the A-Event will trigger the scope only if the B-Event + does not occur before 5.2 µS has elapsed after the A-Event. The acquired waveform is + positioned at the A-Event. When the B-Event does occur before the 5.2 µs has elapsed, then + the scope does not trigger, and again starts waiting for an A-Event to occur. In this way + the B-Event invalidates an A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:REJECTTIMEout?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:REJECTTIMEout?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:REJECTTIMEout value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:REJECTTIMEout + - TRIGger:B:RESET:REJECTTIMEout? + + **Info:** + - ```` specifies the Reject Time Out time. + """ + + +class TriggerBResetRejectcount(SCPICmdRead): + """The ``TRIGger:B:RESET:REJECTCOUNT`` command. + + **Description:** + - This command queries the Reset Reject Count for a sequence trigger reset by the ACCept and + REJect Reset Types. These are often referred to as the Validation/Invalidation Triggers. + The RejectCount is the number of triggers rejected when these triggers are active, and is + part of the equation TotalCount = AcceptCount + RejectCount used to form the ratio of + accepted to total triggers that is optionally displayed when Validation/Invalidation + Triggers are employed. For example, if the Reset Type Accept is active, the RejectCount is + the number of triggers that have been rejected, a query only value determined by the + trigger system. For example, if Reset Type Reject is active, the RejectCount is the number + of triggers that have been rejected, a query only value determined by the trigger system. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:REJECTCOUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:REJECTCOUNT?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:REJECTCOUNT? + """ + + +class TriggerBResetRatioenable(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:RATIOENable`` command. + + **Description:** + - This command sets or queries the Ratio Enable enumerated value (OFF/ON). If ON, a ratio is + displayed in the graticule area. The displayed value represents the ratio of accepted to + total triggers for a sequence trigger reset by the ACCept and REJect Reset Types. These + are often referred to as the Validation/Invalidation Triggers. The default value is ON. + For example, if the Reset Type Accept is active, and RatioEnable is ON, the ratio of + accepted to total triggers is displayed in the graticule area as a percent. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:RATIOENable?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:RATIOENable?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:RATIOENable value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:RATIOENable + - TRIGger:B:RESET:RATIOENable? + """ + + +class TriggerBResetRatio(SCPICmdRead): + """The ``TRIGger:B:RESET:RATIO`` command. + + **Description:** + - This command queries the (floating point) Ratio of accepted to total triggers for a + sequence trigger reset by the ACCepts and REJects Reset Types. These are often referred to + as the Validation/Invalidation Triggers. The Ratio = Accepted Count / Total Count, and is + a query only value generated by the trigger system. The TotalCount = AcceptCount + + RejectCount. For example, if the Reset Type Accept is active, and 100 triggers have been + accepted and 100 trigger have been rejected, then the ratio = acceptCount / totalCount, + then the ratio is 50%. The ratio is expressed in scientific notation. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:RATIO?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:RATIO?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:RATIO? + """ + + +class TriggerBResetAccepttimeout(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:RESET:ACCEPTTIMEout`` command. + + **Description:** + - This command sets or queries the Reset Accept Time Out timer for a sequence trigger reset + by the ACCept Reset Type. This is often referred to as the Validation Trigger. The Accept + Time Out indicates the time, as measured from the A-Event to the B-Event, in which the + B-Event must occur in order to accept the A-Event. When the B-Event occurs within the + Accept Time Out, the scope triggers on the A-Event, because the B-Event is interpreted as + a validation of the A-Event. Note that the acquired waveform trigger position is location + at the A-Event, contrary to the behavior of most A->B Sequence triggers. In this way, the + B-Event validates the A-Event. If the B-Event does not occur within the Accept Time Out, + the scope again starts waiting for an A-Event to occur, i.e., no trigger occurs and the + acquisition is not retained. For example, if the Accept Time Out is set to 5.2 µs, the + A-Event will trigger the scope only if the B-Event occurs before 5.2 µs has elapsed after + the A-Event. Any acquired waveform is positioned at the A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:ACCEPTTIMEout?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:ACCEPTTIMEout?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:ACCEPTTIMEout value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:ACCEPTTIMEout + - TRIGger:B:RESET:ACCEPTTIMEout? + + **Info:** + - ```` specifies the Accept Time Out time. + """ + + +class TriggerBResetAcceptcount(SCPICmdRead): + """The ``TRIGger:B:RESET:ACCEPTCOUNT`` command. + + **Description:** + - This command queries the Reset Accept Count for a sequence trigger reset by the ACCept and + REJect Reset Types. These are often referred to as the Validation/Invalidation Triggers. + The AcceptCount is equivalent to the number of acquired waveforms, and is part of the + equation TotalCount = AcceptCount + RejectCount used to form the ratio of accepted to + total triggers that is optionally displayed when Validation/Invalidation Triggers are + employed. The Accept Count is always equal the Acquisition Count. For example, if the + Reset Type Accept is active, the AcceptCount is the number of triggers that have been + accepted, a query only value determined by the trigger system. Any acquired waveform + obtained by Reset Type Accept or Reject is positioned at the A-Event. For example, if + Reset Type Reject is active, the AcceptCount is still the number of triggers that have + been accepted, a query only value determined by the trigger system. Any acquired waveform + obtained by Reset Type Accept or Reject is positioned at the A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:ACCEPTCOUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:ACCEPTCOUNT?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:ACCEPTCOUNT? + """ + + +# pylint: disable=too-many-instance-attributes +class TriggerBReset(SCPICmdRead): + """The ``TRIGger:B:RESET`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.acceptcount``: The ``TRIGger:B:RESET:ACCEPTCOUNT`` command. + - ``.accepttimeout``: The ``TRIGger:B:RESET:ACCEPTTIMEout`` command. + - ``.ratio``: The ``TRIGger:B:RESET:RATIO`` command. + - ``.ratioenable``: The ``TRIGger:B:RESET:RATIOENable`` command. + - ``.rejectcount``: The ``TRIGger:B:RESET:REJECTCOUNT`` command. + - ``.rejecttimeout``: The ``TRIGger:B:RESET:REJECTTIMEout`` command. + - ``.source``: The ``TRIGger:B:RESET:SOUrce`` command. + - ``.state``: The ``TRIGger:B:RESET:STATE`` command. + - ``.threshold``: The ``TRIGger:B:RESET:THReshold`` command. + - ``.timeout``: The ``TRIGger:B:RESET:TIMEOut`` command. + - ``.totalcount``: The ``TRIGger:B:RESET:TOTALCOUNT`` command. + - ``.transition``: The ``TRIGger:B:RESET:TRANsition`` command. + - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._acceptcount = TriggerBResetAcceptcount(device, f"{self._cmd_syntax}:ACCEPTCOUNT") + self._accepttimeout = TriggerBResetAccepttimeout( + device, f"{self._cmd_syntax}:ACCEPTTIMEout" + ) + self._ratio = TriggerBResetRatio(device, f"{self._cmd_syntax}:RATIO") + self._ratioenable = TriggerBResetRatioenable(device, f"{self._cmd_syntax}:RATIOENable") + self._rejectcount = TriggerBResetRejectcount(device, f"{self._cmd_syntax}:REJECTCOUNT") + self._rejecttimeout = TriggerBResetRejecttimeout( + device, f"{self._cmd_syntax}:REJECTTIMEout" + ) + self._source = TriggerBResetSource(device, f"{self._cmd_syntax}:SOUrce") + self._state = TriggerBResetState(device, f"{self._cmd_syntax}:STATE") + self._threshold = TriggerBResetThreshold(device, f"{self._cmd_syntax}:THReshold") + self._timeout = TriggerBResetTimeout(device, f"{self._cmd_syntax}:TIMEOut") + self._totalcount = TriggerBResetTotalcount(device, f"{self._cmd_syntax}:TOTALCOUNT") + self._transition = TriggerBResetTransition(device, f"{self._cmd_syntax}:TRANsition") + self._type = TriggerBResetType(device, f"{self._cmd_syntax}:TYPe") + + @property + def acceptcount(self) -> TriggerBResetAcceptcount: + """Return the ``TRIGger:B:RESET:ACCEPTCOUNT`` command. + + **Description:** + - This command queries the Reset Accept Count for a sequence trigger reset by the ACCept + and REJect Reset Types. These are often referred to as the Validation/Invalidation + Triggers. The AcceptCount is equivalent to the number of acquired waveforms, and is + part of the equation TotalCount = AcceptCount + RejectCount used to form the ratio of + accepted to total triggers that is optionally displayed when Validation/Invalidation + Triggers are employed. The Accept Count is always equal the Acquisition Count. For + example, if the Reset Type Accept is active, the AcceptCount is the number of triggers + that have been accepted, a query only value determined by the trigger system. Any + acquired waveform obtained by Reset Type Accept or Reject is positioned at the + A-Event. For example, if Reset Type Reject is active, the AcceptCount is still the + number of triggers that have been accepted, a query only value determined by the + trigger system. Any acquired waveform obtained by Reset Type Accept or Reject is + positioned at the A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:ACCEPTCOUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:ACCEPTCOUNT?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:ACCEPTCOUNT? + """ + return self._acceptcount + + @property + def accepttimeout(self) -> TriggerBResetAccepttimeout: + """Return the ``TRIGger:B:RESET:ACCEPTTIMEout`` command. + + **Description:** + - This command sets or queries the Reset Accept Time Out timer for a sequence trigger + reset by the ACCept Reset Type. This is often referred to as the Validation Trigger. + The Accept Time Out indicates the time, as measured from the A-Event to the B-Event, + in which the B-Event must occur in order to accept the A-Event. When the B-Event + occurs within the Accept Time Out, the scope triggers on the A-Event, because the + B-Event is interpreted as a validation of the A-Event. Note that the acquired waveform + trigger position is location at the A-Event, contrary to the behavior of most A->B + Sequence triggers. In this way, the B-Event validates the A-Event. If the B-Event does + not occur within the Accept Time Out, the scope again starts waiting for an A-Event to + occur, i.e., no trigger occurs and the acquisition is not retained. For example, if + the Accept Time Out is set to 5.2 µs, the A-Event will trigger the scope only if the + B-Event occurs before 5.2 µs has elapsed after the A-Event. Any acquired waveform is + positioned at the A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:ACCEPTTIMEout?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:ACCEPTTIMEout?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:RESET:ACCEPTTIMEout value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:ACCEPTTIMEout + - TRIGger:B:RESET:ACCEPTTIMEout? + + **Info:** + - ```` specifies the Accept Time Out time. + """ + return self._accepttimeout + + @property + def ratio(self) -> TriggerBResetRatio: + """Return the ``TRIGger:B:RESET:RATIO`` command. + + **Description:** + - This command queries the (floating point) Ratio of accepted to total triggers for a + sequence trigger reset by the ACCepts and REJects Reset Types. These are often + referred to as the Validation/Invalidation Triggers. The Ratio = Accepted Count / + Total Count, and is a query only value generated by the trigger system. The TotalCount + = AcceptCount + RejectCount. For example, if the Reset Type Accept is active, and 100 + triggers have been accepted and 100 trigger have been rejected, then the ratio = + acceptCount / totalCount, then the ratio is 50%. The ratio is expressed in scientific + notation. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:RATIO?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:RATIO?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:RATIO? + """ + return self._ratio + + @property + def ratioenable(self) -> TriggerBResetRatioenable: + """Return the ``TRIGger:B:RESET:RATIOENable`` command. + + **Description:** + - This command sets or queries the Ratio Enable enumerated value (OFF/ON). If ON, a + ratio is displayed in the graticule area. The displayed value represents the ratio of + accepted to total triggers for a sequence trigger reset by the ACCept and REJect Reset + Types. These are often referred to as the Validation/Invalidation Triggers. The + default value is ON. For example, if the Reset Type Accept is active, and RatioEnable + is ON, the ratio of accepted to total triggers is displayed in the graticule area as a + percent. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:RATIOENable?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:RATIOENable?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:RATIOENable value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:RATIOENable + - TRIGger:B:RESET:RATIOENable? + """ + return self._ratioenable + + @property + def rejectcount(self) -> TriggerBResetRejectcount: + """Return the ``TRIGger:B:RESET:REJECTCOUNT`` command. + + **Description:** + - This command queries the Reset Reject Count for a sequence trigger reset by the ACCept + and REJect Reset Types. These are often referred to as the Validation/Invalidation + Triggers. The RejectCount is the number of triggers rejected when these triggers are + active, and is part of the equation TotalCount = AcceptCount + RejectCount used to + form the ratio of accepted to total triggers that is optionally displayed when + Validation/Invalidation Triggers are employed. For example, if the Reset Type Accept + is active, the RejectCount is the number of triggers that have been rejected, a query + only value determined by the trigger system. For example, if Reset Type Reject is + active, the RejectCount is the number of triggers that have been rejected, a query + only value determined by the trigger system. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:REJECTCOUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:REJECTCOUNT?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:REJECTCOUNT? + """ + return self._rejectcount + + @property + def rejecttimeout(self) -> TriggerBResetRejecttimeout: + """Return the ``TRIGger:B:RESET:REJECTTIMEout`` command. + + **Description:** + - This command sets or queries the Reset Reject Time Out timer for a sequence trigger + reset by the REJect Reset Type. This is often referred to as the Invalidation Trigger. + The Reject Time Out indicates the time measured from the A-Event in which the B-Event + must occur in order to reject the A-Event. When the B-Event does not occur within the + Reject Time Out, the scope triggers on the A-Event, because the B-Event is interpreted + as an invalidation or rejection of the A-Event. If the B-Event does occur within the + Reject Time Out, the scope again starts waiting for an A-Event to occur, i.e., no + trigger occurs and no acquisition is retained. Note that the acquired waveform trigger + position is located at the A-Event, contrary to the behavior of most A->B Sequence + triggers. For example, if the Reject Time Out is set to 5.2 µS, the A-Event will + trigger the scope only if the B-Event does not occur before 5.2 µS has elapsed after + the A-Event. The acquired waveform is positioned at the A-Event. When the B-Event does + occur before the 5.2 µs has elapsed, then the scope does not trigger, and again starts + waiting for an A-Event to occur. In this way the B-Event invalidates an A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:REJECTTIMEout?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:REJECTTIMEout?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:RESET:REJECTTIMEout value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:REJECTTIMEout + - TRIGger:B:RESET:REJECTTIMEout? + + **Info:** + - ```` specifies the Reject Time Out time. + """ + return self._rejecttimeout + + @property + def source(self) -> TriggerBResetSource: + """Return the ``TRIGger:B:RESET:SOUrce`` command. + + **Description:** + - This command sets or queries the trigger source for the A→B sequential trigger reset + feature, except for the Timeout trigger type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:SOUrce {CH|AUXiliary} + - TRIGger:B:RESET:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels as the reset source. Input channels are + specified by x and can be 1, 2, 3, or 4. + - ``AUXiliary`` specifies an external trigger (using the Auxiliary Trigger Input + connector) as the reset source. + """ + return self._source + + @property + def state(self) -> TriggerBResetState: + """Return the ``TRIGger:B:RESET:STATE`` command. + + **Description:** + - This command sets or queries the trigger reset state for the A→B sequential State + trigger reset feature. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:STATE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:STATE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:STATE {HIGH|LOW} + - TRIGger:B:RESET:STATE? + + **Info:** + - ``HIGH`` sets the condition for the state sequential trigger reset to high. + - ``LOW`` sets the condition for the state sequential trigger reset to low. + """ + return self._state + + @property + def threshold(self) -> TriggerBResetThreshold: + """Return the ``TRIGger:B:RESET:THReshold`` command. + + **Description:** + - This command sets or queries the trigger threshold for the A→B sequential trigger + reset, except for the Timeout reset type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:THReshold?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:THReshold value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:THReshold {ECL|TTL|} + - TRIGger:B:RESET:THReshold? + + **Info:** + - ``ECL`` sets the reset threshold to ECL voltage levels. + - ``TTL`` sets the reset threshold to TTL voltage levels. + - ```` sets the reset threshold in volts. + """ + return self._threshold + + @property + def timeout(self) -> TriggerBResetTimeout: + """Return the ``TRIGger:B:RESET:TIMEOut`` command. + + **Description:** + - This command sets or queries the reset timer for a sequential timeout trigger reset. + For example, if the timeout is set to 1 s, this additional reset time begins following + an A trigger event and runs sequentially with any B Trigger Delay. If a B trigger + event is not found before it expires, the instrument searches for a new A event + trigger sequence. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TIMEOut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TIMEOut?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:TIMEOut value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TIMEOut + - TRIGger:B:RESET:TIMEOut? + + **Info:** + - ```` specifies the reset time. + """ + return self._timeout + + @property + def totalcount(self) -> TriggerBResetTotalcount: + """Return the ``TRIGger:B:RESET:TOTALCOUNT`` command. + + **Description:** + - This command queries the Reset Total Count for a sequence trigger reset by the ACCept + and REJect Reset Types. These are often referred to as the Validation/Invalidation + Triggers. The TotalCount is the sum of the accepted and rejected triggers when the + Reset or Accept Reset Types are active, and is part of the equation TotalCount = + AcceptCount + RejectCount used to form the ratio of accepted to total triggers that is + optionally displayed when Validation/Invalidation Triggers are employed. For example, + if the Reset Type Accept is active, the TotalCount is the sum of the accepted and + rejected triggers processed by the Accept Reset Type, a query only value determined by + the trigger system. Any acquired waveform obtained by Accept or Reject Reset Types is + positioned at the A-Event. For example, if the Reset Type Reject is active, the + TotalCount is the sum of the accepted and rejected triggers processed by the Reject + Reset Type, a query only value determined by the trigger system. Any acquired waveform + obtained by Accept or Reject Reset Types is positioned at the A-Event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TOTALCOUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TOTALCOUNT?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TOTALCOUNT? + """ + return self._totalcount + + @property + def transition(self) -> TriggerBResetTransition: + """Return the ``TRIGger:B:RESET:TRANsition`` command. + + **Description:** + - This command sets or queries the type of transition required for a Transition trigger + reset. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TRANsition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TRANsition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:TRANsition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TRANsition {RISe|FALL} + - TRIGger:B:RESET:TRANsition? + + **Info:** + - ``RISe`` indicates that a reset occurs when the trigger rises above the threshold + level. + - ``FALL`` indicates that a reset occurs when the trigger falls below the threshold + level. + """ + return self._transition + + @property + def type(self) -> TriggerBResetType: + """Return the ``TRIGger:B:RESET:TYPe`` command. + + **Description:** + - This command sets or queries the type of A→B sequential trigger reset. If the B + trigger reset is active, the reset criteria are part of the B triggering sequence. If + the reset conditions defined by the reset type are not met, the instrument must start + over searching for a new occurrence of the A event. You must identify a trigger Source + and Threshold for each reset type, except for the Timeout, Accept, and Reject trigger + types. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET:TYPe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:RESET:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:RESET:TYPe {NONe|TIMEOut|STATE|TRANsition|ACCepts|REJects} + - TRIGger:B:RESET:TYPe? + + **Info:** + - ``NONe`` defeats the trigger reset feature. + - ``TIMEOut`` initiates a reset if the timeout conditions specified by + ``TRIGger:B:RESET:TIMEOut`` are met. + - ``STATE`` initiates a reset if the state conditions specified by TRIGger: + ``B:RESET:SOUrce``, ``TRIGger:B:RESET:STATE``, and ``TRIGger:B:RESET:THReshold`` are + met. + - ``TRANsition`` initiates a reset if the transition conditions specified by + ``TRIGger:B:RESET:SOUrce``, ``TRIGger:B:RESET:TRANsition``, and + ``TRIGger:B:RESET:THReshold`` are met. + - ``ACCepts`` initiates a trigger at the A-Event if the B-Event occurs before the Accept + Timeout, as measured from the A- to the B-Event. That is, the B-Event Accepts + (validates) the A- Event. Otherwise the oscilloscope does not trigger. The trigger + location is at the A-Event. + - ``REJects`` initiates a trigger if the Reject Timeout expires before the B-Event + occurs, as measured from the A- to the B-Event. That is, reception of the B-Event + Rejects (invalidates) the A-Event. Otherwise the oscilloscope does not trigger (if the + B-Event occurs before the Reject Timeout). The trigger location is at the A-Event. + """ + return self._type + + +class TriggerBReady(SCPICmdRead): + """The ``TRIGger:B:READY`` command. + + **Description:** + - This command queries the trigger ready state and provides the immediate state from the + trigger system. It is a more synchronous means of determining when the oscilloscope is + ready to trigger. The ``TRIGGER:STATE`` reflects a less-frequently updated status of the + trigger LEDs on the instrument front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:READY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:READY?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:READY? + """ + + +class TriggerBPulseWindowWidth(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:WIDTH`` command. + + **Description:** + - This command sets or queries the minimum width for a window violation. This command is + equivalent to selecting Window Setup from the Trig menu, selecting Wider than in the + Trigger When box, and setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:WIDTH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:WIDTH?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:WIDTH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:WIDTH + - TRIGger:B:PULse:WINdow:WIDTH? + + **Info:** + - ```` argument specifies the minimum width in seconds. + """ + + +class TriggerBPulseWindowWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:WHEn`` command. + + **Description:** + - This command set or queries the + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:WHEn {OCCurs|WIDERthan} + - TRIGger:B:PULse:WINdow:WHEn? + """ + + +class TriggerBPulseWindowType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:TYPe`` command. + + **Description:** + - This command set or queries the + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:TYPe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:TYPe {INSide|OUTside} + - TRIGger:B:PULse:WINdow:TYPe? + """ + + +class TriggerBPulseWindowThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the window trigger. This command is + equivalent to selecting Window Setup from the Trig menu and setting the Lower Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold:LOW + - TRIGger:B:PULse:WINdow:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerBPulseWindowThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse window trigger. This command is + equivalent to selecting Window Setup from the Trig menu and setting the window trigger + Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold:HIGH + - TRIGger:B:PULse:WINdow:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerBPulseWindowThresholdBoth(SCPICmdWrite): + """The ``TRIGger:B:PULse:WINdow:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the window + trigger. This command is equivalent to selecting Window Setup from the Trig menu and then + setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` argument sets the upper and the lower threshold to the nominal TTL voltage levels. + - ``ECL`` argument sets the upper and the lower threshold to the nominal ECL voltage levels. + """ + + +class TriggerBPulseWindowThreshold(SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the window trigger. + This command query is equivalent to selecting Window Setup from the Trig menu and viewing + the window trigger Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:THReshold?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold? + + Properties: + - ``.both``: The ``TRIGger:B:PULse:WINdow:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:B:PULse:WINdow:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._both = TriggerBPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") + self._high = TriggerBPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerBPulseWindowThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def both(self) -> TriggerBPulseWindowThresholdBoth: + """Return the ``TRIGger:B:PULse:WINdow:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the + window trigger. This command is equivalent to selecting Window Setup from the Trig + menu and then setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` argument sets the upper and the lower threshold to the nominal TTL voltage + levels. + - ``ECL`` argument sets the upper and the lower threshold to the nominal ECL voltage + levels. + """ + return self._both + + @property + def high(self) -> TriggerBPulseWindowThresholdHigh: + """Return the ``TRIGger:B:PULse:WINdow:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse window trigger. This + command is equivalent to selecting Window Setup from the Trig menu and setting the + window trigger Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold:HIGH + - TRIGger:B:PULse:WINdow:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._high + + @property + def low(self) -> TriggerBPulseWindowThresholdLow: + """Return the ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the window trigger. This command is + equivalent to selecting Window Setup from the Trig menu and setting the Lower Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold:LOW + - TRIGger:B:PULse:WINdow:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._low + + +class TriggerBPulseWindowQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:QUAlify`` command. + + **Description:** + - This command sets or queries the Window Trigger qualification. This is equivalent to + selecting Window Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Window drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:WINdow:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerBPulseWindowPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the specified channel. + The oscilloscope triggers only when the signal exits the window. The command is available + only when the Window Event is set to Inside > t and not available for the rest of the + window events. The logic selection is available only when the polarity is set to Either. + is the search number or channel number. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WINdow:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:WINdow:POLarity:CH? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + """ + + +class TriggerBPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:POLarity`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the selected trigger + Source. The instrument triggers when the signal exits the window. The command is available + only when the option Inside > t is selected in the Window Event drop-dowm list and not + available for the rest of the window events. The logic selection is available only when + the polarity is set to Either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:WINdow:POLarity? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + + Properties: + - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBPulseWindowPolarityChannel]: + """Return the ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the specified + channel. The oscilloscope triggers only when the signal exits the window. The command + is available only when the Window Event is set to Inside > t and not available for the + rest of the window events. The logic selection is available only when the polarity is + set to Either. is the search number or channel number. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WINdow:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:WINdow:POLarity:CH? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + """ + return self._ch + + +class TriggerBPulseWindowEvent(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow:EVENT`` command. + + **Description:** + - This command sets or queries the window trigger event. This command is equivalent to + selecting Window Setup from the Trig menu and selecting from the Window Event box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:EVENT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:EVENT?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:EVENT value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:EVENT {OUTSIDEGreater|INSIDEGreater|ENTERSWindow|EXITSWindow} + - TRIGger:B:PULse:WINdow:EVENT? + + **Info:** + - ``OUTSIDEGreater`` specifies a trigger event when the signal leaves the window defined by + the threshold levels for the time specified by Width. + - ``INSIDEGreater`` specifies a trigger event when the signal enters the window defined by + the threshold levels for the time specified by Width. + - ``ENTERSWindow`` specifies a trigger event when the signal enters the window defined by + the threshold levels. + - ``EXITSWindow`` specifies a trigger event when the signal leaves the window defined by the + threshold levels. + """ + + +class TriggerBPulseWindow(SCPICmdRead): + """The ``TRIGger:B:PULse:WINdow`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.type``: The ``TRIGger:B:PULse:WINdow:TYPe`` command. + - ``.when``: The ``TRIGger:B:PULse:WINdow:WHEn`` command. + - ``.event``: The ``TRIGger:B:PULse:WINdow:EVENT`` command. + - ``.polarity``: The ``TRIGger:B:PULse:WINdow:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:WINdow:QUAlify`` command. + - ``.threshold``: The ``TRIGger:B:PULse:WINdow:THReshold`` command. + - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._event = TriggerBPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") + self._polarity = TriggerBPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerBPulseWindowQualify(device, f"{self._cmd_syntax}:QUAlify") + self._threshold = TriggerBPulseWindowThreshold(device, f"{self._cmd_syntax}:THReshold") + self._type = TriggerBPulseWindowType(device, f"{self._cmd_syntax}:TYPe") + self._when = TriggerBPulseWindowWhen(device, f"{self._cmd_syntax}:WHEn") + self._width = TriggerBPulseWindowWidth(device, f"{self._cmd_syntax}:WIDTH") + + @property + def event(self) -> TriggerBPulseWindowEvent: + """Return the ``TRIGger:B:PULse:WINdow:EVENT`` command. + + **Description:** + - This command sets or queries the window trigger event. This command is equivalent to + selecting Window Setup from the Trig menu and selecting from the Window Event box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:EVENT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:EVENT?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:EVENT value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:EVENT {OUTSIDEGreater|INSIDEGreater|ENTERSWindow|EXITSWindow} + - TRIGger:B:PULse:WINdow:EVENT? + + **Info:** + - ``OUTSIDEGreater`` specifies a trigger event when the signal leaves the window defined + by the threshold levels for the time specified by Width. + - ``INSIDEGreater`` specifies a trigger event when the signal enters the window defined + by the threshold levels for the time specified by Width. + - ``ENTERSWindow`` specifies a trigger event when the signal enters the window defined + by the threshold levels. + - ``EXITSWindow`` specifies a trigger event when the signal leaves the window defined by + the threshold levels. + """ + return self._event + + @property + def polarity(self) -> TriggerBPulseWindowPolarity: + """Return the ``TRIGger:B:PULse:WINdow:POLarity`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the selected trigger + Source. The instrument triggers when the signal exits the window. The command is + available only when the option Inside > t is selected in the Window Event drop-dowm + list and not available for the rest of the window events. The logic selection is + available only when the polarity is set to Either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:WINdow:POLarity? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:PULse:WINdow:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerBPulseWindowQualify: + """Return the ``TRIGger:B:PULse:WINdow:QUAlify`` command. + + **Description:** + - This command sets or queries the Window Trigger qualification. This is equivalent to + selecting Window Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Window drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:WINdow:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def threshold(self) -> TriggerBPulseWindowThreshold: + """Return the ``TRIGger:B:PULse:WINdow:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the window trigger. + This command query is equivalent to selecting Window Setup from the Trig menu and + viewing the window trigger Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WINdow:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:THReshold? + + Sub-properties: + - ``.both``: The ``TRIGger:B:PULse:WINdow:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:B:PULse:WINdow:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:B:PULse:WINdow:THReshold:LOW`` command. + """ + return self._threshold + + @property + def type(self) -> TriggerBPulseWindowType: + """Return the ``TRIGger:B:PULse:WINdow:TYPe`` command. + + **Description:** + - This command set or queries the + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:TYPe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:TYPe {INSide|OUTside} + - TRIGger:B:PULse:WINdow:TYPe? + """ + return self._type + + @property + def when(self) -> TriggerBPulseWindowWhen: + """Return the ``TRIGger:B:PULse:WINdow:WHEn`` command. + + **Description:** + - This command set or queries the + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WINdow:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:WHEn {OCCurs|WIDERthan} + - TRIGger:B:PULse:WINdow:WHEn? + """ + return self._when + + @property + def width(self) -> TriggerBPulseWindowWidth: + """Return the ``TRIGger:B:PULse:WINdow:WIDTH`` command. + + **Description:** + - This command sets or queries the minimum width for a window violation. This command is + equivalent to selecting Window Setup from the Trig menu, selecting Wider than in the + Trigger When box, and setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow:WIDTH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow:WIDTH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WINdow:WIDTH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WINdow:WIDTH + - TRIGger:B:PULse:WINdow:WIDTH? + + **Info:** + - ```` argument specifies the minimum width in seconds. + """ + return self._width + + +class TriggerBPulseWidthWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth:WHEn`` command. + + **Description:** + - This command sets or queries whether to trigger on a pulse width that falls outside (or + within) the specified range of limits. You can define or query trigger pulse width upper + and lower limits using the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and + ``TRIGger:A:PULse:WIDth:LOWLimit`` commands. This command is equivalent to selecting Width + Setup from the Trig menu and then choosing from the Trig When drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WIDth:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:WHEn {OUTside|WIThin} + - TRIGger:B:PULse:WIDth:WHEn? + + **Info:** + - ``OUTside`` argument causes a trigger event the duration of the pulse is greater than the + high limit or less than the low limit specified. The high and low limits are specified + with the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and ``TRIGger:A:PULse:WIDth:LOWLimit`` + commands respectively. + - ``WIThin`` argument causes a trigger event when the duration of the pulse is within the + high and low limits. The high and low limits are specified with the + ``TRIGger:A:PULse:WIDth:HIGHLimit`` and ``TRIGger:A:PULse:WIDth:LOWLimit`` command + respectively. + """ + + +class TriggerBPulseWidthQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth:QUAlify`` command. + + **Description:** + - This command sets or queries the Width Trigger qualification. This is equivalent to + selecting Width Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Width drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:QUAlify?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WIDth:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:WIDth:QUAlify? + + **Info:** + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerBPulseWidthPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse width trigger for the + channel. This command is equivalent to selecting Width Setup from the Trig menu and then + selecting the pulse width trigger Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WIDth:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:POLarity:CH {NEGAtive|POSITIVe} + - TRIGger:B:PULse:WIDth:POLarity:CH? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + """ + + +class TriggerBPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and selecting the Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WIDth:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:POLarity {NEGAtive|POSITIVe} + - TRIGger:B:PULse:WIDth:POLarity? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + + Properties: + - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBPulseWidthPolarityChannel]: + """Return the ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse width trigger for the + channel. This command is equivalent to selecting Width Setup from the Trig menu and + then selecting the pulse width trigger Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WIDth:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:POLarity:CH {NEGAtive|POSITIVe} + - TRIGger:B:PULse:WIDth:POLarity:CH? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + """ + return self._ch + + +class TriggerBPulseWidthLowpassfilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turn off the low­pass filter feature for pulse width trigger. + This allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:LOWPASSfilter?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:WIDth:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + + +class TriggerBPulseWidthLowlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth:LOWLimit`` command. + + **Description:** + - This command sets or queries the lower limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the pulse Lower Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:LOWLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WIDth:LOWLimit value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:LOWLimit + - TRIGger:B:PULse:WIDth:LOWLimit? + + **Info:** + - ```` specifies the A pulse width trigger lower limit in seconds. + """ + + +class TriggerBPulseWidthHighlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth:HIGHLimit`` command. + + **Description:** + - This command sets or queries the upper limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the Upper Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:HIGHLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:HIGHLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WIDth:HIGHLimit value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:HIGHLimit + - TRIGger:B:PULse:WIDth:HIGHLimit? + + **Info:** + - ```` specifies the width trigger upper limit in seconds. + """ + + +class TriggerBPulseWidth(SCPICmdRead): + """The ``TRIGger:B:PULse:WIDth`` command. + + **Description:** + - This query-only command returns the width parameters for the pulse width trigger. This + command is equivalent to selecting Width Setup from the Trig menu and then viewing the + current pulse width trigger Lower Limit, Upper Limit, Trig When and Polarity settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth? + + Properties: + - ``.highlimit``: The ``TRIGger:B:PULse:WIDth:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:B:PULse:WIDth:LOWLimit`` command. + - ``.lowpassfilter``: The ``TRIGger:B:PULse:WIDth:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:B:PULse:WIDth:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:WIDth:QUAlify`` command. + - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._highlimit = TriggerBPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") + self._lowlimit = TriggerBPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") + self._lowpassfilter = TriggerBPulseWidthLowpassfilter( + device, f"{self._cmd_syntax}:LOWPASSfilter" + ) + self._polarity = TriggerBPulseWidthPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerBPulseWidthQualify(device, f"{self._cmd_syntax}:QUAlify") + self._when = TriggerBPulseWidthWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def highlimit(self) -> TriggerBPulseWidthHighlimit: + """Return the ``TRIGger:B:PULse:WIDth:HIGHLimit`` command. + + **Description:** + - This command sets or queries the upper limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the Upper Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:HIGHLimit?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:HIGHLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:HIGHLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:HIGHLimit + - TRIGger:B:PULse:WIDth:HIGHLimit? + + **Info:** + - ```` specifies the width trigger upper limit in seconds. + """ + return self._highlimit + + @property + def lowlimit(self) -> TriggerBPulseWidthLowlimit: + """Return the ``TRIGger:B:PULse:WIDth:LOWLimit`` command. + + **Description:** + - This command sets or queries the lower limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the pulse Lower + Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:LOWLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:LOWLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:LOWLimit + - TRIGger:B:PULse:WIDth:LOWLimit? + + **Info:** + - ```` specifies the A pulse width trigger lower limit in seconds. + """ + return self._lowlimit + + @property + def lowpassfilter(self) -> TriggerBPulseWidthLowpassfilter: + """Return the ``TRIGger:B:PULse:WIDth:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turn off the low­pass filter feature for pulse width trigger. + This allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:WIDth:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:WIDth:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + return self._lowpassfilter + + @property + def polarity(self) -> TriggerBPulseWidthPolarity: + """Return the ``TRIGger:B:PULse:WIDth:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and selecting the Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:POLarity {NEGAtive|POSITIVe} + - TRIGger:B:PULse:WIDth:POLarity? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:PULse:WIDth:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerBPulseWidthQualify: + """Return the ``TRIGger:B:PULse:WIDth:QUAlify`` command. + + **Description:** + - This command sets or queries the Width Trigger qualification. This is equivalent to + selecting Width Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Width drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:WIDth:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:WIDth:QUAlify? + + **Info:** + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def when(self) -> TriggerBPulseWidthWhen: + """Return the ``TRIGger:B:PULse:WIDth:WHEn`` command. + + **Description:** + - This command sets or queries whether to trigger on a pulse width that falls outside + (or within) the specified range of limits. You can define or query trigger pulse width + upper and lower limits using the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and + ``TRIGger:A:PULse:WIDth:LOWLimit`` commands. This command is equivalent to selecting + Width Setup from the Trig menu and then choosing from the Trig When drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:WIDth:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth:WHEn {OUTside|WIThin} + - TRIGger:B:PULse:WIDth:WHEn? + + **Info:** + - ``OUTside`` argument causes a trigger event the duration of the pulse is greater than + the high limit or less than the low limit specified. The high and low limits are + specified with the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and + ``TRIGger:A:PULse:WIDth:LOWLimit`` commands respectively. + - ``WIThin`` argument causes a trigger event when the duration of the pulse is within + the high and low limits. The high and low limits are specified with the + ``TRIGger:A:PULse:WIDth:HIGHLimit`` and ``TRIGger:A:PULse:WIDth:LOWLimit`` command + respectively. + """ + return self._when + + +class TriggerBPulseTransitionWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:WHEn`` command. + + **Description:** + - This command sets or queries whether to check for a transitioning signal that is faster or + slower than the specified delta time. This is equivalent to selecting Transition Setup + from the Trig menu and choosing the Trigger When Transition Time setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TRANsition:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:TRANsition:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:WHEn {FASTERthan|SLOWERthan} + - TRIGger:B:PULse:TRANsition:WHEn? + + **Info:** + - ``FASTERthan`` sets the trigger to occur when the transitioning signal is faster than the + set volts/second rate. + - ``SLOWERthan`` sets the trigger to occur when the transitioning signal is slower than the + set volts/second rate. + """ + + +class TriggerBPulseTransitionThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower (most negative) transition trigger threshold. This + command is equivalent to selecting Transition Setup from the Trig menu and setting the + desired Lower Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold:LOW + - TRIGger:B:PULse:TRANsition:THReshold:LOW? + + **Info:** + - ```` specifies the lower threshold in volts. + """ + + +class TriggerBPulseTransitionThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper (most positive) transition trigger threshold. This + command is equivalent to selecting Transition Setup from the Trig menu and then setting + the desired Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold:HIGH + - TRIGger:B:PULse:TRANsition:THReshold:HIGH? + + **Info:** + - ```` specifies the upper threshold in volts. + """ + + +class TriggerBPulseTransitionThresholdBoth(SCPICmdWrite): + """The ``TRIGger:B:PULse:TRANsition:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower thresholds for the transition + trigger. This command is equivalent to selecting Transition Setup from the Trig menu and + setting the desired Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and the lower threshold to the nominal ECL voltage levels. + """ + + +class TriggerBPulseTransitionThreshold(SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower threshold limits for the transition + time trigger. This command is equivalent to selecting Transition Setup from the Trig menu + and viewing the Upper Level and Lower Level voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold? + + Properties: + - ``.both``: The ``TRIGger:B:PULse:TRANsition:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:B:PULse:TRANsition:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._both = TriggerBPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") + self._high = TriggerBPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerBPulseTransitionThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def both(self) -> TriggerBPulseTransitionThresholdBoth: + """Return the ``TRIGger:B:PULse:TRANsition:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower thresholds for the transition + trigger. This command is equivalent to selecting Transition Setup from the Trig menu + and setting the desired Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and the lower threshold to the nominal ECL voltage levels. + """ + return self._both + + @property + def high(self) -> TriggerBPulseTransitionThresholdHigh: + """Return the ``TRIGger:B:PULse:TRANsition:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper (most positive) transition trigger threshold. + This command is equivalent to selecting Transition Setup from the Trig menu and then + setting the desired Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:HIGH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold:HIGH + - TRIGger:B:PULse:TRANsition:THReshold:HIGH? + + **Info:** + - ```` specifies the upper threshold in volts. + """ + return self._high + + @property + def low(self) -> TriggerBPulseTransitionThresholdLow: + """Return the ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower (most negative) transition trigger threshold. + This command is equivalent to selecting Transition Setup from the Trig menu and + setting the desired Lower Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold:LOW + - TRIGger:B:PULse:TRANsition:THReshold:LOW? + + **Info:** + - ```` specifies the lower threshold in volts. + """ + return self._low + + +class TriggerBPulseTransitionQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:QUAlify`` command. + + **Description:** + - This command sets or queries the Transition Time Trigger qualification. This is equivalent + to selecting Transition Setup from the Trig menu and selecting Occurs, Logic, or Bus in + the Trigger If Transition drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TRANsition:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:TRANsition:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any violations occur. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerBPulseTransitionPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse transition trigger for the + channel. This command is equivalent to selecting Transition Setup from the Trig menu and + then choosing from the Polarity pull-down list for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:TRANsition:POLarity:CH? + + **Info:** + - ``EITher`` indicates either positive or negative polarity. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) to + lower (most negative) level for transition triggering to occur. + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) to + higher (post positive) level for transition triggering to occur. + """ + + +class TriggerBPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the transition trigger. This command is + equivalent to selecting Transition Setup from the Trig menu and choosing from the Polarity + drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TRANsition:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:TRANsition:POLarity? + + **Info:** + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) to + higher (most positive) level for transition triggering to occur. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) to + lower (most negative) level for transition triggering to occur. + - ``EITher`` indicates either positive or negative polarity. + + Properties: + - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBPulseTransitionPolarityChannel]: + """Return the ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse transition trigger for + the channel. This command is equivalent to selecting Transition Setup from the Trig + menu and then choosing from the Polarity pull-down list for the channel. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:TRANsition:POLarity:CH? + + **Info:** + - ``EITher`` indicates either positive or negative polarity. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) + to lower (most negative) level for transition triggering to occur. + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) + to higher (post positive) level for transition triggering to occur. + """ + return self._ch + + +class TriggerBPulseTransitionDeltatime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition:DELTATime`` command. + + **Description:** + - This command sets or queries the delta time used in calculating the transition value for + the transition trigger. This is equivalent to selecting Transition Setup from the Trig + menu and setting the Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:DELTATime?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:DELTATime?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:DELTATime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:DELTATime + - TRIGger:B:PULse:TRANsition:DELTATime? + + **Info:** + - ```` specifies the delta time in seconds. + """ + + +class TriggerBPulseTransition(SCPICmdRead): + """The ``TRIGger:B:PULse:TRANsition`` command. + + **Description:** + - This query-only command returns delta time, polarity, and both upper and lower threshold + limits for the transition time trigger. This command is equivalent to selecting Transition + Setup from the Trig menu and then viewing the current transition settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TRANsition?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition? + + Properties: + - ``.deltatime``: The ``TRIGger:B:PULse:TRANsition:DELTATime`` command. + - ``.polarity``: The ``TRIGger:B:PULse:TRANsition:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:TRANsition:QUAlify`` command. + - ``.threshold``: The ``TRIGger:B:PULse:TRANsition:THReshold`` command. + - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._deltatime = TriggerBPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") + self._polarity = TriggerBPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerBPulseTransitionQualify(device, f"{self._cmd_syntax}:QUAlify") + self._threshold = TriggerBPulseTransitionThreshold(device, f"{self._cmd_syntax}:THReshold") + self._when = TriggerBPulseTransitionWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def deltatime(self) -> TriggerBPulseTransitionDeltatime: + """Return the ``TRIGger:B:PULse:TRANsition:DELTATime`` command. + + **Description:** + - This command sets or queries the delta time used in calculating the transition value + for the transition trigger. This is equivalent to selecting Transition Setup from the + Trig menu and setting the Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:DELTATime?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:DELTATime?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:DELTATime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:DELTATime + - TRIGger:B:PULse:TRANsition:DELTATime? + + **Info:** + - ```` specifies the delta time in seconds. + """ + return self._deltatime + + @property + def polarity(self) -> TriggerBPulseTransitionPolarity: + """Return the ``TRIGger:B:PULse:TRANsition:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the transition trigger. This command is + equivalent to selecting Transition Setup from the Trig menu and choosing from the + Polarity drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:TRANsition:POLarity? + + **Info:** + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) + to higher (most positive) level for transition triggering to occur. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) + to lower (most negative) level for transition triggering to occur. + - ``EITher`` indicates either positive or negative polarity. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:PULse:TRANsition:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerBPulseTransitionQualify: + """Return the ``TRIGger:B:PULse:TRANsition:QUAlify`` command. + + **Description:** + - This command sets or queries the Transition Time Trigger qualification. This is + equivalent to selecting Transition Setup from the Trig menu and selecting Occurs, + Logic, or Bus in the Trigger If Transition drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:QUAlify?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:QUAlify?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:TRANsition:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any violations occur. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def threshold(self) -> TriggerBPulseTransitionThreshold: + """Return the ``TRIGger:B:PULse:TRANsition:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower threshold limits for the + transition time trigger. This command is equivalent to selecting Transition Setup from + the Trig menu and viewing the Upper Level and Lower Level voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:THReshold? + + Sub-properties: + - ``.both``: The ``TRIGger:B:PULse:TRANsition:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:B:PULse:TRANsition:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:B:PULse:TRANsition:THReshold:LOW`` command. + """ + return self._threshold + + @property + def when(self) -> TriggerBPulseTransitionWhen: + """Return the ``TRIGger:B:PULse:TRANsition:WHEn`` command. + + **Description:** + - This command sets or queries whether to check for a transitioning signal that is + faster or slower than the specified delta time. This is equivalent to selecting + Transition Setup from the Trig menu and choosing the Trigger When Transition Time + setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition:WHEn?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TRANsition:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TRANsition:WHEn value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition:WHEn {FASTERthan|SLOWERthan} + - TRIGger:B:PULse:TRANsition:WHEn? + + **Info:** + - ``FASTERthan`` sets the trigger to occur when the transitioning signal is faster than + the set volts/second rate. + - ``SLOWERthan`` sets the trigger to occur when the transitioning signal is slower than + the set volts/second rate. + """ + return self._when + + +class TriggerBPulseTimeoutTime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. + + **Description:** + - This command sets or queries the pulse timeout trigger time (measured in seconds). This + command is equivalent to selecting Timeout Setup from the Trig menu and setting a value + for Timer. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TIMEOut:TIMe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:TIMEOut:TIMe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:TIMe + - TRIGger:B:PULse:TIMEOut:TIMe? + + **Info:** + - ```` argument specifies the timeout period in seconds. + """ + + +class TriggerBPulseTimeoutQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TIMEOut:QUAlify`` command. + + **Description:** + - This command sets or queries the Timeout Trigger qualification. This is equivalent to + selecting Timeout Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Timeout drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TIMEOut:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:TIMEOut:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:TIMEOut:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerBPulseTimeoutPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse timeout trigger for the + channel. This command is equivalent to selecting Transition Setup from the Trig menu and + then setting the desired Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:POLarity:CH {STAYSHigh|STAYSLow|EITher} + - TRIGger:B:PULse:TIMEOut:POLarity:CH? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required time + period to permit time out triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required time + period to permit time out triggering to occur. + - ``EITher`` indicates that the polarity of the time out trigger can stay either high or low + (positive or negative) for the required time period to permit time out triggering to + occur. + """ + + +class TriggerBPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TIMEOut:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the pulse timeout trigger. This command is + equivalent to selecting Timeout Setup from the Trig menu and setting the desired polarity + in the Trigger When box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TIMEOut:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:POLarity {STAYSHigh|STAYSLow|EITher} + - TRIGger:B:PULse:TIMEOut:POLarity? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required time + period to permit timeout triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required time + period to permit timeout triggering to occur. + - ``EITher`` indicates that the polarity of the timeout trigger can stay either high or low + (positive or negative) for the required time period to permit time out triggering to + occur. + + Properties: + - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBPulseTimeoutPolarityChannel]: + """Return the ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse timeout trigger for the + channel. This command is equivalent to selecting Transition Setup from the Trig menu + and then setting the desired Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:POLarity:CH {STAYSHigh|STAYSLow|EITher} + - TRIGger:B:PULse:TIMEOut:POLarity:CH? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required + time period to permit time out triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required + time period to permit time out triggering to occur. + - ``EITher`` indicates that the polarity of the time out trigger can stay either high or + low (positive or negative) for the required time period to permit time out triggering + to occur. + """ + return self._ch + + +class TriggerBPulseTimeoutLowpassfilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Timeout trigger. This + allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:TIMEOut:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + + +class TriggerBPulseTimeout(SCPICmdRead): + """The ``TRIGger:B:PULse:TIMEOut`` command. + + **Description:** + - This query-only command returns the polarity and time-out duration for the pulse timeout + trigger. This command is equivalent to selecting Timeout Setup from the Trig menu and + viewing the polarity in the Trigger When box and the Timer setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TIMEOut?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut? + + Properties: + - ``.lowpassfilter``: The ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:B:PULse:TIMEOut:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:TIMEOut:QUAlify`` command. + - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lowpassfilter = TriggerBPulseTimeoutLowpassfilter( + device, f"{self._cmd_syntax}:LOWPASSfilter" + ) + self._polarity = TriggerBPulseTimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerBPulseTimeoutQualify(device, f"{self._cmd_syntax}:QUAlify") + self._time = TriggerBPulseTimeoutTime(device, f"{self._cmd_syntax}:TIMe") + + @property + def lowpassfilter(self) -> TriggerBPulseTimeoutLowpassfilter: + """Return the ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Timeout trigger. + This allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:TIMEOut:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + return self._lowpassfilter + + @property + def polarity(self) -> TriggerBPulseTimeoutPolarity: + """Return the ``TRIGger:B:PULse:TIMEOut:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the pulse timeout trigger. This command + is equivalent to selecting Timeout Setup from the Trig menu and setting the desired + polarity in the Trigger When box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:POLarity {STAYSHigh|STAYSLow|EITher} + - TRIGger:B:PULse:TIMEOut:POLarity? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required + time period to permit timeout triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required + time period to permit timeout triggering to occur. + - ``EITher`` indicates that the polarity of the timeout trigger can stay either high or + low (positive or negative) for the required time period to permit time out triggering + to occur. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:PULse:TIMEOut:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerBPulseTimeoutQualify: + """Return the ``TRIGger:B:PULse:TIMEOut:QUAlify`` command. + + **Description:** + - This command sets or queries the Timeout Trigger qualification. This is equivalent to + selecting Timeout Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Timeout drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:QUAlify?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TIMEOut:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:TIMEOut:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def time(self) -> TriggerBPulseTimeoutTime: + """Return the ``TRIGger:B:PULse:TIMEOut:TIMe`` command. + + **Description:** + - This command sets or queries the pulse timeout trigger time (measured in seconds). + This command is equivalent to selecting Timeout Setup from the Trig menu and setting a + value for Timer. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TIMEOut:TIMe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:TIMEOut:TIMe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut:TIMe + - TRIGger:B:PULse:TIMEOut:TIMe? + + **Info:** + - ```` argument specifies the timeout period in seconds. + """ + return self._time + + +class TriggerBPulseSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the pulse trigger. This source parameter + applies to all classes of pulse triggers. This command is equivalent to selecting Event + Trigger Setup from the Trig menu, selecting the pulse type (Glitch, Width, Runt, Timeout, + or Transition), and then choosing the desired channel from the Source pull-down list. When + an UltraSync stack is used, the mapped channels are used to both acquire waveform data and + to trigger the oscilloscope. In the special case of an UltraSync stack master, additional + channels are available for triggering. These are the unmapped channels. For an ATI + UltraSync stack master, CH2, MCH1, and MCH3 can be used for triggering. For a 4-Channel + UltraSync stack master, CH1, MCH2, MCH3, and MCH4 are available for triggering. The + vertical min/max amplitude for these signals must be set up. A detailed discussion is + provided in . + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:SOUrce {CH|D|MCH} + - TRIGger:B:PULse:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels, which range from 1 through 4. + - ``D`` specifies one of the digital inputs, which range from 0 through 15. + - ``MCH`` specifies one of the unmapped channels on the master when using an UltraSync + stack. For details see. + """ + + +class TriggerBPulseRuntWidth(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:WIDth`` command. + + **Description:** + - This command sets or queries the minimum width for an Pulse Runt trigger. This command is + equivalent to selecting Runt Setup from the Trig menu and then setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:WIDth?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:RUNT:WIDth value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:WIDth + - TRIGger:B:PULse:RUNT:WIDth? + + **Info:** + - ```` specifies the minimum width in seconds. + """ + + +class TriggerBPulseRuntWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:WHEn`` command. + + **Description:** + - This command sets or queries the type of pulse width the trigger checks for when it + detects a runt. This is equivalent to selecting Runt Setup from the Trig menu and choosing + the desired Trigger When setting from the drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:WHEn?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:RUNT:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:WHEn {OCCurs|WIDERthan} + - TRIGger:B:PULse:RUNT:WHEn? + + **Info:** + - ``OCCurs`` argument specifies a trigger event if a runt of any detectable width occurs. + - ``WIDERthan`` specifies a trigger event if a runt greater than the specified width occurs. + """ + + +class TriggerBPulseRuntThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the pulse runt trigger. This command is + equivalent to selecting Runt Setup from the Trig menu and then setting the Lower Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:THReshold:LOW?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold:LOW + - TRIGger:B:PULse:RUNT:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerBPulseRuntThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse runt trigger. This command is + equivalent to selecting Runt Setup from the Trig menu and setting the runt trigger Upper + Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:THReshold:HIGH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold:HIGH + - TRIGger:B:PULse:RUNT:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerBPulseRuntThresholdBoth(SCPICmdWrite): + """The ``TRIGger:B:PULse:RUNT:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the pulse + runt trigger. This command is equivalent to selecting Runt Setup from the Trig menu and + then setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and lower threshold to the nominal ECL voltage levels. + """ + + +class TriggerBPulseRuntThreshold(SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the pulse runt trigger. + This command query is equivalent to selecting Runt Setup from the Trig menu and then + viewing the Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:THReshold?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold? + + Properties: + - ``.both``: The ``TRIGger:B:PULse:RUNT:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:B:PULse:RUNT:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._both = TriggerBPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") + self._high = TriggerBPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerBPulseRuntThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def both(self) -> TriggerBPulseRuntThresholdBoth: + """Return the ``TRIGger:B:PULse:RUNT:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the + pulse runt trigger. This command is equivalent to selecting Runt Setup from the Trig + menu and then setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and lower threshold to the nominal ECL voltage levels. + """ + return self._both + + @property + def high(self) -> TriggerBPulseRuntThresholdHigh: + """Return the ``TRIGger:B:PULse:RUNT:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and setting the runt trigger + Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold:HIGH + - TRIGger:B:PULse:RUNT:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._high + + @property + def low(self) -> TriggerBPulseRuntThresholdLow: + """Return the ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the pulse runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and then setting the Lower + Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold:LOW + - TRIGger:B:PULse:RUNT:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._low + + +class TriggerBPulseRuntQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:QUAlify`` command. + + **Description:** + - This command sets or queries the Runt Trigger qualification. This is equivalent to + selecting Runt Setup from the Trig menu and selecting Occurs, Logic, or Bus in the Trigger + If Runt drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:QUAlify?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:RUNT:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:RUNT:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the command. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerBPulseRuntPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger for the + channel. This command is equivalent to selecting Runt Setup from the Trig menu and then + choosing the Polarity setting for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:POLarity:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:RUNT:POLarity:CH? + + **Info:** + - ``EITher`` indicates either negative or positive polarity. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling edge + recrosses the low threshold without either edge ever crossing the high threshold. + """ + + +class TriggerBPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and then choosing the Polarity + setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:POLarity?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:RUNT:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:RUNT:POLarity? + + **Info:** + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling edge + recrosses the low threshold without either edge ever crossing the high threshold. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``EITher`` indicates either negative or positive polarity. + + Properties: + - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBPulseRuntPolarityChannel]: + """Return the ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger for the + channel. This command is equivalent to selecting Runt Setup from the Trig menu and + then choosing the Polarity setting for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:RUNT:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:RUNT:POLarity:CH? + + **Info:** + - ``EITher`` indicates either negative or positive polarity. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling + edge recrosses the low threshold without either edge ever crossing the high threshold. + """ + return self._ch + + +class TriggerBPulseRunt(SCPICmdRead): + """The ``TRIGger:B:PULse:RUNT`` command. + + **Description:** + - This query-only command returns the current runt trigger parameters. This command query is + equivalent to selecting Runt Setup from the Trig menu and then viewing the current + settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT? + + Properties: + - ``.polarity``: The ``TRIGger:B:PULse:RUNT:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:RUNT:QUAlify`` command. + - ``.threshold``: The ``TRIGger:B:PULse:RUNT:THReshold`` command. + - ``.when``: The ``TRIGger:B:PULse:RUNT:WHEn`` command. + - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._polarity = TriggerBPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerBPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") + self._threshold = TriggerBPulseRuntThreshold(device, f"{self._cmd_syntax}:THReshold") + self._when = TriggerBPulseRuntWhen(device, f"{self._cmd_syntax}:WHEn") + self._width = TriggerBPulseRuntWidth(device, f"{self._cmd_syntax}:WIDth") + + @property + def polarity(self) -> TriggerBPulseRuntPolarity: + """Return the ``TRIGger:B:PULse:RUNT:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger. This + command is equivalent to selecting Runt Setup from the Trig menu and then choosing the + Polarity setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:RUNT:POLarity? + + **Info:** + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling + edge recrosses the low threshold without either edge ever crossing the high threshold. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``EITher`` indicates either negative or positive polarity. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:PULse:RUNT:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerBPulseRuntQualify: + """Return the ``TRIGger:B:PULse:RUNT:QUAlify`` command. + + **Description:** + - This command sets or queries the Runt Trigger qualification. This is equivalent to + selecting Runt Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Runt drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:RUNT:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:RUNT:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the command. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def threshold(self) -> TriggerBPulseRuntThreshold: + """Return the ``TRIGger:B:PULse:RUNT:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the pulse runt + trigger. This command query is equivalent to selecting Runt Setup from the Trig menu + and then viewing the Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:THReshold?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:THReshold? + + Sub-properties: + - ``.both``: The ``TRIGger:B:PULse:RUNT:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:B:PULse:RUNT:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:B:PULse:RUNT:THReshold:LOW`` command. + """ + return self._threshold + + @property + def when(self) -> TriggerBPulseRuntWhen: + """Return the ``TRIGger:B:PULse:RUNT:WHEn`` command. + + **Description:** + - This command sets or queries the type of pulse width the trigger checks for when it + detects a runt. This is equivalent to selecting Runt Setup from the Trig menu and + choosing the desired Trigger When setting from the drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:RUNT:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:WHEn {OCCurs|WIDERthan} + - TRIGger:B:PULse:RUNT:WHEn? + + **Info:** + - ``OCCurs`` argument specifies a trigger event if a runt of any detectable width + occurs. + - ``WIDERthan`` specifies a trigger event if a runt greater than the specified width + occurs. + """ + return self._when + + @property + def width(self) -> TriggerBPulseRuntWidth: + """Return the ``TRIGger:B:PULse:RUNT:WIDth`` command. + + **Description:** + - This command sets or queries the minimum width for an Pulse Runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and then setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT:WIDth?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:RUNT:WIDth value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT:WIDth + - TRIGger:B:PULse:RUNT:WIDth? + + **Info:** + - ```` specifies the minimum width in seconds. + """ + return self._width + + +class TriggerBPulsePeriodWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:PERiod:WHEn`` command. + + **Description:** + - This command sets or queries the trigger when enumeration for the Pulse Period Trigger. If + the argument is LESSthan , the scope triggers on the signal when the period (frequency) of + the signal is less than the period (frequency) of the Low Limit. If the argument is + GREATerthan, the scope triggers on the signal when the period (frequency) of the signal is + greater than the period (frequency) of the Low Limit. If the argument is WITHin, the scope + triggers on the signal when the period (frequency) of the signal is within the range + defined by the Low Limit and the High Limit. If the argument is OUTside, the scope + triggers on the signal when the period (frequency) of the signal is outside of the range + defined by the Low Limit and the High Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:PERiod:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:WHEn {LESSthan | GREATerthan | WITHin | OUTside} + - TRIGger:B:PULse:PERiod:WHEn? + + **Info:** + - ``LESSthan`` tells the scope to trigger when the period (frequency) of the signal is less + than the low limit value. + - ``GREATerthan`` tells the scope to trigger when the period (frequency) of the signal is + greater than the low limit value. + - ``WITHin`` tells the scope to trigger when the period (frequency) of the signal is inside + the range set by the low and high limit values. + - ``OUTside`` tells the scope to trigger when the period (frequency) of the signal is + outside of the range set by the low and high limit values. + """ + + +class TriggerBPulsePeriodView(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:PERiod:VIEW`` command. + + **Description:** + - This command sets or queries the view for the pulse period trigger. When PERiod is + selected the LOWLimit and HIGHLimit values are in units of time (Seconds). When FREQuency + is selected, the units are in frequency (Hz). This two methods are equivalent, so the + alternative views are provided as a convenience. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:VIEW?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:VIEW?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:PERiod:VIEW value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:VIEW {PERiod|FREQuency} + - TRIGger:B:PULse:PERiod:VIEW? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerBPulsePeriodQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:PERiod:QUAlify`` command. + + **Description:** + - This command sets or queries the Qualification setup for Pulse Period Trigger. The + high/low state of one or more other signals (channels) may be used to qualify whether the + trigger should occur. The BUS option is not available on the 77K scope family at this + time. When the QUALify enumeration is OCCurs, no qualification is done. When the QUALify + enumeration is LOGIC, the scope triggers using the pulse period trigger definition as + qualified by the high/low states of the qualifying signals. Additional description is + given elsewhere in this document under the term logic qualification. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:PERiod:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:QUAlify {OCCurs | LOGIC | BUS} + - TRIGger:B:PULse:PERiod:QUAlify? + + **Info:** + - ``OCCurs`` specifies the no other signals are used to qualify the pulse period trigger. + - ``LOGIC`` specifies that other analog signals (channels) are used to qualify the pulse + period trigger. + - ``BUS`` specifies that other digital signals (digital channels) are used to qualify the + pulse period trigger. + """ + + +class TriggerBPulsePeriodPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:PERiod:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the Pulse Period trigger. It refers to the + polarity of the edges that begin and end a given period of the signal, and thus allows + duty-cycle testing of clock signals. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:PERiod:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:POLarity {NEGAtive|POSITIVe} + - TRIGger:B:PULse:PERiod:POLarity? + + **Info:** + - ``POSITIVe`` specifies to trigger on the rising or positive edge of a signal. + - ``NEGAtive`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerBPulsePeriodLowlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:PERiod:LOWLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency low limit. When the VIEW is PERiod the + units of this number are time (Seconds). When the VIEW is FREQuency, the units of this + number are frequency (Hz). The low limit is used alone when the WHEn enumeration is + LESSthan or GREATerthan, and is used in combination with the high limit to define a range + if the WHEn enumeration is WITHin or OUTside. The limits specify the most significant + characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:LOWLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:PERiod:LOWLimit value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:LOWLimit + - TRIGger:B:PULse:PERiod:LOWLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + + +class TriggerBPulsePeriodHighlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:PERiod:HIGHLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency high limit. When the VIEW is PERiod the + units of this number are time (Seconds). When the VIEW is FREQuency, the units of this + number are frequency (Hz). The high limit is used in combination with the low limit to + define a range if the WHEn enumeration is WITHin or OUTside. These limits specify the most + significant characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:HIGHLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:HIGHLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:PERiod:HIGHLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:HIGHLimit + - TRIGger:B:PULse:PERiod:HIGHLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + + +class TriggerBPulsePeriod(SCPICmdRead): + """The ``TRIGger:B:PULse:PERiod`` command. + + **Description:** + - This query-only command returns the Pulse Trigger settings specific to Period/Frequency + trigger. These include the array of high and low limits, the trigger when enumeration, the + polarity enumeration, the qualification enumeration, and the view enumeration. The view + enumeration controls whether the high and low limits are expressed in units of time + (Seconds) or frequency (Hz). The qualification enumeration determines if the trigger is + state-qualified by additional signals (channels). The polarity enumeration determines + whether the rising or falling edges of the signal are used to initiate the trigger. The + trigger when enumeration determines if the trigger should occur when the period + (frequency) is greater than or less than a single (low) limit value, or within or outside + the period (frequency) of a high-low limit period (frequency) pair. The Period/Frequency + Trigger is similar to Width Trigger, but instead of triggering on a single pulse of a + given width, it triggers on the period (two back-to-back pulses, one up and one down) of a + given width. As a convenience the period limits (Seconds) can be expressed as frequency + limits (Hz) by changing the view enumeration. It is often used to determine if oscillators + are operating within specification. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod? + + Properties: + - ``.highlimit``: The ``TRIGger:B:PULse:PERiod:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:B:PULse:PERiod:LOWLimit`` command. + - ``.polarity``: The ``TRIGger:B:PULse:PERiod:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:PERiod:QUAlify`` command. + - ``.view``: The ``TRIGger:B:PULse:PERiod:VIEW`` command. + - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._highlimit = TriggerBPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") + self._lowlimit = TriggerBPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") + self._polarity = TriggerBPulsePeriodPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerBPulsePeriodQualify(device, f"{self._cmd_syntax}:QUAlify") + self._view = TriggerBPulsePeriodView(device, f"{self._cmd_syntax}:VIEW") + self._when = TriggerBPulsePeriodWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def highlimit(self) -> TriggerBPulsePeriodHighlimit: + """Return the ``TRIGger:B:PULse:PERiod:HIGHLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency high limit. When the VIEW is PERiod + the units of this number are time (Seconds). When the VIEW is FREQuency, the units of + this number are frequency (Hz). The high limit is used in combination with the low + limit to define a range if the WHEn enumeration is WITHin or OUTside. These limits + specify the most significant characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:HIGHLimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:PERiod:HIGHLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:PERiod:HIGHLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:HIGHLimit + - TRIGger:B:PULse:PERiod:HIGHLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + return self._highlimit + + @property + def lowlimit(self) -> TriggerBPulsePeriodLowlimit: + """Return the ``TRIGger:B:PULse:PERiod:LOWLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency low limit. When the VIEW is PERiod + the units of this number are time (Seconds). When the VIEW is FREQuency, the units of + this number are frequency (Hz). The low limit is used alone when the WHEn enumeration + is LESSthan or GREATerthan, and is used in combination with the high limit to define a + range if the WHEn enumeration is WITHin or OUTside. The limits specify the most + significant characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:LOWLimit?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:PERiod:LOWLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:LOWLimit + - TRIGger:B:PULse:PERiod:LOWLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + return self._lowlimit + + @property + def polarity(self) -> TriggerBPulsePeriodPolarity: + """Return the ``TRIGger:B:PULse:PERiod:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the Pulse Period trigger. It refers to + the polarity of the edges that begin and end a given period of the signal, and thus + allows duty-cycle testing of clock signals. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:PERiod:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:POLarity {NEGAtive|POSITIVe} + - TRIGger:B:PULse:PERiod:POLarity? + + **Info:** + - ``POSITIVe`` specifies to trigger on the rising or positive edge of a signal. + - ``NEGAtive`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._polarity + + @property + def qualify(self) -> TriggerBPulsePeriodQualify: + """Return the ``TRIGger:B:PULse:PERiod:QUAlify`` command. + + **Description:** + - This command sets or queries the Qualification setup for Pulse Period Trigger. The + high/low state of one or more other signals (channels) may be used to qualify whether + the trigger should occur. The BUS option is not available on the 77K scope family at + this time. When the QUALify enumeration is OCCurs, no qualification is done. When the + QUALify enumeration is LOGIC, the scope triggers using the pulse period trigger + definition as qualified by the high/low states of the qualifying signals. Additional + description is given elsewhere in this document under the term logic qualification. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:PERiod:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:QUAlify {OCCurs | LOGIC | BUS} + - TRIGger:B:PULse:PERiod:QUAlify? + + **Info:** + - ``OCCurs`` specifies the no other signals are used to qualify the pulse period + trigger. + - ``LOGIC`` specifies that other analog signals (channels) are used to qualify the pulse + period trigger. + - ``BUS`` specifies that other digital signals (digital channels) are used to qualify + the pulse period trigger. + """ + return self._qualify + + @property + def view(self) -> TriggerBPulsePeriodView: + """Return the ``TRIGger:B:PULse:PERiod:VIEW`` command. + + **Description:** + - This command sets or queries the view for the pulse period trigger. When PERiod is + selected the LOWLimit and HIGHLimit values are in units of time (Seconds). When + FREQuency is selected, the units are in frequency (Hz). This two methods are + equivalent, so the alternative views are provided as a convenience. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:VIEW?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:VIEW?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:PERiod:VIEW value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:VIEW {PERiod|FREQuency} + - TRIGger:B:PULse:PERiod:VIEW? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._view + + @property + def when(self) -> TriggerBPulsePeriodWhen: + """Return the ``TRIGger:B:PULse:PERiod:WHEn`` command. + + **Description:** + - This command sets or queries the trigger when enumeration for the Pulse Period + Trigger. If the argument is LESSthan , the scope triggers on the signal when the + period (frequency) of the signal is less than the period (frequency) of the Low Limit. + If the argument is GREATerthan, the scope triggers on the signal when the period + (frequency) of the signal is greater than the period (frequency) of the Low Limit. If + the argument is WITHin, the scope triggers on the signal when the period (frequency) + of the signal is within the range defined by the Low Limit and the High Limit. If the + argument is OUTside, the scope triggers on the signal when the period (frequency) of + the signal is outside of the range defined by the Low Limit and the High Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:PERiod:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod:WHEn {LESSthan | GREATerthan | WITHin | OUTside} + - TRIGger:B:PULse:PERiod:WHEn? + + **Info:** + - ``LESSthan`` tells the scope to trigger when the period (frequency) of the signal is + less than the low limit value. + - ``GREATerthan`` tells the scope to trigger when the period (frequency) of the signal + is greater than the low limit value. + - ``WITHin`` tells the scope to trigger when the period (frequency) of the signal is + inside the range set by the low and high limit values. + - ``OUTside`` tells the scope to trigger when the period (frequency) of the signal is + outside of the range set by the low and high limit values. + """ + return self._when + + +class TriggerBPulseGlitchWidth(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch:WIDth`` command. + + **Description:** + - This command sets or queries the width for the glitch trigger. This command is equivalent + to selecting Glitch Setup from the Trig menu and then setting the desired Width. For + information about using the width value, refer to the command. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:WIDth?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:GLItch:WIDth value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:WIDth + - TRIGger:B:PULse:GLItch:WIDth? + + **Info:** + - ```` argument specifies the width of the glitch in seconds. + """ + + +class TriggerBPulseGlitchTrigif(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch:TRIGIF`` command. + + **Description:** + - This command sets or queries the acceptance or rejection of the glitch pulse trigger, + based on width. This command is equivalent to selecting Glitch Setup from the Trig menu + and choosing the desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:TRIGIF?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:TRIGIF?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:GLItch:TRIGIF value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:TRIGIF {ACCept|REJect} + - TRIGger:B:PULse:GLItch:TRIGIF? + + **Info:** + - ``ACCept`` specifies that the instrument will only trigger on pulses that are narrower + than the specified width, when the trigger type is set to glitch. The width is specified + using the. + - ``REJect`` specifies that the instrument will only trigger on pulses that are wider than + the specified width, when the trigger type is set to glitch. The width is specified using + the. + """ + + +class TriggerBPulseGlitchQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch:QUAlify`` command. + + **Description:** + - This command sets or queries the Glitch Trigger qualification. This is equivalent to + selecting Glitch Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Glitch drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:GLItch:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:GLItch:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerBPulseGlitchPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger for the channel. + This command is equivalent to selecting Glitch Setup from the Trig menu and then choosing + the desired Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:GLItch:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:GLItch:POLarity:CH? + + **Info:** + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch is + either positive or negative. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + """ + + +class TriggerBPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger. This command is + equivalent to selecting Glitch Setup from the Trig menu and then choosing the desired + Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:GLItch:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:GLItch:POLarity? + + **Info:** + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch is + either positive or negative. + + Properties: + - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBPulseGlitchPolarityChannel]: + """Return the ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger for the + channel. This command is equivalent to selecting Glitch Setup from the Trig menu and + then choosing the desired Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:GLItch:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:B:PULse:GLItch:POLarity:CH? + + **Info:** + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch + is either positive or negative. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + """ + return self._ch + + +class TriggerBPulseGlitchLowpassfilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Glitch trigger. This + allows triggering in the presence of high­frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:GLItch:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:GLItch:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + + +class TriggerBPulseGlitchFilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch:FILTer`` command. + + **Description:** + - This command sets or queries the acceptance/rejection of the glitch pulse trigger. This + command is equivalent to selecting Glitch Setup from the Trig menu and then choosing the + desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:FILTer?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:FILTer?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:GLItch:FILTer value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:FILTer {ACCept|REJect} + - TRIGger:B:PULse:GLItch:FILTer? + """ + + +class TriggerBPulseGlitch(SCPICmdRead): + """The ``TRIGger:B:PULse:GLItch`` command. + + **Description:** + - This query-only command returns the current glitch pulse trigger parameters. This command + query is equivalent to selecting Glitch Setup from the Trig menu and viewing the current + glitch trigger settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch? + + Properties: + - ``.filter``: The ``TRIGger:B:PULse:GLItch:FILTer`` command. + - ``.lowpassfilter``: The ``TRIGger:B:PULse:GLItch:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:B:PULse:GLItch:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:GLItch:QUAlify`` command. + - ``.trigif``: The ``TRIGger:B:PULse:GLItch:TRIGIF`` command. + - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._filter = TriggerBPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") + self._lowpassfilter = TriggerBPulseGlitchLowpassfilter( + device, f"{self._cmd_syntax}:LOWPASSfilter" + ) + self._polarity = TriggerBPulseGlitchPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerBPulseGlitchQualify(device, f"{self._cmd_syntax}:QUAlify") + self._trigif = TriggerBPulseGlitchTrigif(device, f"{self._cmd_syntax}:TRIGIF") + self._width = TriggerBPulseGlitchWidth(device, f"{self._cmd_syntax}:WIDth") + + @property + def filter(self) -> TriggerBPulseGlitchFilter: + """Return the ``TRIGger:B:PULse:GLItch:FILTer`` command. + + **Description:** + - This command sets or queries the acceptance/rejection of the glitch pulse trigger. + This command is equivalent to selecting Glitch Setup from the Trig menu and then + choosing the desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:FILTer?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:FILTer?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:FILTer value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:FILTer {ACCept|REJect} + - TRIGger:B:PULse:GLItch:FILTer? + """ + return self._filter + + @property + def lowpassfilter(self) -> TriggerBPulseGlitchLowpassfilter: + """Return the ``TRIGger:B:PULse:GLItch:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Glitch trigger. + This allows triggering in the presence of high­frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:PULse:GLItch:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:LOWPASSfilter {ON|OFF} + - TRIGger:B:PULse:GLItch:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + return self._lowpassfilter + + @property + def polarity(self) -> TriggerBPulseGlitchPolarity: + """Return the ``TRIGger:B:PULse:GLItch:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger. This + command is equivalent to selecting Glitch Setup from the Trig menu and then choosing + the desired Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:B:PULse:GLItch:POLarity? + + **Info:** + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch + is either positive or negative. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:PULse:GLItch:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerBPulseGlitchQualify: + """Return the ``TRIGger:B:PULse:GLItch:QUAlify`` command. + + **Description:** + - This command sets or queries the Glitch Trigger qualification. This is equivalent to + selecting Glitch Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Glitch drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:PULse:GLItch:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def trigif(self) -> TriggerBPulseGlitchTrigif: + """Return the ``TRIGger:B:PULse:GLItch:TRIGIF`` command. + + **Description:** + - This command sets or queries the acceptance or rejection of the glitch pulse trigger, + based on width. This command is equivalent to selecting Glitch Setup from the Trig + menu and choosing the desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:TRIGIF?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:TRIGIF?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:TRIGIF value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:TRIGIF {ACCept|REJect} + - TRIGger:B:PULse:GLItch:TRIGIF? + + **Info:** + - ``ACCept`` specifies that the instrument will only trigger on pulses that are narrower + than the specified width, when the trigger type is set to glitch. The width is + specified using the. + - ``REJect`` specifies that the instrument will only trigger on pulses that are wider + than the specified width, when the trigger type is set to glitch. The width is + specified using the. + """ + return self._trigif + + @property + def width(self) -> TriggerBPulseGlitchWidth: + """Return the ``TRIGger:B:PULse:GLItch:WIDth`` command. + + **Description:** + - This command sets or queries the width for the glitch trigger. This command is + equivalent to selecting Glitch Setup from the Trig menu and then setting the desired + Width. For information about using the width value, refer to the command. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch:WIDth?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:PULse:GLItch:WIDth value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch:WIDth + - TRIGger:B:PULse:GLItch:WIDth? + + **Info:** + - ```` argument specifies the width of the glitch in seconds. + """ + return self._width + + +class TriggerBPulseClass(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:PULse:CLAss`` command. + + **Description:** + - This command sets or queries the type of pulse on which to trigger. This command is + equivalent to selecting the setup menu for the pulse type that you want from the Trig + menu: Glitch Setup, Width Setup, Runt Setup, Timeout Setup, or Transition Setup. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:CLAss value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:CLAss {GLItch|RUNT|WIDth| TRANsition|TIMEOut|WINdow} + - TRIGger:B:PULse:CLAss? + + **Info:** + - ``GLItch`` triggers when a pulse is found that is of the specified polarity and width. + These are set with the commands. + - ``RUNT`` triggers when a pulse crosses the first preset voltage threshold but does not + cross the second preset threshold before recrossing the first. The thresholds are set with + the. + - ``WIDth`` triggers when a pulse is found that has the specified polarity and is either + inside or outside the limits as specified by. + - ``TRANsition`` triggers when a pulse crosses both thresholds in the same direction as the + specified polarity and the transition time between the two threshold crossings is greater + or less than the specified time delta. + - ``TIMEOut`` triggers when the pulse train stops in the selected state for longer than the + specified time. + - ``WINdow`` triggers when a pulse is found that meets the conditions set by the A Event + window trigger type, specified by the following commands. + """ + + +# pylint: disable=too-many-instance-attributes +class TriggerBPulse(SCPICmdRead): + """The ``TRIGger:B:PULse`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.period``: The ``TRIGger:B:PULse:PERiod`` command. + - ``.window``: The ``TRIGger:B:PULse:WINdow`` command tree. + - ``.class``: The ``TRIGger:B:PULse:CLAss`` command. + - ``.glitch``: The ``TRIGger:B:PULse:GLItch`` command. + - ``.runt``: The ``TRIGger:B:PULse:RUNT`` command. + - ``.source``: The ``TRIGger:B:PULse:SOUrce`` command. + - ``.timeout``: The ``TRIGger:B:PULse:TIMEOut`` command. + - ``.transition``: The ``TRIGger:B:PULse:TRANsition`` command. + - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._period = TriggerBPulsePeriod(device, f"{self._cmd_syntax}:PERiod") + self._class = TriggerBPulseClass(device, f"{self._cmd_syntax}:CLAss") + self._glitch = TriggerBPulseGlitch(device, f"{self._cmd_syntax}:GLItch") + self._runt = TriggerBPulseRunt(device, f"{self._cmd_syntax}:RUNT") + self._source = TriggerBPulseSource(device, f"{self._cmd_syntax}:SOUrce") + self._timeout = TriggerBPulseTimeout(device, f"{self._cmd_syntax}:TIMEOut") + self._transition = TriggerBPulseTransition(device, f"{self._cmd_syntax}:TRANsition") + self._width = TriggerBPulseWidth(device, f"{self._cmd_syntax}:WIDth") + self._window = TriggerBPulseWindow(device, f"{self._cmd_syntax}:WINdow") + + @property + def period(self) -> TriggerBPulsePeriod: + """Return the ``TRIGger:B:PULse:PERiod`` command. + + **Description:** + - This query-only command returns the Pulse Trigger settings specific to + Period/Frequency trigger. These include the array of high and low limits, the trigger + when enumeration, the polarity enumeration, the qualification enumeration, and the + view enumeration. The view enumeration controls whether the high and low limits are + expressed in units of time (Seconds) or frequency (Hz). The qualification enumeration + determines if the trigger is state-qualified by additional signals (channels). The + polarity enumeration determines whether the rising or falling edges of the signal are + used to initiate the trigger. The trigger when enumeration determines if the trigger + should occur when the period (frequency) is greater than or less than a single (low) + limit value, or within or outside the period (frequency) of a high-low limit period + (frequency) pair. The Period/Frequency Trigger is similar to Width Trigger, but + instead of triggering on a single pulse of a given width, it triggers on the period + (two back-to-back pulses, one up and one down) of a given width. As a convenience the + period limits (Seconds) can be expressed as frequency limits (Hz) by changing the view + enumeration. It is often used to determine if oscillators are operating within + specification. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:PERiod?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:PERiod?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:PERiod? + + Sub-properties: + - ``.highlimit``: The ``TRIGger:B:PULse:PERiod:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:B:PULse:PERiod:LOWLimit`` command. + - ``.polarity``: The ``TRIGger:B:PULse:PERiod:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:PERiod:QUAlify`` command. + - ``.view``: The ``TRIGger:B:PULse:PERiod:VIEW`` command. + - ``.when``: The ``TRIGger:B:PULse:PERiod:WHEn`` command. + """ + return self._period + + @property + def class_(self) -> TriggerBPulseClass: + """Return the ``TRIGger:B:PULse:CLAss`` command. + + **Description:** + - This command sets or queries the type of pulse on which to trigger. This command is + equivalent to selecting the setup menu for the pulse type that you want from the Trig + menu: Glitch Setup, Width Setup, Runt Setup, Timeout Setup, or Transition Setup. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:CLAss value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:CLAss {GLItch|RUNT|WIDth| TRANsition|TIMEOut|WINdow} + - TRIGger:B:PULse:CLAss? + + **Info:** + - ``GLItch`` triggers when a pulse is found that is of the specified polarity and width. + These are set with the commands. + - ``RUNT`` triggers when a pulse crosses the first preset voltage threshold but does not + cross the second preset threshold before recrossing the first. The thresholds are set + with the. + - ``WIDth`` triggers when a pulse is found that has the specified polarity and is either + inside or outside the limits as specified by. + - ``TRANsition`` triggers when a pulse crosses both thresholds in the same direction as + the specified polarity and the transition time between the two threshold crossings is + greater or less than the specified time delta. + - ``TIMEOut`` triggers when the pulse train stops in the selected state for longer than + the specified time. + - ``WINdow`` triggers when a pulse is found that meets the conditions set by the A Event + window trigger type, specified by the following commands. + """ + return self._class + + @property + def glitch(self) -> TriggerBPulseGlitch: + """Return the ``TRIGger:B:PULse:GLItch`` command. + + **Description:** + - This query-only command returns the current glitch pulse trigger parameters. This + command query is equivalent to selecting Glitch Setup from the Trig menu and viewing + the current glitch trigger settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:GLItch?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:GLItch?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:GLItch? + + Sub-properties: + - ``.filter``: The ``TRIGger:B:PULse:GLItch:FILTer`` command. + - ``.lowpassfilter``: The ``TRIGger:B:PULse:GLItch:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:B:PULse:GLItch:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:GLItch:QUAlify`` command. + - ``.trigif``: The ``TRIGger:B:PULse:GLItch:TRIGIF`` command. + - ``.width``: The ``TRIGger:B:PULse:GLItch:WIDth`` command. + """ + return self._glitch + + @property + def runt(self) -> TriggerBPulseRunt: + """Return the ``TRIGger:B:PULse:RUNT`` command. + + **Description:** + - This query-only command returns the current runt trigger parameters. This command + query is equivalent to selecting Runt Setup from the Trig menu and then viewing the + current settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:RUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:RUNT?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:RUNT? + + Sub-properties: + - ``.polarity``: The ``TRIGger:B:PULse:RUNT:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:RUNT:QUAlify`` command. + - ``.threshold``: The ``TRIGger:B:PULse:RUNT:THReshold`` command. + - ``.when``: The ``TRIGger:B:PULse:RUNT:WHEn`` command. + - ``.width``: The ``TRIGger:B:PULse:RUNT:WIDth`` command. + """ + return self._runt + + @property + def source(self) -> TriggerBPulseSource: + """Return the ``TRIGger:B:PULse:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the pulse trigger. This source parameter + applies to all classes of pulse triggers. This command is equivalent to selecting + Event Trigger Setup from the Trig menu, selecting the pulse type (Glitch, Width, Runt, + Timeout, or Transition), and then choosing the desired channel from the Source + pull-down list. When an UltraSync stack is used, the mapped channels are used to both + acquire waveform data and to trigger the oscilloscope. In the special case of an + UltraSync stack master, additional channels are available for triggering. These are + the unmapped channels. For an ATI UltraSync stack master, CH2, MCH1, and MCH3 can be + used for triggering. For a 4-Channel UltraSync stack master, CH1, MCH2, MCH3, and MCH4 + are available for triggering. The vertical min/max amplitude for these signals must be + set up. A detailed discussion is provided in . + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:PULse:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:SOUrce {CH|D|MCH} + - TRIGger:B:PULse:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels, which range from 1 through 4. + - ``D`` specifies one of the digital inputs, which range from 0 through 15. + - ``MCH`` specifies one of the unmapped channels on the master when using an + UltraSync stack. For details see. + """ + return self._source + + @property + def timeout(self) -> TriggerBPulseTimeout: + """Return the ``TRIGger:B:PULse:TIMEOut`` command. + + **Description:** + - This query-only command returns the polarity and time-out duration for the pulse + timeout trigger. This command is equivalent to selecting Timeout Setup from the Trig + menu and viewing the polarity in the Trigger When box and the Timer setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TIMEOut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TIMEOut?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TIMEOut? + + Sub-properties: + - ``.lowpassfilter``: The ``TRIGger:B:PULse:TIMEOut:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:B:PULse:TIMEOut:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:TIMEOut:QUAlify`` command. + - ``.time``: The ``TRIGger:B:PULse:TIMEOut:TIMe`` command. + """ + return self._timeout + + @property + def transition(self) -> TriggerBPulseTransition: + """Return the ``TRIGger:B:PULse:TRANsition`` command. + + **Description:** + - This query-only command returns delta time, polarity, and both upper and lower + threshold limits for the transition time trigger. This command is equivalent to + selecting Transition Setup from the Trig menu and then viewing the current transition + settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:TRANsition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:TRANsition?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:TRANsition? + + Sub-properties: + - ``.deltatime``: The ``TRIGger:B:PULse:TRANsition:DELTATime`` command. + - ``.polarity``: The ``TRIGger:B:PULse:TRANsition:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:TRANsition:QUAlify`` command. + - ``.threshold``: The ``TRIGger:B:PULse:TRANsition:THReshold`` command. + - ``.when``: The ``TRIGger:B:PULse:TRANsition:WHEn`` command. + """ + return self._transition + + @property + def width(self) -> TriggerBPulseWidth: + """Return the ``TRIGger:B:PULse:WIDth`` command. + + **Description:** + - This query-only command returns the width parameters for the pulse width trigger. This + command is equivalent to selecting Width Setup from the Trig menu and then viewing the + current pulse width trigger Lower Limit, Upper Limit, Trig When and Polarity settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WIDth?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:PULse:WIDth? + + Sub-properties: + - ``.highlimit``: The ``TRIGger:B:PULse:WIDth:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:B:PULse:WIDth:LOWLimit`` command. + - ``.lowpassfilter``: The ``TRIGger:B:PULse:WIDth:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:B:PULse:WIDth:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:WIDth:QUAlify`` command. + - ``.when``: The ``TRIGger:B:PULse:WIDth:WHEn`` command. + """ + return self._width + + @property + def window(self) -> TriggerBPulseWindow: + """Return the ``TRIGger:B:PULse:WINdow`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse:WINdow?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse:WINdow?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.type``: The ``TRIGger:B:PULse:WINdow:TYPe`` command. + - ``.when``: The ``TRIGger:B:PULse:WINdow:WHEn`` command. + - ``.event``: The ``TRIGger:B:PULse:WINdow:EVENT`` command. + - ``.polarity``: The ``TRIGger:B:PULse:WINdow:POLarity`` command. + - ``.qualify``: The ``TRIGger:B:PULse:WINdow:QUAlify`` command. + - ``.threshold``: The ``TRIGger:B:PULse:WINdow:THReshold`` command. + - ``.width``: The ``TRIGger:B:PULse:WINdow:WIDTH`` command. + """ + return self._window + + +class TriggerBLowerthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOWerthreshold:CH`` command. + + **Description:** + - This command sets or queries the A or B lower trigger level for + ``TRIGger:LVLSrcpreference SRCDependent`` or SRCIndependent modes for the channel, + specified by x, which ranges from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOWerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOWerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOWerthreshold:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOWerthreshold:CH {ECL|TTL|} + - TRIGger:B:LOWerthreshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies the threshold voltage in user units. + """ + + +class TriggerBLowerthreshold(SCPICmdRead): + """The ``TRIGger:B:LOWerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOWerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOWerthreshold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBLowerthresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBLowerthresholdChannel]: + """Return the ``TRIGger:B:LOWerthreshold:CH`` command. + + **Description:** + - This command sets or queries the A or B lower trigger level for + ``TRIGger:LVLSrcpreference SRCDependent`` or SRCIndependent modes for the channel, + specified by x, which ranges from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOWerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOWerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOWerthreshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOWerthreshold:CH {ECL|TTL|} + - TRIGger:B:LOWerthreshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies the threshold voltage in user units. + """ + return self._ch + + +class TriggerBLogicThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger threshold voltage for the channel, + specified by x, which ranges from 1 through 4. This command is equivalent to selecting A + or B Event Trigger Setup from the Trig menu, choosing a logic trigger type, such as State + or Pattern, and setting the Input Threshold voltage for the desired channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:THReshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:THReshold:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:THReshold:CH + - TRIGger:B:LOGIc:THReshold:CH? + + **Info:** + - ```` specifies the threshold voltage. + """ + + +class TriggerBLogicThreshold(SCPICmdRead): + """The ``TRIGger:B:LOGIc:THReshold`` command. + + **Description:** + - This query-only command returns the threshold voltage for all channels in a logic trigger. + This command query is equivalent to selecting Event Trigger Setup from the Trig menu, + choosing a logic trigger type, such as State or Pattern, and viewing the current Input + Threshold voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:THReshold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:THReshold? + + Properties: + - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBLogicThresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBLogicThresholdChannel]: + """Return the ``TRIGger:B:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger threshold voltage for the + channel, specified by x, which ranges from 1 through 4. This command is equivalent to + selecting A or B Event Trigger Setup from the Trig menu, choosing a logic trigger + type, such as State or Pattern, and setting the Input Threshold voltage for the + desired channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:THReshold:CH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:THReshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:THReshold:CH + - TRIGger:B:LOGIc:THReshold:CH? + + **Info:** + - ```` specifies the threshold voltage. + """ + return self._ch + + +class TriggerBLogicStateWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:STATE:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic state trigger. + This command is equivalent to selecting Logic State from the Trig menu and choosing the + desired condition from the Trigger When Pattern drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:STATE:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:STATE:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:STATE:WHEn {TRUe|FALSe} + - TRIGger:B:LOGIc:STATE:WHEn? + + **Info:** + - ``TRUe`` specifies that the trigger occurs when the clock transition on channel 4 occurs + and the pattern of channels 1-3 are at the desired logic input states. + - ``FALSe`` specifies that the trigger occurs when the desired clock transition on channel 4 + occurs and the desired logic input states on channels 1-3 are not found. + """ + + +class TriggerBLogicStateInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. + + **Description:** + - This command sets or queries the slope for the channel specified by x when the logic class + is set to State. This command is equivalent to selecting Logic State from the Trig menu, + choosing the desired channel input, and then the slope (NEG or POS) from the When Clock is + drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE:INPut:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:STATE:INPut:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:STATE:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:STATE:INPut:CH {FALL|RISe} + - TRIGger:B:LOGIc:STATE:INPut:CH? + + **Info:** + - ``FALL`` specifies the falling edge and the input slope is NEG. + - ``RISe`` specifies the rising edge and the input slope is POS. + """ + + +class TriggerBLogicStateInput(SCPICmdRead): + """The ``TRIGger:B:LOGIc:STATE:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:STATE:INPut?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBLogicStateInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBLogicStateInputChannel]: + """Return the ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. + + **Description:** + - This command sets or queries the slope for the channel specified by x when the logic + class is set to State. This command is equivalent to selecting Logic State from the + Trig menu, choosing the desired channel input, and then the slope (NEG or POS) from + the When Clock is drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE:INPut:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:STATE:INPut:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:STATE:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:STATE:INPut:CH {FALL|RISe} + - TRIGger:B:LOGIc:STATE:INPut:CH? + + **Info:** + - ``FALL`` specifies the falling edge and the input slope is NEG. + - ``RISe`` specifies the rising edge and the input slope is POS. + """ + return self._ch + + +class TriggerBLogicState(SCPICmdRead): + """The ``TRIGger:B:LOGIc:STATE`` command. + + **Description:** + - This query-only command returns the data input and trigger criteria for the logic trigger. + This command is equivalent to selecting Logic State from the Trig menu and then viewing + the current logic state settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:STATE?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:STATE? + + Properties: + - ``.input``: The ``TRIGger:B:LOGIc:STATE:INPut`` command tree. + - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._input = TriggerBLogicStateInput(device, f"{self._cmd_syntax}:INPut") + self._when = TriggerBLogicStateWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def input(self) -> TriggerBLogicStateInput: + """Return the ``TRIGger:B:LOGIc:STATE:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:STATE:INPut?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:LOGIc:STATE:INPut:CH`` command. + """ + return self._input + + @property + def when(self) -> TriggerBLogicStateWhen: + """Return the ``TRIGger:B:LOGIc:STATE:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic state + trigger. This command is equivalent to selecting Logic State from the Trig menu and + choosing the desired condition from the Trigger When Pattern drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:STATE:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:STATE:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:STATE:WHEn {TRUe|FALSe} + - TRIGger:B:LOGIc:STATE:WHEn? + + **Info:** + - ``TRUe`` specifies that the trigger occurs when the clock transition on channel 4 + occurs and the pattern of channels 1-3 are at the desired logic input states. + - ``FALSe`` specifies that the trigger occurs when the desired clock transition on + channel 4 occurs and the desired logic input states on channels 1-3 are not found. + """ + return self._when + + +class TriggerBLogicSetholdSettime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. + + **Description:** + - This command sets or queries the setup time for setup and hold violation triggering. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Setup Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:SETTime?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:SETTime?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:SETTime value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:SETTime + - TRIGger:B:LOGIc:SETHold:SETTime? + + **Info:** + - ```` specifies the setup time for setup and hold violation triggering. + """ + + +class TriggerBLogicSetholdQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:QUAlify`` command. + + **Description:** + - This command sets or queries the Setup/Hold Trigger qualification. This is equivalent to + selecting Setup/Hold Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Setup/Hold drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:LOGIc:SETHold:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerBLogicSetholdHoldtime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:HOLDTime`` command. + + **Description:** + - This command sets or queries the hold time for setup and hold violation triggering. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Hold Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:HOLDTime?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:HOLDTime?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:HOLDTime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:HOLDTime + - TRIGger:B:LOGIc:SETHold:HOLDTime? + + **Info:** + - ```` specifies the hold time setting in seconds. Positive values for hold time occur + after the clock edge. Negative values occur before the clock edge. + """ + + +class TriggerBLogicSetholdDataThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. This + command is equivalent to selecting A or B Event Trigger Setup from the Trig menu and then + setting the desired Data Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + """ + + +class TriggerBLogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:THReshold {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:THReshold? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + + Properties: + - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBLogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBLogicSetholdDataThresholdChannel]: + """Return the ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. + This command is equivalent to selecting A or B Event Trigger Setup from the Trig menu + and then setting the desired Data Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + """ + return self._ch + + +class TriggerBLogicSetholdDataSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce`` command. + + **Description:** + - This command sets or queries the data source for the setup and hold trigger. This command + is equivalent to selecting Setup/Hold Setup from the Trig menu and choosing the desired + channel from the Data Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:SOUrce CH + - TRIGger:B:LOGIc:SETHold:DATa:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4. + """ + + +class TriggerBLogicSetholdDataLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:DATa:LEVel`` command. + + **Description:** + - This command sets or queries the data voltage level for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa:LEVel?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:LEVel {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:LEVel? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies is the setup and hold data level in V. + """ + + +class TriggerBLogicSetholdData(SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:DATa`` command. + + **Description:** + - This query-only command returns the voltage threshold and data source for the setup and + hold trigger. This command is equivalent to selecting Setup/Hold Setup from the Trig menu + and then viewing the current data setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa? + + Properties: + - ``.level``: The ``TRIGger:B:LOGIc:SETHold:DATa:LEVel`` command. + - ``.source``: The ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce`` command. + - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._level = TriggerBLogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerBLogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") + self._threshold = TriggerBLogicSetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") + + @property + def level(self) -> TriggerBLogicSetholdDataLevel: + """Return the ``TRIGger:B:LOGIc:SETHold:DATa:LEVel`` command. + + **Description:** + - This command sets or queries the data voltage level for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa:LEVel?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:LEVel?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:LEVel {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:LEVel? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies is the setup and hold data level in V. + """ + return self._level + + @property + def source(self) -> TriggerBLogicSetholdDataSource: + """Return the ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce`` command. + + **Description:** + - This command sets or queries the data source for the setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and choosing + the desired channel from the Data Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:SOUrce CH + - TRIGger:B:LOGIc:SETHold:DATa:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4. + """ + return self._source + + @property + def threshold(self) -> TriggerBLogicSetholdDataThreshold: + """Return the ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:DATa:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa:THReshold {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:DATa:THReshold? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerBLogicSetholdClockThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Clock Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + """ + + +class TriggerBLogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for the setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and setting + the desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + + Properties: + - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[ + int, TriggerBLogicSetholdClockThresholdChannel + ] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLogicSetholdClockThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBLogicSetholdClockThresholdChannel]: + """Return the ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Clock Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH?`` query and raise an AssertionError + if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + """ + return self._ch + + +class TriggerBLogicSetholdClockSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce`` command. + + **Description:** + - This command sets or queries the clock source for the A or B logic trigger setup and hold + input. This is equivalent to selecting Setup/Hold Setup from the Trig menu and choosing + the desired channel from the Clock Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce CH + - TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4 for four-channel + instruments or 1 through 2 for two channel instruments. + """ + + +class TriggerBLogicSetholdClockLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel`` command. + + **Description:** + - This command sets or queries the clock voltage level for the setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and setting the + desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:LEVel {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:LEVel? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ``NR3`` is the setup and hold data level in V. + """ + + +class TriggerBLogicSetholdClockEdge(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE`` command. + + **Description:** + - This command sets or queries the clock edge polarity for setup and hold triggering. This + is equivalent to selecting Setup/Hold Setup from the Trig menu and then choosing the + desired Clock Edge. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:EDGE {FALL|RISe} + - TRIGger:B:LOGIc:SETHold:CLOCk:EDGE? + + **Info:** + - ``FALL`` specifies polarity as the clock falling edge. + - ``RISe`` specifies polarity as the clock rising edge. + """ + + +class TriggerBLogicSetholdClock(SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold:CLOCk`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input for setup and hold triggering. This command is equivalent to selecting Setup/Hold + Setup from the Trig menu and then viewing the current clock setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk? + + Properties: + - ``.edge``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE`` command. + - ``.level``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel`` command. + - ``.source``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce`` command. + - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._edge = TriggerBLogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") + self._level = TriggerBLogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerBLogicSetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") + self._threshold = TriggerBLogicSetholdClockThreshold( + device, f"{self._cmd_syntax}:THReshold" + ) + + @property + def edge(self) -> TriggerBLogicSetholdClockEdge: + """Return the ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE`` command. + + **Description:** + - This command sets or queries the clock edge polarity for setup and hold triggering. + This is equivalent to selecting Setup/Hold Setup from the Trig menu and then choosing + the desired Clock Edge. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:EDGE {FALL|RISe} + - TRIGger:B:LOGIc:SETHold:CLOCk:EDGE? + + **Info:** + - ``FALL`` specifies polarity as the clock falling edge. + - ``RISe`` specifies polarity as the clock rising edge. + """ + return self._edge + + @property + def level(self) -> TriggerBLogicSetholdClockLevel: + """Return the ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel`` command. + + **Description:** + - This command sets or queries the clock voltage level for the setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and + setting the desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:LEVel {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:LEVel? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ``NR3`` is the setup and hold data level in V. + """ + return self._level + + @property + def source(self) -> TriggerBLogicSetholdClockSource: + """Return the ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce`` command. + + **Description:** + - This command sets or queries the clock source for the A or B logic trigger setup and + hold input. This is equivalent to selecting Setup/Hold Setup from the Trig menu and + choosing the desired channel from the Clock Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce CH + - TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4 for four-channel + instruments or 1 through 2 for two channel instruments. + """ + return self._source + + @property + def threshold(self) -> TriggerBLogicSetholdClockThreshold: + """Return the ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for the setup and hold + trigger. This command is equivalent to selecting Setup/Hold Setup from the Trig menu + and setting the desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold {ECL|TTL|} + - TRIGger:B:LOGIc:SETHold:CLOCk:THReshold? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerBLogicSethold(SCPICmdRead): + """The ``TRIGger:B:LOGIc:SETHold`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input, data voltage threshold and source, and both setup and hold times for setup and hold + violation triggering. This command is equivalent to selecting Setup/Hold Setup from the + Trig menu and then viewing the current setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold? + + Properties: + - ``.clock``: The ``TRIGger:B:LOGIc:SETHold:CLOCk`` command. + - ``.data``: The ``TRIGger:B:LOGIc:SETHold:DATa`` command. + - ``.holdtime``: The ``TRIGger:B:LOGIc:SETHold:HOLDTime`` command. + - ``.qualify``: The ``TRIGger:B:LOGIc:SETHold:QUAlify`` command. + - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._clock = TriggerBLogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") + self._data = TriggerBLogicSetholdData(device, f"{self._cmd_syntax}:DATa") + self._holdtime = TriggerBLogicSetholdHoldtime(device, f"{self._cmd_syntax}:HOLDTime") + self._qualify = TriggerBLogicSetholdQualify(device, f"{self._cmd_syntax}:QUAlify") + self._settime = TriggerBLogicSetholdSettime(device, f"{self._cmd_syntax}:SETTime") + + @property + def clock(self) -> TriggerBLogicSetholdClock: + """Return the ``TRIGger:B:LOGIc:SETHold:CLOCk`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input for setup and hold triggering. This command is equivalent to selecting + Setup/Hold Setup from the Trig menu and then viewing the current clock setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:CLOCk?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:CLOCk? + + Sub-properties: + - ``.edge``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:EDGE`` command. + - ``.level``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:LEVel`` command. + - ``.source``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:SOUrce`` command. + - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:CLOCk:THReshold`` command. + """ + return self._clock + + @property + def data(self) -> TriggerBLogicSetholdData: + """Return the ``TRIGger:B:LOGIc:SETHold:DATa`` command. + + **Description:** + - This query-only command returns the voltage threshold and data source for the setup + and hold trigger. This command is equivalent to selecting Setup/Hold Setup from the + Trig menu and then viewing the current data setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:DATa?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:DATa? + + Sub-properties: + - ``.level``: The ``TRIGger:B:LOGIc:SETHold:DATa:LEVel`` command. + - ``.source``: The ``TRIGger:B:LOGIc:SETHold:DATa:SOUrce`` command. + - ``.threshold``: The ``TRIGger:B:LOGIc:SETHold:DATa:THReshold`` command. + """ + return self._data + + @property + def holdtime(self) -> TriggerBLogicSetholdHoldtime: + """Return the ``TRIGger:B:LOGIc:SETHold:HOLDTime`` command. + + **Description:** + - This command sets or queries the hold time for setup and hold violation triggering. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Hold Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:HOLDTime?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:HOLDTime?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:HOLDTime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:HOLDTime + - TRIGger:B:LOGIc:SETHold:HOLDTime? + + **Info:** + - ```` specifies the hold time setting in seconds. Positive values for hold time + occur after the clock edge. Negative values occur before the clock edge. + """ + return self._holdtime + + @property + def qualify(self) -> TriggerBLogicSetholdQualify: + """Return the ``TRIGger:B:LOGIc:SETHold:QUAlify`` command. + + **Description:** + - This command sets or queries the Setup/Hold Trigger qualification. This is equivalent + to selecting Setup/Hold Setup from the Trig menu and selecting Occurs, Logic, or Bus + in the Trigger If Setup/Hold drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:QUAlify?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:B:LOGIc:SETHold:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def settime(self) -> TriggerBLogicSetholdSettime: + """Return the ``TRIGger:B:LOGIc:SETHold:SETTime`` command. + + **Description:** + - This command sets or queries the setup time for setup and hold violation triggering. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Setup Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold:SETTime?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold:SETTime?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:SETHold:SETTime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold:SETTime + - TRIGger:B:LOGIc:SETHold:SETTime? + + **Info:** + - ```` specifies the setup time for setup and hold violation triggering. + """ + return self._settime + + +class TriggerBLogicPatternWhenMorelimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. + + **Description:** + - This command sets or queries the minimum time that the selected pattern can be true and + still generate an A or B logic pattern trigger. This command is equivalent to selecting A + or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern as the Trigger Type, + selecting More Than for the Pattern in the Trigger When settings, and entering a minimum + value for Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:WHEn:MORELimit + - TRIGger:B:LOGIc:PATtern:WHEn:MORELimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + + +class TriggerBLogicPatternWhenLesslimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit`` command. + + **Description:** + - This command sets or queries the maximum time that the selected pattern can be true and + still generate an A or B logic pattern trigger. This command is equivalent to selecting + the A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern as the Trigger + Type, selecting Less Than for the Pattern in the Trigger When settings, and entering a + maximum value for Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit + - TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + + +class TriggerBLogicPatternWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic pattern trigger + with respect to the defined input pattern. This command is equivalent to selecting A or B + Event (Main) Trigger Setup from the Trig menu, selecting Pattern for Trigger Type, and + choosing a trigger condition from the Pattern drop-down list, which is located in the + Trigger When group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:PATtern:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:PATtern:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:WHEn {TRUe|FALSe|LESSThan|MOREThan} + - TRIGger:B:LOGIc:PATtern:WHEn? + + **Info:** + - ``TRUe`` sets the instrument to trigger when the pattern becomes true. + - ``FALSe`` sets the instrument to trigger when the pattern becomes false. + - ``LESSThan`` sets the instrument to trigger if the specific pattern is true less than the + time set by the. + - ``MOREThan`` argument sets the instrument to trigger if the specific pattern is true + longer than the specified time set by the. + + Properties: + - ``.lesslimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit`` command. + - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lesslimit = TriggerBLogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") + self._morelimit = TriggerBLogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") + + @property + def lesslimit(self) -> TriggerBLogicPatternWhenLesslimit: + """Return the ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit`` command. + + **Description:** + - This command sets or queries the maximum time that the selected pattern can be true + and still generate an A or B logic pattern trigger. This command is equivalent to + selecting the A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern + as the Trigger Type, selecting Less Than for the Pattern in the Trigger When settings, + and entering a maximum value for Time. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit + - TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + return self._lesslimit + + @property + def morelimit(self) -> TriggerBLogicPatternWhenMorelimit: + """Return the ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. + + **Description:** + - This command sets or queries the minimum time that the selected pattern can be true + and still generate an A or B logic pattern trigger. This command is equivalent to + selecting A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern as + the Trigger Type, selecting More Than for the Pattern in the Trigger When settings, + and entering a minimum value for Time. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:WHEn:MORELimit + - TRIGger:B:LOGIc:PATtern:WHEn:MORELimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + return self._morelimit + + +class TriggerBLogicPatternInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input for the specified channel. + This command specifies the logic value used when the pattern trigger detects the threshold + level. This command is equivalent to selecting Logic Pattern from the Trig menu and then + choosing the desired logical input from the channel drop-down list, which is located in + the Input Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:INPut:CH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:PATtern:INPut:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:INPut:CH {HIGH|LOW|X} + - TRIGger:B:LOGIc:PATtern:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + + +class TriggerBLogicPatternInput(SCPICmdRead): + """The ``TRIGger:B:LOGIc:PATtern:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:PATtern:INPut?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBLogicPatternInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBLogicPatternInputChannel]: + """Return the ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input for the specified channel. + This command specifies the logic value used when the pattern trigger detects the + threshold level. This command is equivalent to selecting Logic Pattern from the Trig + menu and then choosing the desired logical input from the channel drop-down list, + which is located in the Input Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:INPut:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:INPut:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:INPut:CH {HIGH|LOW|X} + - TRIGger:B:LOGIc:PATtern:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + return self._ch + + +class TriggerBLogicPattern(SCPICmdRead): + """The ``TRIGger:B:LOGIc:PATtern`` command. + + **Description:** + - This query-only command returns the conditions used for generating an A logic pattern + trigger, with respect to the defined input pattern, and identifies the maximum and minimum + time that the selected pattern can be true and still generate the trigger. This command is + equivalent to selecting Logic Pattern from the Trig menu and then viewing the current + setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:PATtern?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern? + + Properties: + - ``.input``: The ``TRIGger:B:LOGIc:PATtern:INPut`` command tree. + - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._input = TriggerBLogicPatternInput(device, f"{self._cmd_syntax}:INPut") + self._when = TriggerBLogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def input(self) -> TriggerBLogicPatternInput: + """Return the ``TRIGger:B:LOGIc:PATtern:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:PATtern:INPut?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:LOGIc:PATtern:INPut:CH`` command. + """ + return self._input + + @property + def when(self) -> TriggerBLogicPatternWhen: + """Return the ``TRIGger:B:LOGIc:PATtern:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic pattern + trigger with respect to the defined input pattern. This command is equivalent to + selecting A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern for + Trigger Type, and choosing a trigger condition from the Pattern drop-down list, which + is located in the Trigger When group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:PATtern:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:PATtern:WHEn value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern:WHEn {TRUe|FALSe|LESSThan|MOREThan} + - TRIGger:B:LOGIc:PATtern:WHEn? + + **Info:** + - ``TRUe`` sets the instrument to trigger when the pattern becomes true. + - ``FALSe`` sets the instrument to trigger when the pattern becomes false. + - ``LESSThan`` sets the instrument to trigger if the specific pattern is true less than + the time set by the. + - ``MOREThan`` argument sets the instrument to trigger if the specific pattern is true + longer than the specified time set by the. + + Sub-properties: + - ``.lesslimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:LESSLimit`` command. + - ``.morelimit``: The ``TRIGger:B:LOGIc:PATtern:WHEn:MORELimit`` command. + """ + return self._when + + +class TriggerBLogicInputFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:INPut:FORMat`` command. + + **Description:** + - This command sets or queries the A or B logic trigger pattern format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:INPut:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut:FORMat {HEXadecimal|BINary} + - TRIGger:B:LOGIc:INPut:FORMat? + + **Info:** + - ``HEXadecimal`` specifies hexadecimal pattern format for A or B logic trigger. + - ``BINary`` specifies binary pattern format for A or B logic trigger. + """ + + +class TriggerBLogicInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logical trigger input for the channel specified by + x. The value of x ranges from 1 through 3. Note that CH4 cannot be set or queried with + this command. For details about setting this channel, see . This command is equivalent to + selecting Event Trigger Setup from the Trig menu and then choosing the desired logical + input from the Ch drop-down list, which is located in the Input Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut:CH?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:INPut:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut:CH {HIGH|LOW|X} + - TRIGger:B:LOGIc:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + + +class TriggerBLogicInputAll(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:INPut:ALL`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input condition for all the + channels. The command is available when the Trigger Type is set to Pattern/State. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut:ALL?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut:ALL?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:INPut:ALL value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut:ALL + - TRIGger:B:LOGIc:INPut:ALL? + + **Info:** + - ```` specifies the bit pattern for all the channels. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerBLogicInput(SCPICmdRead): + """The ``TRIGger:B:LOGIc:INPut`` command. + + **Description:** + - This query-only command returns the logic trigger input expected for Channel 1, 2, and 3. + Channel 4 is set or queried with the command . This command is equivalent to selecting + Event Trigger Setup and viewing or setting the Input Threshold for the channels. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut? + + Properties: + - ``.all``: The ``TRIGger:B:LOGIc:INPut:ALL`` command. + - ``.ch``: The ``TRIGger:B:LOGIc:INPut:CH`` command. + - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._all = TriggerBLogicInputAll(device, f"{self._cmd_syntax}:ALL") + self._ch: Dict[int, TriggerBLogicInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + self._format = TriggerBLogicInputFormat(device, f"{self._cmd_syntax}:FORMat") + + @property + def all(self) -> TriggerBLogicInputAll: + """Return the ``TRIGger:B:LOGIc:INPut:ALL`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input condition for all the + channels. The command is available when the Trigger Type is set to Pattern/State. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut:ALL?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut:ALL?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:INPut:ALL value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut:ALL + - TRIGger:B:LOGIc:INPut:ALL? + + **Info:** + - ```` specifies the bit pattern for all the channels. + """ + return self._all + + @property + def ch(self) -> Dict[int, TriggerBLogicInputChannel]: + """Return the ``TRIGger:B:LOGIc:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logical trigger input for the channel + specified by x. The value of x ranges from 1 through 3. Note that CH4 cannot be set or + queried with this command. For details about setting this channel, see . This command + is equivalent to selecting Event Trigger Setup from the Trig menu and then choosing + the desired logical input from the Ch drop-down list, which is located in the Input + Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:INPut:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut:CH {HIGH|LOW|X} + - TRIGger:B:LOGIc:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + return self._ch + + @property + def format(self) -> TriggerBLogicInputFormat: + """Return the ``TRIGger:B:LOGIc:INPut:FORMat`` command. + + **Description:** + - This command sets or queries the A or B logic trigger pattern format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:LOGIc:INPut:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut:FORMat {HEXadecimal|BINary} + - TRIGger:B:LOGIc:INPut:FORMat? + + **Info:** + - ``HEXadecimal`` specifies hexadecimal pattern format for A or B logic trigger. + - ``BINary`` specifies binary pattern format for A or B logic trigger. + """ + return self._format + + +class TriggerBLogicFunction(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:FUNCtion`` command. + + **Description:** + - This command sets or queries the logical combination of the input channels for logic + triggers. This command is equivalent to selecting Logic for the Trigger Type, and setting + or viewing the Define Logic. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:FUNCtion?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:FUNCtion?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:FUNCtion value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:FUNCtion {AND|NANd|NOR|OR} + - TRIGger:B:LOGIc:FUNCtion? + + **Info:** + - ``AND`` specifies to trigger if all conditions are true. + - ``NANd`` specifies to trigger if any of the conditions are false. + - ``NOR`` specifies to trigger if all conditions are false. + - ``OR`` specifies to trigger if any of the conditions are true. + """ + + +class TriggerBLogicClass(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LOGIc:CLAss`` command. + + **Description:** + - This command sets or queries the class of the Logic Trigger. Used with the command, this + command is equivalent to selecting Logic Pattern, Logic State, or Setup/Hold Setup from + the Trig menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:CLAss value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:CLAss {PATtern|STATE|SETHold} + - TRIGger:B:LOGIc:CLAss? + + **Info:** + - ``PATtern`` sets the instrument to trigger when the specified logical combinations of + Channels 1, 2, 3, and 4 are met. + - ``STATE`` sets the instrument to trigger when the specified conditions of Channels 1, 2, + and 3 are met after the Channel 4 (clock) condition is met. + - ``SETHold`` sets the instrument to trigger on setup and hold violations between a data + source and a clock source. Use one channel input as the clock signal and a second channel + input as the data input. The clocking and data levels are used to determine if a clock or + data transition has occurred. + """ + + +class TriggerBLogic(SCPICmdRead): + """The ``TRIGger:B:LOGIc`` command. + + **Description:** + - This query-only command returns all of the logic trigger parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc? + + Properties: + - ``.class``: The ``TRIGger:B:LOGIc:CLAss`` command. + - ``.function``: The ``TRIGger:B:LOGIc:FUNCtion`` command. + - ``.input``: The ``TRIGger:B:LOGIc:INPut`` command. + - ``.pattern``: The ``TRIGger:B:LOGIc:PATtern`` command. + - ``.sethold``: The ``TRIGger:B:LOGIc:SETHold`` command. + - ``.state``: The ``TRIGger:B:LOGIc:STATE`` command. + - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._class = TriggerBLogicClass(device, f"{self._cmd_syntax}:CLAss") + self._function = TriggerBLogicFunction(device, f"{self._cmd_syntax}:FUNCtion") + self._input = TriggerBLogicInput(device, f"{self._cmd_syntax}:INPut") + self._pattern = TriggerBLogicPattern(device, f"{self._cmd_syntax}:PATtern") + self._sethold = TriggerBLogicSethold(device, f"{self._cmd_syntax}:SETHold") + self._state = TriggerBLogicState(device, f"{self._cmd_syntax}:STATE") + self._threshold = TriggerBLogicThreshold(device, f"{self._cmd_syntax}:THReshold") + + @property + def class_(self) -> TriggerBLogicClass: + """Return the ``TRIGger:B:LOGIc:CLAss`` command. + + **Description:** + - This command sets or queries the class of the Logic Trigger. Used with the command, + this command is equivalent to selecting Logic Pattern, Logic State, or Setup/Hold + Setup from the Trig menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:CLAss value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:CLAss {PATtern|STATE|SETHold} + - TRIGger:B:LOGIc:CLAss? + + **Info:** + - ``PATtern`` sets the instrument to trigger when the specified logical combinations of + Channels 1, 2, 3, and 4 are met. + - ``STATE`` sets the instrument to trigger when the specified conditions of Channels 1, + 2, and 3 are met after the Channel 4 (clock) condition is met. + - ``SETHold`` sets the instrument to trigger on setup and hold violations between a data + source and a clock source. Use one channel input as the clock signal and a second + channel input as the data input. The clocking and data levels are used to determine if + a clock or data transition has occurred. + """ + return self._class + + @property + def function(self) -> TriggerBLogicFunction: + """Return the ``TRIGger:B:LOGIc:FUNCtion`` command. + + **Description:** + - This command sets or queries the logical combination of the input channels for logic + triggers. This command is equivalent to selecting Logic for the Trigger Type, and + setting or viewing the Define Logic. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:FUNCtion?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:FUNCtion?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LOGIc:FUNCtion value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:FUNCtion {AND|NANd|NOR|OR} + - TRIGger:B:LOGIc:FUNCtion? + + **Info:** + - ``AND`` specifies to trigger if all conditions are true. + - ``NANd`` specifies to trigger if any of the conditions are false. + - ``NOR`` specifies to trigger if all conditions are false. + - ``OR`` specifies to trigger if any of the conditions are true. + """ + return self._function + + @property + def input(self) -> TriggerBLogicInput: + """Return the ``TRIGger:B:LOGIc:INPut`` command. + + **Description:** + - This query-only command returns the logic trigger input expected for Channel 1, 2, and + 3. Channel 4 is set or queried with the command . This command is equivalent to + selecting Event Trigger Setup and viewing or setting the Input Threshold for the + channels. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:INPut?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:INPut? + + Sub-properties: + - ``.all``: The ``TRIGger:B:LOGIc:INPut:ALL`` command. + - ``.ch``: The ``TRIGger:B:LOGIc:INPut:CH`` command. + - ``.format``: The ``TRIGger:B:LOGIc:INPut:FORMat`` command. + """ + return self._input + + @property + def pattern(self) -> TriggerBLogicPattern: + """Return the ``TRIGger:B:LOGIc:PATtern`` command. + + **Description:** + - This query-only command returns the conditions used for generating an A logic pattern + trigger, with respect to the defined input pattern, and identifies the maximum and + minimum time that the selected pattern can be true and still generate the trigger. + This command is equivalent to selecting Logic Pattern from the Trig menu and then + viewing the current setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:PATtern?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:PATtern? + + Sub-properties: + - ``.input``: The ``TRIGger:B:LOGIc:PATtern:INPut`` command tree. + - ``.when``: The ``TRIGger:B:LOGIc:PATtern:WHEn`` command. + """ + return self._pattern + + @property + def sethold(self) -> TriggerBLogicSethold: + """Return the ``TRIGger:B:LOGIc:SETHold`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input, data voltage threshold and source, and both setup and hold times for setup and + hold violation triggering. This command is equivalent to selecting Setup/Hold Setup + from the Trig menu and then viewing the current setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:SETHold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:SETHold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:SETHold? + + Sub-properties: + - ``.clock``: The ``TRIGger:B:LOGIc:SETHold:CLOCk`` command. + - ``.data``: The ``TRIGger:B:LOGIc:SETHold:DATa`` command. + - ``.holdtime``: The ``TRIGger:B:LOGIc:SETHold:HOLDTime`` command. + - ``.qualify``: The ``TRIGger:B:LOGIc:SETHold:QUAlify`` command. + - ``.settime``: The ``TRIGger:B:LOGIc:SETHold:SETTime`` command. + """ + return self._sethold + + @property + def state(self) -> TriggerBLogicState: + """Return the ``TRIGger:B:LOGIc:STATE`` command. + + **Description:** + - This query-only command returns the data input and trigger criteria for the logic + trigger. This command is equivalent to selecting Logic State from the Trig menu and + then viewing the current logic state settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:STATE?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:STATE? + + Sub-properties: + - ``.input``: The ``TRIGger:B:LOGIc:STATE:INPut`` command tree. + - ``.when``: The ``TRIGger:B:LOGIc:STATE:WHEn`` command. + """ + return self._state + + @property + def threshold(self) -> TriggerBLogicThreshold: + """Return the ``TRIGger:B:LOGIc:THReshold`` command. + + **Description:** + - This query-only command returns the threshold voltage for all channels in a logic + trigger. This command query is equivalent to selecting Event Trigger Setup from the + Trig menu, choosing a logic trigger type, such as State or Pattern, and viewing the + current Input Threshold voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc:THReshold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc:THReshold? + + Sub-properties: + - ``.ch``: The ``TRIGger:B:LOGIc:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerBLevelChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LEVel:CH`` command. + + **Description:** + - This command sets or queries the CH trigger level for + ``TRIGGER:LVLSRCPREFERENCE SRCDEPENDENT`` mode. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LEVel:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LEVel:CH?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LEVel:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LEVel:CH {ECL|TTL|} + - TRIGger:B:LEVel:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + + +class TriggerBLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:LEVel`` command. + + **Description:** + - This command sets or queries the level for the trigger. This command is equivalent to + selecting Holdoff from the Trig menu and then viewing or setting the trigger Level or + selecting B Event (Delayed) Trigger Setup from the Trig menu and setting the B Trig Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LEVel?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LEVel {ECL|TTL|} + - TRIGger:B:LEVel? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + + Properties: + - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBLevelChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBLevelChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBLevelChannel]: + """Return the ``TRIGger:B:LEVel:CH`` command. + + **Description:** + - This command sets or queries the CH trigger level for + ``TRIGGER:LVLSRCPREFERENCE SRCDEPENDENT`` mode. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LEVel:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LEVel:CH?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LEVel:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LEVel:CH {ECL|TTL|} + - TRIGger:B:LEVel:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + return self._ch + + +class TriggerBEventsCount(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:EVENTS:COUNt`` command. + + **Description:** + - This command sets or queries the number of events that must occur before the B trigger. + The B trigger event count applies only if ``TRIGger:B:BY`` is set to EVENTS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EVENTS:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EVENTS:COUNt?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EVENTS:COUNt value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EVENTS:COUNt + - TRIGger:B:EVENTS:COUNt? + + **Info:** + - ```` is the number of B trigger events, which can range from 1 to 65,471. + """ + + +class TriggerBEvents(SCPICmdRead): + """The ``TRIGger:B:EVENTS`` command. + + **Description:** + - Returns the current B trigger events parameter. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EVENTS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EVENTS?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EVENTS? + + Properties: + - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._count = TriggerBEventsCount(device, f"{self._cmd_syntax}:COUNt") + + @property + def count(self) -> TriggerBEventsCount: + """Return the ``TRIGger:B:EVENTS:COUNt`` command. + + **Description:** + - This command sets or queries the number of events that must occur before the B + trigger. The B trigger event count applies only if ``TRIGger:B:BY`` is set to EVENTS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EVENTS:COUNt?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EVENTS:COUNt?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EVENTS:COUNt value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EVENTS:COUNt + - TRIGger:B:EVENTS:COUNt? + + **Info:** + - ```` is the number of B trigger events, which can range from 1 to 65,471. + """ + return self._count + + +class TriggerBEdgeSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:EDGE:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the edge trigger. This command is equivalent + to selecting Event Trigger Setup from the Trig menu and then choosing from the Source + drop-down list. When an UltraSync stack is in use, the mapped channels are used to both + acquire waveform data and to trigger the oscilloscope. In the special case of an UltraSync + stack master, additional channels are available for triggering. These are the unmapped + channels. For an ATI UltraSync Sstack master, CH2, MCH1, and MCH3 can be used for + triggering. For a 4-Channel UltraSync stack master, CH1, MCH2, MCH3, and MCH4 are + available for triggering. The vertical min/max amplitude for these signals must be setup. + See for more details. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EDGE:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:SOUrce {AUXiliary|CH|MCH|LINE|D} + - TRIGger:B:EDGE:SOUrce? + + **Info:** + - ``AUXiliary`` specifies an external trigger using the Auxiliary Trigger Input. x can be 1, + 2, 3, or 4. + - ``CH`` specifies one input channel as the edge trigger source. + - ``MCH`` specifies an unmapped channel on an UltraSync stack master. For more details + see. + - ``LINE`` specifies AC line voltage, and is for A Trigger only. + - ``D`` specifies a digital input as the edge trigger source. x can be 0 through 15. + """ + + +class TriggerBEdgeSlope(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:EDGE:SLOpe`` command. + + **Description:** + - This command sets or queries the slope for the edge trigger. This command is equivalent to + selecting Edge from the Trigger Type drop-down in the Trigger setup context menu, and then + choosing the desired Slope. This command is also equivalent to pressing the front-panel + Slope button. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:SLOpe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:SLOpe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EDGE:SLOpe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:SLOpe {RISe|FALL|EITher} + - TRIGger:B:EDGE:SLOpe? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerBEdgeCouplingChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:EDGE:COUPling:CH`` command. + + **Description:** + - This command sets or queries the type of coupling for the A or B trigger for the specified + channel. This command is equivalent to selecting A or B Trigger Setup from the Trig menu + and choosing the setting from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:COUPling:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:COUPling:CH?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EDGE:COUPling:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:COUPling:CH {AC|DC|HFRej|LFRej|NOISErej} + - TRIGger:B:EDGE:COUPling:CH? + + **Info:** + - ``AC`` selects AC trigger coupling. + - ``DC`` selects DC trigger coupling. + - ``HFRej`` selects high frequency low sensitivity. + - ``LFRej`` selects low frequency low sensitivity. + - ``NOISErej`` selects DC low sensitivity. + """ + + +class TriggerBEdgeCoupling(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:EDGE:COUPling`` command. + + **Description:** + - This command sets or queries the type of coupling for the edge trigger. This command is + equivalent to selecting Event Trigger Setup from the Trig menu, selecting Edge Trigger, + and choosing from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:COUPling?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:COUPling?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EDGE:COUPling value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:COUPling {AC|DC|HFRej|LFRej|NOISErej|ATRIGger} + - TRIGger:B:EDGE:COUPling? + + **Info:** + - ``AC`` selects AC trigger coupling, which passes the input signals above 60 Hz to the + trigger circuitry. + - ``DC`` selects DC trigger coupling, which passes all input signals to the trigger + circuitry. + - ``HFRej`` coupling attenuates signals above 50 kHz before passing the signals to the + trigger circuitry. + - ``LFRej`` coupling attenuates signals below 80 kHz before passing the signals to the + trigger circuitry. + - ``NOISErej`` coupling provides stable triggering by increasing the trigger hysteresis. + Increased hysteresis reduces the trigger sensitivity to noise but can require greater + trigger signal amplitude. + - ``ATRIGger`` this B trigger command sets the B trigger coupling to match the setting on + the A trigger. + + Properties: + - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerBEdgeCouplingChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerBEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerBEdgeCouplingChannel]: + """Return the ``TRIGger:B:EDGE:COUPling:CH`` command. + + **Description:** + - This command sets or queries the type of coupling for the A or B trigger for the + specified channel. This command is equivalent to selecting A or B Trigger Setup from + the Trig menu and choosing the setting from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:COUPling:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:COUPling:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:B:EDGE:COUPling:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:COUPling:CH {AC|DC|HFRej|LFRej|NOISErej} + - TRIGger:B:EDGE:COUPling:CH? + + **Info:** + - ``AC`` selects AC trigger coupling. + - ``DC`` selects DC trigger coupling. + - ``HFRej`` selects high frequency low sensitivity. + - ``LFRej`` selects low frequency low sensitivity. + - ``NOISErej`` selects DC low sensitivity. + """ + return self._ch + + +class TriggerBEdge(SCPICmdRead): + """The ``TRIGger:B:EDGE`` command. + + **Description:** + - This query-only command returns the trigger source, coupling, and slope for the specified + edge trigger. This command is equivalent to selecting Edge Setup from the Trig menu and + viewing the current setups, or selecting B Event (Delayed) Trigger Setup from the Trig + menu and viewing the current Source, Slope, and Coupling settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE? + + Properties: + - ``.coupling``: The ``TRIGger:B:EDGE:COUPling`` command. + - ``.slope``: The ``TRIGger:B:EDGE:SLOpe`` command. + - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._coupling = TriggerBEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") + self._slope = TriggerBEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") + self._source = TriggerBEdgeSource(device, f"{self._cmd_syntax}:SOUrce") + + @property + def coupling(self) -> TriggerBEdgeCoupling: + """Return the ``TRIGger:B:EDGE:COUPling`` command. + + **Description:** + - This command sets or queries the type of coupling for the edge trigger. This command + is equivalent to selecting Event Trigger Setup from the Trig menu, selecting Edge + Trigger, and choosing from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:COUPling?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:COUPling?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EDGE:COUPling value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:COUPling {AC|DC|HFRej|LFRej|NOISErej|ATRIGger} + - TRIGger:B:EDGE:COUPling? + + **Info:** + - ``AC`` selects AC trigger coupling, which passes the input signals above 60 Hz to the + trigger circuitry. + - ``DC`` selects DC trigger coupling, which passes all input signals to the trigger + circuitry. + - ``HFRej`` coupling attenuates signals above 50 kHz before passing the signals to the + trigger circuitry. + - ``LFRej`` coupling attenuates signals below 80 kHz before passing the signals to the + trigger circuitry. + - ``NOISErej`` coupling provides stable triggering by increasing the trigger hysteresis. + Increased hysteresis reduces the trigger sensitivity to noise but can require greater + trigger signal amplitude. + - ``ATRIGger`` this B trigger command sets the B trigger coupling to match the setting + on the A trigger. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:EDGE:COUPling:CH`` command. + """ + return self._coupling + + @property + def slope(self) -> TriggerBEdgeSlope: + """Return the ``TRIGger:B:EDGE:SLOpe`` command. + + **Description:** + - This command sets or queries the slope for the edge trigger. This command is + equivalent to selecting Edge from the Trigger Type drop-down in the Trigger setup + context menu, and then choosing the desired Slope. This command is also equivalent to + pressing the front-panel Slope button. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:SLOpe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:SLOpe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EDGE:SLOpe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:SLOpe {RISe|FALL|EITher} + - TRIGger:B:EDGE:SLOpe? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._slope + + @property + def source(self) -> TriggerBEdgeSource: + """Return the ``TRIGger:B:EDGE:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the edge trigger. This command is + equivalent to selecting Event Trigger Setup from the Trig menu and then choosing from + the Source drop-down list. When an UltraSync stack is in use, the mapped channels are + used to both acquire waveform data and to trigger the oscilloscope. In the special + case of an UltraSync stack master, additional channels are available for triggering. + These are the unmapped channels. For an ATI UltraSync Sstack master, CH2, MCH1, and + MCH3 can be used for triggering. For a 4-Channel UltraSync stack master, CH1, MCH2, + MCH3, and MCH4 are available for triggering. The vertical min/max amplitude for these + signals must be setup. See for more details. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:EDGE:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE:SOUrce {AUXiliary|CH|MCH|LINE|D} + - TRIGger:B:EDGE:SOUrce? + + **Info:** + - ``AUXiliary`` specifies an external trigger using the Auxiliary Trigger Input. x can + be 1, 2, 3, or 4. + - ``CH`` specifies one input channel as the edge trigger source. + - ``MCH`` specifies an unmapped channel on an UltraSync stack master. For more + details see. + - ``LINE`` specifies AC line voltage, and is for A Trigger only. + - ``D`` specifies a digital input as the edge trigger source. x can be 0 through 15. + """ + return self._source + + +class TriggerBBy(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B:BY`` command. + + **Description:** + - This command selects or returns one of three methods for sequencing an A-Event followed by + a B-Event to trigger the oscilloscope. Equivalent methods can be found on the A →B + Sequence Tab of the Trigger menu. In this context, the A-Event can be Edge, any Pulse, or + any Logic Trigger type. The Pulse types are Glitch, Width, Runt, Timeout, Transition, + Window, or Frequency/Period trigger types. Similarly, the B-Events can be Edge, any Pulse, + or any Logic Trigger Type. Reset Events and Logic-Qualification can be used in combination + with the first two ``TRIGger:B:BY`` methods. This gives several thousand ways to trigger + the oscilloscope using hardware alone. When combined with Enhanced and Visual Trigger + software, there are essentially an infinite number of ways to capture signals on the + oscilloscope. The first method, EVENTS or Delay By Events, causes the oscilloscope to + trigger when a specified number of B-Events occurs after the A-Event has occurred. That + is, after the A-Event occurs, the oscilloscope waits until the nth B-Event to trigger the + oscilloscope. You set the value for N. After the scope triggers on the nth B-Event, it + goes back to waiting for another A-Event to occur. The second method, TIME or Delay By + Time, causes the oscilloscope to trigger when a B-Event occurs at least a specified amount + of time after the A-Event occurs. That is, the oscilloscope waits for the A-Event to + occur, then waits the specified amount of time, and then waits for the B-Event to trigger + the oscilloscope. You set the specified time. After the oscilloscope triggers on the + B-Event, it goes back to waiting for another A-Event to occur. The third method, ARMAtrigB + or Arm-On-A-Event, Trigger On-B-Event, is conceptually different, and has additional + restrictions. Here, the oscilloscope waits for the A-Event to occur (once), before arming + the oscilloscope to trigger on one or more B-Events. Once armed, the oscilloscope does not + return to looking for an A-Event. Historically, the oscilloscope is armed by pressing the + RUN or SINGLE SEQUENCE button (physical or on user interface). These methods of arming the + oscilloscope are just fine in most situations. However, they are asynchronous and + unrelated to the signals monitored by the trigger system. The ARMAtrigB method arms the + oscilloscope for triggering based on real-time events occurring in the signals under test. + That is, reception of an A-Event arms the oscilloscope for triggering on one or more + B-Events. There is a minimum time required by the hardware between the A- and B-Events of + about 10 ns. The key point is that the oscilloscope is armed by the A-Event occurring in + the signals under test. The ARMAtrigB method does not allow the use of Logic Trigger Types + (Pattern, State, or SetupHold) for either the A- or B-Events. It further does not allow + Logic-Qualification or Reset Events. It also coerces the Trigger Mode to Normal (not + Auto), and Holdoff by Time. These restrictions insure that the oscilloscope will not miss + the first B-Event after the A-Event. You can use the ARM on A trig on B method on a stand + alone oscilloscope, or on a TimeSync or UltraSync stack of oscilloscopes. It can be used + in Single Step or Continuous Acquisitions. It can be used with FastFrame or Normal + Acquisitions. When a stack of oscilloscopes is used, the acquired channels are mapped one + channel from each oscilloscope in the stack. To make the most use of these acquired + channels, the Master oscilloscope unmapped channels are available for triggering. The + unmapped channels on the master oscilloscope are designated as MCh1, MCh2, MCh3, or MCh4 + in the user interface and the programmable interface. These channels are available for + triggering when a stack of oscilloscopes is used. They are only on the Stack Master. On an + ATI scope, Ch2, MCh1 and MCh3 are available for triggering. On a 4-channel oscilloscope, + Ch1, MCh2, MCh3, and MCh4 are available for triggering. See for more details. The first + application to make use of ARMAtrigB was a coherent optical recirculating loop test + system. When a switch closes to inject the optical signal into the loop, a signal is sent + to arm the oscilloscope (the A-Event). A timer is then started that emits a signal to + trigger the oscilloscope (the B-Event). This arrangement allows the oscilloscope to + capture the waveforms after the signal transist the recirculating loop one or many times + in order to determine the quality of the optical signal after transiting many 100 km of + fiber. Other applications can make similar use of this feature. For example, a pulse-width + modulated motor can be monitored to arm the oscilloscope when the pulse width (or + frequency) reaches a certain range. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:BY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:BY?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:BY value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:BY {EVENTS|TIMe|ARMAtrigb} + - TRIGger:B:BY? + + **Info:** + - ``EVENTS`` sets the B trigger to take place following a set number of trigger events after + the A trigger occurs. The number of events is specified by ``TRIGger:B:EVENTS:COUNt``. + - ``TIMe`` sets the B trigger to occur a set time after the A trigger event. The time period + is specified by ``TRIGger:B:TIMe``. + - ``ARMAtrigb`` arms the scope for triggering when the A-Event occurs (once) to trigger on + one or more B-Events. See. + """ + + +# pylint: disable=too-many-instance-attributes +class TriggerB(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:B`` command. + + **Description:** + - This command sets the B trigger level to 50% of minimum and maximum. The query form of + this command returns the B trigger parameters. This command is similar to selecting B + Event (Delayed) Trigger Setup from the Trig menu and then viewing the current setups. + + **Usage:** + - Using the ``.write(value)`` method will send the ``TRIGger:B value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B SETLevel + + **Info:** + - ``SETLevel`` sets the B trigger level to 50% of MIN and MAX. + + Properties: + - ``.by``: The ``TRIGger:B:BY`` command. + - ``.events``: The ``TRIGger:B:EVENTS`` command. + - ``.pulse``: The ``TRIGger:B:PULse`` command tree. + - ``.reset``: The ``TRIGger:B:RESET`` command tree. + - ``.scan``: The ``TRIGger:B:SCAN`` command tree. + - ``.state``: The ``TRIGger:B:STATE`` command. + - ``.time``: The ``TRIGger:B:TIMe`` command. + - ``.edge``: The ``TRIGger:B:EDGE`` command. + - ``.level``: The ``TRIGger:B:LEVel`` command. + - ``.logic``: The ``TRIGger:B:LOGIc`` command. + - ``.lowerthreshold``: The ``TRIGger:B:LOWerthreshold`` command tree. + - ``.ready``: The ``TRIGger:B:READY`` command. + - ``.type``: The ``TRIGger:B:TYPe`` command. + - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._by = TriggerBBy(device, f"{self._cmd_syntax}:BY") + self._events = TriggerBEvents(device, f"{self._cmd_syntax}:EVENTS") + self._reset = TriggerBReset(device, f"{self._cmd_syntax}:RESET") + self._scan = TriggerBScan(device, f"{self._cmd_syntax}:SCAN") + self._state = TriggerBState(device, f"{self._cmd_syntax}:STATE") + self._time = TriggerBTime(device, f"{self._cmd_syntax}:TIMe") + self._edge = TriggerBEdge(device, f"{self._cmd_syntax}:EDGE") + self._level = TriggerBLevel(device, f"{self._cmd_syntax}:LEVel") + self._logic = TriggerBLogic(device, f"{self._cmd_syntax}:LOGIc") + self._lowerthreshold = TriggerBLowerthreshold(device, f"{self._cmd_syntax}:LOWerthreshold") + self._pulse = TriggerBPulse(device, f"{self._cmd_syntax}:PULse") + self._ready = TriggerBReady(device, f"{self._cmd_syntax}:READY") + self._type = TriggerBType(device, f"{self._cmd_syntax}:TYPe") + self._upperthreshold = TriggerBUpperthreshold(device, f"{self._cmd_syntax}:UPPerthreshold") + + @property + def by(self) -> TriggerBBy: + """Return the ``TRIGger:B:BY`` command. + + **Description:** + - This command selects or returns one of three methods for sequencing an A-Event + followed by a B-Event to trigger the oscilloscope. Equivalent methods can be found on + the A →B Sequence Tab of the Trigger menu. In this context, the A-Event can be Edge, + any Pulse, or any Logic Trigger type. The Pulse types are Glitch, Width, Runt, + Timeout, Transition, Window, or Frequency/Period trigger types. Similarly, the + B-Events can be Edge, any Pulse, or any Logic Trigger Type. Reset Events and + Logic-Qualification can be used in combination with the first two ``TRIGger:B:BY`` + methods. This gives several thousand ways to trigger the oscilloscope using hardware + alone. When combined with Enhanced and Visual Trigger software, there are essentially + an infinite number of ways to capture signals on the oscilloscope. The first method, + EVENTS or Delay By Events, causes the oscilloscope to trigger when a specified number + of B-Events occurs after the A-Event has occurred. That is, after the A-Event occurs, + the oscilloscope waits until the nth B-Event to trigger the oscilloscope. You set the + value for N. After the scope triggers on the nth B-Event, it goes back to waiting for + another A-Event to occur. The second method, TIME or Delay By Time, causes the + oscilloscope to trigger when a B-Event occurs at least a specified amount of time + after the A-Event occurs. That is, the oscilloscope waits for the A-Event to occur, + then waits the specified amount of time, and then waits for the B-Event to trigger the + oscilloscope. You set the specified time. After the oscilloscope triggers on the + B-Event, it goes back to waiting for another A-Event to occur. The third method, + ARMAtrigB or Arm-On-A-Event, Trigger On-B-Event, is conceptually different, and has + additional restrictions. Here, the oscilloscope waits for the A-Event to occur (once), + before arming the oscilloscope to trigger on one or more B-Events. Once armed, the + oscilloscope does not return to looking for an A-Event. Historically, the oscilloscope + is armed by pressing the RUN or SINGLE SEQUENCE button (physical or on user + interface). These methods of arming the oscilloscope are just fine in most situations. + However, they are asynchronous and unrelated to the signals monitored by the trigger + system. The ARMAtrigB method arms the oscilloscope for triggering based on real-time + events occurring in the signals under test. That is, reception of an A-Event arms the + oscilloscope for triggering on one or more B-Events. There is a minimum time required + by the hardware between the A- and B-Events of about 10 ns. The key point is that the + oscilloscope is armed by the A-Event occurring in the signals under test. The + ARMAtrigB method does not allow the use of Logic Trigger Types (Pattern, State, or + SetupHold) for either the A- or B-Events. It further does not allow + Logic-Qualification or Reset Events. It also coerces the Trigger Mode to Normal (not + Auto), and Holdoff by Time. These restrictions insure that the oscilloscope will not + miss the first B-Event after the A-Event. You can use the ARM on A trig on B method on + a stand alone oscilloscope, or on a TimeSync or UltraSync stack of oscilloscopes. It + can be used in Single Step or Continuous Acquisitions. It can be used with FastFrame + or Normal Acquisitions. When a stack of oscilloscopes is used, the acquired channels + are mapped one channel from each oscilloscope in the stack. To make the most use of + these acquired channels, the Master oscilloscope unmapped channels are available for + triggering. The unmapped channels on the master oscilloscope are designated as MCh1, + MCh2, MCh3, or MCh4 in the user interface and the programmable interface. These + channels are available for triggering when a stack of oscilloscopes is used. They are + only on the Stack Master. On an ATI scope, Ch2, MCh1 and MCh3 are available for + triggering. On a 4-channel oscilloscope, Ch1, MCh2, MCh3, and MCh4 are available for + triggering. See for more details. The first application to make use of ARMAtrigB was a + coherent optical recirculating loop test system. When a switch closes to inject the + optical signal into the loop, a signal is sent to arm the oscilloscope (the A-Event). + A timer is then started that emits a signal to trigger the oscilloscope (the B-Event). + This arrangement allows the oscilloscope to capture the waveforms after the signal + transist the recirculating loop one or many times in order to determine the quality of + the optical signal after transiting many 100 km of fiber. Other applications can make + similar use of this feature. For example, a pulse-width modulated motor can be + monitored to arm the oscilloscope when the pulse width (or frequency) reaches a + certain range. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:BY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:BY?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:BY value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:BY {EVENTS|TIMe|ARMAtrigb} + - TRIGger:B:BY? + + **Info:** + - ``EVENTS`` sets the B trigger to take place following a set number of trigger events + after the A trigger occurs. The number of events is specified by + ``TRIGger:B:EVENTS:COUNt``. + - ``TIMe`` sets the B trigger to occur a set time after the A trigger event. The time + period is specified by ``TRIGger:B:TIMe``. + - ``ARMAtrigb`` arms the scope for triggering when the A-Event occurs (once) to trigger + on one or more B-Events. See. + """ + return self._by + + @property + def events(self) -> TriggerBEvents: + """Return the ``TRIGger:B:EVENTS`` command. + + **Description:** + - Returns the current B trigger events parameter. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EVENTS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EVENTS?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EVENTS? + + Sub-properties: + - ``.count``: The ``TRIGger:B:EVENTS:COUNt`` command. + """ + return self._events + + @property + def reset(self) -> TriggerBReset: + """Return the ``TRIGger:B:RESET`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:RESET?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:RESET?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.acceptcount``: The ``TRIGger:B:RESET:ACCEPTCOUNT`` command. + - ``.accepttimeout``: The ``TRIGger:B:RESET:ACCEPTTIMEout`` command. + - ``.ratio``: The ``TRIGger:B:RESET:RATIO`` command. + - ``.ratioenable``: The ``TRIGger:B:RESET:RATIOENable`` command. + - ``.rejectcount``: The ``TRIGger:B:RESET:REJECTCOUNT`` command. + - ``.rejecttimeout``: The ``TRIGger:B:RESET:REJECTTIMEout`` command. + - ``.source``: The ``TRIGger:B:RESET:SOUrce`` command. + - ``.state``: The ``TRIGger:B:RESET:STATE`` command. + - ``.threshold``: The ``TRIGger:B:RESET:THReshold`` command. + - ``.timeout``: The ``TRIGger:B:RESET:TIMEOut`` command. + - ``.totalcount``: The ``TRIGger:B:RESET:TOTALCOUNT`` command. + - ``.transition``: The ``TRIGger:B:RESET:TRANsition`` command. + - ``.type``: The ``TRIGger:B:RESET:TYPe`` command. + """ + return self._reset + + @property + def scan(self) -> TriggerBScan: + """Return the ``TRIGger:B:SCAN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:SCAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:SCAN?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.advanceafter``: The ``TRIGger:B:SCAN:ADVANCEafter`` command. + - ``.enable``: The ``TRIGger:B:SCAN:ENAble`` command. + - ``.endevent``: The ``TRIGger:B:SCAN:ENDevent`` command. + - ``.mode``: The ``TRIGger:B:SCAN:MODE`` command. + - ``.startevent``: The ``TRIGger:B:SCAN:STARTevent`` command. + """ + return self._scan + + @property + def state(self) -> TriggerBState: + """Return the ``TRIGger:B:STATE`` command. + + **Description:** + - This command sets or queries the state of B trigger activity. If the B trigger state + is on, the B trigger is part of the triggering sequence. If the B trigger state is + off, then only the A trigger causes the trigger event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:STATE?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:STATE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:STATE {ON|OFF|} + - TRIGger:B:STATE? + + **Info:** + - ``ON`` indicates that the B trigger is active and causes trigger events with the A + trigger. + - ``OFF`` indicates that only the A trigger causes trigger events. + - ```` is an integer number. 0 turns off the B trigger; any other value activates + the B trigger. + """ + return self._state + + @property + def time(self) -> TriggerBTime: + """Return the ``TRIGger:B:TIMe`` command. + + **Description:** + - This command sets or queries B trigger delay time, in seconds. The B Trigger time + applies only if ``TRIGger:B:BY`` is set to TIMe. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:TIMe?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:TIMe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:TIMe + - TRIGger:B:TIMe? + + **Info:** + - ```` is the B trigger delay time in seconds. + """ + return self._time + + @property + def edge(self) -> TriggerBEdge: + """Return the ``TRIGger:B:EDGE`` command. + + **Description:** + - This query-only command returns the trigger source, coupling, and slope for the + specified edge trigger. This command is equivalent to selecting Edge Setup from the + Trig menu and viewing the current setups, or selecting B Event (Delayed) Trigger Setup + from the Trig menu and viewing the current Source, Slope, and Coupling settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:EDGE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:EDGE?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:EDGE? + + Sub-properties: + - ``.coupling``: The ``TRIGger:B:EDGE:COUPling`` command. + - ``.slope``: The ``TRIGger:B:EDGE:SLOpe`` command. + - ``.source``: The ``TRIGger:B:EDGE:SOUrce`` command. + """ + return self._edge + + @property + def level(self) -> TriggerBLevel: + """Return the ``TRIGger:B:LEVel`` command. + + **Description:** + - This command sets or queries the level for the trigger. This command is equivalent to + selecting Holdoff from the Trig menu and then viewing or setting the trigger Level or + selecting B Event (Delayed) Trigger Setup from the Trig menu and setting the B Trig + Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LEVel?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LEVel {ECL|TTL|} + - TRIGger:B:LEVel? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + + Sub-properties: + - ``.ch``: The ``TRIGger:B:LEVel:CH`` command. + """ + return self._level + + @property + def logic(self) -> TriggerBLogic: + """Return the ``TRIGger:B:LOGIc`` command. + + **Description:** + - This query-only command returns all of the logic trigger parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOGIc?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:LOGIc? + + Sub-properties: + - ``.class``: The ``TRIGger:B:LOGIc:CLAss`` command. + - ``.function``: The ``TRIGger:B:LOGIc:FUNCtion`` command. + - ``.input``: The ``TRIGger:B:LOGIc:INPut`` command. + - ``.pattern``: The ``TRIGger:B:LOGIc:PATtern`` command. + - ``.sethold``: The ``TRIGger:B:LOGIc:SETHold`` command. + - ``.state``: The ``TRIGger:B:LOGIc:STATE`` command. + - ``.threshold``: The ``TRIGger:B:LOGIc:THReshold`` command. + """ + return self._logic + + @property + def lowerthreshold(self) -> TriggerBLowerthreshold: + """Return the ``TRIGger:B:LOWerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:LOWerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:LOWerthreshold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:LOWerthreshold:CH`` command. + """ + return self._lowerthreshold + + @property + def pulse(self) -> TriggerBPulse: + """Return the ``TRIGger:B:PULse`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:PULse?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:PULse?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.period``: The ``TRIGger:B:PULse:PERiod`` command. + - ``.window``: The ``TRIGger:B:PULse:WINdow`` command tree. + - ``.class``: The ``TRIGger:B:PULse:CLAss`` command. + - ``.glitch``: The ``TRIGger:B:PULse:GLItch`` command. + - ``.runt``: The ``TRIGger:B:PULse:RUNT`` command. + - ``.source``: The ``TRIGger:B:PULse:SOUrce`` command. + - ``.timeout``: The ``TRIGger:B:PULse:TIMEOut`` command. + - ``.transition``: The ``TRIGger:B:PULse:TRANsition`` command. + - ``.width``: The ``TRIGger:B:PULse:WIDth`` command. + """ + return self._pulse + + @property + def ready(self) -> TriggerBReady: + """Return the ``TRIGger:B:READY`` command. + + **Description:** + - This command queries the trigger ready state and provides the immediate state from the + trigger system. It is a more synchronous means of determining when the oscilloscope is + ready to trigger. The ``TRIGGER:STATE`` reflects a less-frequently updated status of + the trigger LEDs on the instrument front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:READY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:READY?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:B:READY? + """ + return self._ready + + @property + def type(self) -> TriggerBType: + """Return the ``TRIGger:B:TYPe`` command. + + **Description:** + - This command sets or queries the type of A or B trigger. Logic and Pulse triggers + contain classes. Logic triggers consist of State and Pattern classes; Pulse triggers + consist of Glitch, Runt, Width, Transition, Timeout, and Window classes. Once you have + set the trigger type, you might also need to identify the associated trigger class. + For details on selecting Logic and Pulse trigger classes, see and respectively. This + command is similar to selecting Event Trigger Setup from the Trig menu and then + selecting the desired Trigger Type. Some trigger types are not available on some + instruments. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:TYPe?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:B:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B:TYPe {EDGE|LOGIc|PULse|VIDeo| I2C|CAN|SPI|COMMunication|SERIAL|RS232}} + - TRIGger:B:TYPe? + + **Info:** + - ``EDGE`` is a normal trigger. A trigger event occurs when a signal passes through a + specified voltage level in a specified direction and is controlled by the + ``TRIGger:A:EDGE`` commands. + - ``LOGIc`` specifies that a trigger occurs when specified conditions are met and is + controlled by the ``TRIGger:A:LOGIc`` commands. + - ``PULse`` specifies that a trigger occurs when a specified pulse is found and is + controlled by the ``TRIGger:A:PULse`` commands. + - ``VIDeo`` specifies that the trigger occurs when a video signal is found. Requires an + instrument with video hardware. + - ``I2C`` specifies that a trigger occurs when an Inter-IC Control signal is found. + - ``CAN`` specifies that a trigger occurs when a Controller Area Network frame signal is + found. + - ``SPI`` specifies that a trigger occurs when a Serial Peripheral Interface signal is + found. + - ``COMMunication`` (Option MTM) specifies that a trigger occurs when a communications + signal is found. Supports AMI, HDB3, B3ZS, B6ZS, B8ZS, CMI, MLT3, Manchester, and NRZ + encoded communications signals. COMMunication is available only if Option MTM is + installed. + - ``SERIAL`` specifies that a trigger occurs when NRZ-encoded data is found, providing a + 32-bit serial word. This argument is available with instruments with Option PTM. + - ``RS232`` takes a signal on a data source and allows you to trigger on data within the + RS232 bitstream. The data is only one byte wide. + """ + return self._type + + @property + def upperthreshold(self) -> TriggerBUpperthreshold: + """Return the ``TRIGger:B:UPPerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:B:UPPerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:B:UPPerthreshold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:B:UPPerthreshold:CH`` command. + """ + return self._upperthreshold + + +class TriggerAuxlevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:AUXLevel`` command. + + **Description:** + - For those instruments that have an Auxiliary Input (such as an MSO58LP), this command sets + or queries the Auxiliary Input voltage level to use for an edge trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:AUXLevel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:AUXLevel?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:AUXLevel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:AUXLevel {|ECL|TTL} + - TRIGger:AUXLevel? + + **Info:** + - ```` is trigger level in Volts. + - ``ECL`` sets trigger level to -1.3 Volts. + - ``TTL`` sets trigger level to 1.4 Volts. + """ + + +class TriggerAVideoStandard(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:STANdard`` command. + + **Description:** + - This command sets or queries the video standard. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:STANdard?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:STANdard?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:STANdard value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:STANdard {BILevelcustom|TRILevelcustom|NTSc|PAL| SECAM|HD480P60|HD576P50|HD875I60|HD720P30|HD720P50| HD720P60|HD1080I50|HD1080I60|HD1080P24| HD1080P25|HD1080P30|HD1080P50|HD1080P60| HD1080SF24} + - TRIGger:A:VIDeo:STANdard? + + **Info:** + - ``BILevelcustom`` argument sets the instrument to use custom video parameters that you set + with the ``TRIGGER:A:VIDEO:CUSTOM:SYNCINTERVAL`` command. + - ``TRILevelcustom`` argument sets the instrument to use custom video horizontal scan rate + parameters that you set with the ``TRIGGER:A:VIDEO:CUSTOM:LINEPERIOD`` command. + - ``NTSc`` argument sets the instrument to trigger on video signals that meet the NTSC + 525/60/``2:1`` standard (a line rate of 525 lines per frame and a field rate of 60 Hz). + - ``PAL`` argument sets the instrument to trigger on video signals that meet the NTSC + 625/50/``2:1`` standard (a line rate of 625 lines per frame and a field rate of 50 Hz). + - ``SECAM`` argument sets the instrument to trigger on video signals that meet the SECAM + standard. + - ``HD480P60`` argument sets the instrument to trigger on the HDTV 480/60 progressive + format. + - ``HD576P50`` argument sets the instrument to trigger on the HDTV 576/50 progressive + format. + - ``HD875I60`` argument sets the instrument to trigger on the HDTV 875/60 format. + - ``HD720P30`` argument sets the instrument to trigger on the HDTV 720/30 progressive + format. + - ``HD720P50`` argument sets the instrument to trigger on the HDTV 720/50 progressive + format. + - ``HD720P60`` argument sets the instrument to trigger on the HDTV 720/60 progressive + format. + - ``HD1080I50`` argument sets the instrument to trigger on HDTV 1080/50 interlaced format. + - ``HD1080I60`` argument sets the instrument to trigger on HDTV 1080/60 interlaced format. + - ``HD1080P24`` argument sets the instrument to trigger on HDTV 1080/24 progressive format. + - ``HD1080P25`` argument sets the instrument to trigger on HDTV 1080/25 progressive format. + - ``HD1080P30`` argument sets the instrument to trigger on HDTV 1080/30 progressive format. + - ``HD1080P50`` argument sets the instrument to trigger on HDTV 1080/50 progressive format. + - ``HD1080P60`` argument sets the instrument to trigger on HDTV 1080/60 progressive format. + - ``HD1080SF24`` argument sets the instrument to trigger on HDTV 1080/24 segmented frame + format. + """ # noqa: E501 + + +class TriggerAVideoSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the A video trigger. This command is + equivalent to selecting Video Setup from the Trig menu and selecting a channel from the + Source drop-down menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:SOUrce CH + - TRIGger:A:VIDeo:SOUrce? + + **Info:** + - ``CH`` argument specifies one of the input channels of the instrument as the A video + trigger. The value of x ranges from 1 through 4. + """ + + +class TriggerAVideoScan(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:SCAN`` command. + + **Description:** + - This command sets or queries the video trigger horizontal line scan rate. This command is + for compatibility with earlier instruments. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:SCAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:SCAN?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:SCAN value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:SCAN {RATE} + - TRIGger:A:VIDeo:SCAN? + + **Info:** + - ``RATE1`` argument sets the range of the video line scan rate to 15 kHz through 20 kHz. + This is the standard broadcast rate. + - ``RATE2`` argument sets the range of the video line scan rate to 20 kHz through 25 kHz. + - ``RATE3`` argument sets the range of the video line scan rate to 25 kHz through 35 kHz. + - ``RATE4`` argument sets the range of the video line scan rate to 35 kHz through 50 kHz. + - ``RATE5`` argument sets the range of the video line scan rate to 50 kHz through 65 kHz. + """ + + +class TriggerAVideoPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:POLarity`` command. + + **Description:** + - This command sets or queries the polarity of the A video trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:POLarity?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:POLarity {INVERTed|NORMal} + - TRIGger:A:VIDeo:POLarity? + + **Info:** + - ``INVERTed`` argument sets the instrument to trigger on a positive video sync pulse. + - ``NORMal`` argument sets the instrument to trigger on a negative video sync pulse. + """ + + +class TriggerAVideoLine(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:LINE`` command. + + **Description:** + - This command lets you set the specific video line number to be used for triggering on a + video signal. You must also use the command to specify NUMERic as the video field to use. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:LINE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:LINE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:LINE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:LINE + - TRIGger:A:VIDeo:LINE? + + **Info:** + - ```` argument is an integer that sets the video line number on which the oscilloscope + triggers. The following table lists the valid choices, depending on the active video + standard. + """ + + +class TriggerAVideoHoldoffField(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. + + **Description:** + - This command sets or queries the video trigger holdoff in terms of video fields. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:HOLdoff:FIELD?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:HOLdoff:FIELD?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:HOLdoff:FIELD value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:HOLdoff:FIELD + - TRIGger:A:VIDeo:HOLdoff:FIELD? + + **Info:** + - ```` argument is a real number from 0.0 to 8.5 in increments of 0.5. The argument + sets the number of fields that the instrument waits before rearming the video trigger. + """ + + +class TriggerAVideoHoldoff(SCPICmdRead): + """The ``TRIGger:A:VIDeo:HOLdoff`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:HOLdoff?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:HOLdoff?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._field = TriggerAVideoHoldoffField(device, f"{self._cmd_syntax}:FIELD") + + @property + def field(self) -> TriggerAVideoHoldoffField: + """Return the ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. + + **Description:** + - This command sets or queries the video trigger holdoff in terms of video fields. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:HOLdoff:FIELD?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:HOLdoff:FIELD?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:VIDeo:HOLdoff:FIELD value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:HOLdoff:FIELD + - TRIGger:A:VIDeo:HOLdoff:FIELD? + + **Info:** + - ```` argument is a real number from 0.0 to 8.5 in increments of 0.5. The argument + sets the number of fields that the instrument waits before rearming the video trigger. + """ + return self._field + + +class TriggerAVideoField(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:FIELD`` command. + + **Description:** + - This command sets or queries the video field or line that the trigger detects. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:FIELD?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:FIELD?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:FIELD value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:FIELD {ODD|EVEN|FIELD|ALLFields|ALLLines|NUMERic} + - TRIGger:A:VIDeo:FIELD? + + **Info:** + - ``ODD`` argument sets the instrument to trigger on interlaced video odd fields. + - ``EVEN`` argument sets the instrument to trigger on interlaced video even fields. + - ``FIELD1`` argument sets the instrument to trigger on interlaced video odd fields (same as + ODD). + - ``FIELD2`` argument sets the instrument to trigger on interlaced video even fields (same + as EVEN). + - ``ALLFields`` argument sets the instrument to trigger on all fields. + - ``ALLLines`` argument sets the instrument to trigger on all video lines. + - ``NUMERic`` argument sets the instrument to trigger on the video signal line specified by + the ``TRIGger:A:VIDeo:LINE`` command. + """ + + +class TriggerAVideoCustomSyncinterval(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. + + **Description:** + - This command sets the sync interval for the standard under test to use for triggering on + video signals. This is only required for BiLevel Custom. To use this command, you must + also set the video standard to BILevelcustom (using ``TRIGGER:A:VIDEO:STANDARD``). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom:SYNCInterval?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:CUSTom:SYNCInterval?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:VIDeo:CUSTom:SYNCInterval value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom:SYNCInterval + - TRIGger:A:VIDeo:CUSTom:SYNCInterval? + + **Info:** + - ```` is the sync interval. + """ + + +class TriggerAVideoCustomLineperiod(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:CUSTom:LINEPeriod`` command. + + **Description:** + - This command sets the line period for the standard under test. To use this command, you + must also set the video standard to BILevelcustom or TRILevelcustom (using + ``TRIGGER:A:VIDEO:STANDARD``). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom:LINEPeriod?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:CUSTom:LINEPeriod?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:VIDeo:CUSTom:LINEPeriod value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom:LINEPeriod + - TRIGger:A:VIDeo:CUSTom:LINEPeriod? + + **Info:** + - ```` is the custom video line period. + """ + + +class TriggerAVideoCustomFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:VIDeo:CUSTom:FORMat`` command. + + **Description:** + - This command sets or queries the video trigger format. Use this command only when the + video format is set to custom. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:CUSTom:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:CUSTom:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom:FORMat {INTERLAced|PROGressive} + - TRIGger:A:VIDeo:CUSTom:FORMat? + + **Info:** + - ``INTERLAced`` argument sets the format for interlaced video lines. + - ``PROGressive`` argument sets the format for progressive video lines. + """ + + +class TriggerAVideoCustom(SCPICmdRead): + """The ``TRIGger:A:VIDeo:CUSTom`` command. + + **Description:** + - This query-only command returns the A trigger custom video parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:CUSTom?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom? + + Properties: + - ``.format``: The ``TRIGger:A:VIDeo:CUSTom:FORMat`` command. + - ``.lineperiod``: The ``TRIGger:A:VIDeo:CUSTom:LINEPeriod`` command. + - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerAVideoCustomFormat(device, f"{self._cmd_syntax}:FORMat") + self._lineperiod = TriggerAVideoCustomLineperiod(device, f"{self._cmd_syntax}:LINEPeriod") + self._syncinterval = TriggerAVideoCustomSyncinterval( + device, f"{self._cmd_syntax}:SYNCInterval" + ) + + @property + def format(self) -> TriggerAVideoCustomFormat: + """Return the ``TRIGger:A:VIDeo:CUSTom:FORMat`` command. + + **Description:** + - This command sets or queries the video trigger format. Use this command only when the + video format is set to custom. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:CUSTom:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:VIDeo:CUSTom:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom:FORMat {INTERLAced|PROGressive} + - TRIGger:A:VIDeo:CUSTom:FORMat? + + **Info:** + - ``INTERLAced`` argument sets the format for interlaced video lines. + - ``PROGressive`` argument sets the format for progressive video lines. + """ + return self._format + + @property + def lineperiod(self) -> TriggerAVideoCustomLineperiod: + """Return the ``TRIGger:A:VIDeo:CUSTom:LINEPeriod`` command. + + **Description:** + - This command sets the line period for the standard under test. To use this command, + you must also set the video standard to BILevelcustom or TRILevelcustom (using + ``TRIGGER:A:VIDEO:STANDARD``). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom:LINEPeriod?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:VIDeo:CUSTom:LINEPeriod?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:VIDeo:CUSTom:LINEPeriod value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom:LINEPeriod + - TRIGger:A:VIDeo:CUSTom:LINEPeriod? + + **Info:** + - ```` is the custom video line period. + """ + return self._lineperiod + + @property + def syncinterval(self) -> TriggerAVideoCustomSyncinterval: + """Return the ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. + + **Description:** + - This command sets the sync interval for the standard under test to use for triggering + on video signals. This is only required for BiLevel Custom. To use this command, you + must also set the video standard to BILevelcustom (using + ``TRIGGER:A:VIDEO:STANDARD``). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom:SYNCInterval?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:VIDeo:CUSTom:SYNCInterval?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:VIDeo:CUSTom:SYNCInterval value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom:SYNCInterval + - TRIGger:A:VIDeo:CUSTom:SYNCInterval? + + **Info:** + - ```` is the sync interval. + """ + return self._syncinterval + + +# pylint: disable=too-many-instance-attributes +class TriggerAVideo(SCPICmdRead): + """The ``TRIGger:A:VIDeo`` command. + + **Description:** + - Returns the A trigger video parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo? + + Properties: + - ``.custom``: The ``TRIGger:A:VIDeo:CUSTom`` command. + - ``.field``: The ``TRIGger:A:VIDeo:FIELD`` command. + - ``.holdoff``: The ``TRIGger:A:VIDeo:HOLdoff`` command tree. + - ``.line``: The ``TRIGger:A:VIDeo:LINE`` command. + - ``.polarity``: The ``TRIGger:A:VIDeo:POLarity`` command. + - ``.scan``: The ``TRIGger:A:VIDeo:SCAN`` command. + - ``.source``: The ``TRIGger:A:VIDeo:SOUrce`` command. + - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._custom = TriggerAVideoCustom(device, f"{self._cmd_syntax}:CUSTom") + self._field = TriggerAVideoField(device, f"{self._cmd_syntax}:FIELD") + self._holdoff = TriggerAVideoHoldoff(device, f"{self._cmd_syntax}:HOLdoff") + self._line = TriggerAVideoLine(device, f"{self._cmd_syntax}:LINE") + self._polarity = TriggerAVideoPolarity(device, f"{self._cmd_syntax}:POLarity") + self._scan = TriggerAVideoScan(device, f"{self._cmd_syntax}:SCAN") + self._source = TriggerAVideoSource(device, f"{self._cmd_syntax}:SOUrce") + self._standard = TriggerAVideoStandard(device, f"{self._cmd_syntax}:STANdard") + + @property + def custom(self) -> TriggerAVideoCustom: + """Return the ``TRIGger:A:VIDeo:CUSTom`` command. + + **Description:** + - This query-only command returns the A trigger custom video parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:CUSTom?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:CUSTom?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:CUSTom? + + Sub-properties: + - ``.format``: The ``TRIGger:A:VIDeo:CUSTom:FORMat`` command. + - ``.lineperiod``: The ``TRIGger:A:VIDeo:CUSTom:LINEPeriod`` command. + - ``.syncinterval``: The ``TRIGger:A:VIDeo:CUSTom:SYNCInterval`` command. + """ + return self._custom + + @property + def field(self) -> TriggerAVideoField: + """Return the ``TRIGger:A:VIDeo:FIELD`` command. + + **Description:** + - This command sets or queries the video field or line that the trigger detects. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:FIELD?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:FIELD?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:FIELD value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:FIELD {ODD|EVEN|FIELD|ALLFields|ALLLines|NUMERic} + - TRIGger:A:VIDeo:FIELD? + + **Info:** + - ``ODD`` argument sets the instrument to trigger on interlaced video odd fields. + - ``EVEN`` argument sets the instrument to trigger on interlaced video even fields. + - ``FIELD1`` argument sets the instrument to trigger on interlaced video odd fields + (same as ODD). + - ``FIELD2`` argument sets the instrument to trigger on interlaced video even fields + (same as EVEN). + - ``ALLFields`` argument sets the instrument to trigger on all fields. + - ``ALLLines`` argument sets the instrument to trigger on all video lines. + - ``NUMERic`` argument sets the instrument to trigger on the video signal line specified + by the ``TRIGger:A:VIDeo:LINE`` command. + """ + return self._field + + @property + def holdoff(self) -> TriggerAVideoHoldoff: + """Return the ``TRIGger:A:VIDeo:HOLdoff`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:HOLdoff?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:HOLdoff?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.field``: The ``TRIGger:A:VIDeo:HOLdoff:FIELD`` command. + """ + return self._holdoff + + @property + def line(self) -> TriggerAVideoLine: + """Return the ``TRIGger:A:VIDeo:LINE`` command. + + **Description:** + - This command lets you set the specific video line number to be used for triggering on + a video signal. You must also use the command to specify NUMERic as the video field to + use. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:LINE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:LINE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:LINE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:LINE + - TRIGger:A:VIDeo:LINE? + + **Info:** + - ```` argument is an integer that sets the video line number on which the + oscilloscope triggers. The following table lists the valid choices, depending on the + active video standard. + """ + return self._line + + @property + def polarity(self) -> TriggerAVideoPolarity: + """Return the ``TRIGger:A:VIDeo:POLarity`` command. + + **Description:** + - This command sets or queries the polarity of the A video trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:POLarity?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:POLarity {INVERTed|NORMal} + - TRIGger:A:VIDeo:POLarity? + + **Info:** + - ``INVERTed`` argument sets the instrument to trigger on a positive video sync pulse. + - ``NORMal`` argument sets the instrument to trigger on a negative video sync pulse. + """ + return self._polarity + + @property + def scan(self) -> TriggerAVideoScan: + """Return the ``TRIGger:A:VIDeo:SCAN`` command. + + **Description:** + - This command sets or queries the video trigger horizontal line scan rate. This command + is for compatibility with earlier instruments. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:SCAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:SCAN?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:SCAN value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:SCAN {RATE} + - TRIGger:A:VIDeo:SCAN? + + **Info:** + - ``RATE1`` argument sets the range of the video line scan rate to 15 kHz through 20 + kHz. This is the standard broadcast rate. + - ``RATE2`` argument sets the range of the video line scan rate to 20 kHz through 25 + kHz. + - ``RATE3`` argument sets the range of the video line scan rate to 25 kHz through 35 + kHz. + - ``RATE4`` argument sets the range of the video line scan rate to 35 kHz through 50 + kHz. + - ``RATE5`` argument sets the range of the video line scan rate to 50 kHz through 65 + kHz. + """ + return self._scan + + @property + def source(self) -> TriggerAVideoSource: + """Return the ``TRIGger:A:VIDeo:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the A video trigger. This command is + equivalent to selecting Video Setup from the Trig menu and selecting a channel from + the Source drop-down menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:SOUrce CH + - TRIGger:A:VIDeo:SOUrce? + + **Info:** + - ``CH`` argument specifies one of the input channels of the instrument as the A + video trigger. The value of x ranges from 1 through 4. + """ + return self._source + + @property + def standard(self) -> TriggerAVideoStandard: + """Return the ``TRIGger:A:VIDeo:STANdard`` command. + + **Description:** + - This command sets or queries the video standard. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo:STANdard?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo:STANdard?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:VIDeo:STANdard value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo:STANdard {BILevelcustom|TRILevelcustom|NTSc|PAL| SECAM|HD480P60|HD576P50|HD875I60|HD720P30|HD720P50| HD720P60|HD1080I50|HD1080I60|HD1080P24| HD1080P25|HD1080P30|HD1080P50|HD1080P60| HD1080SF24} + - TRIGger:A:VIDeo:STANdard? + + **Info:** + - ``BILevelcustom`` argument sets the instrument to use custom video parameters that you + set with the ``TRIGGER:A:VIDEO:CUSTOM:SYNCINTERVAL`` command. + - ``TRILevelcustom`` argument sets the instrument to use custom video horizontal scan + rate parameters that you set with the ``TRIGGER:A:VIDEO:CUSTOM:LINEPERIOD`` command. + - ``NTSc`` argument sets the instrument to trigger on video signals that meet the NTSC + 525/60/``2:1`` standard (a line rate of 525 lines per frame and a field rate of 60 + Hz). + - ``PAL`` argument sets the instrument to trigger on video signals that meet the NTSC + 625/50/``2:1`` standard (a line rate of 625 lines per frame and a field rate of 50 + Hz). + - ``SECAM`` argument sets the instrument to trigger on video signals that meet the SECAM + standard. + - ``HD480P60`` argument sets the instrument to trigger on the HDTV 480/60 progressive + format. + - ``HD576P50`` argument sets the instrument to trigger on the HDTV 576/50 progressive + format. + - ``HD875I60`` argument sets the instrument to trigger on the HDTV 875/60 format. + - ``HD720P30`` argument sets the instrument to trigger on the HDTV 720/30 progressive + format. + - ``HD720P50`` argument sets the instrument to trigger on the HDTV 720/50 progressive + format. + - ``HD720P60`` argument sets the instrument to trigger on the HDTV 720/60 progressive + format. + - ``HD1080I50`` argument sets the instrument to trigger on HDTV 1080/50 interlaced + format. + - ``HD1080I60`` argument sets the instrument to trigger on HDTV 1080/60 interlaced + format. + - ``HD1080P24`` argument sets the instrument to trigger on HDTV 1080/24 progressive + format. + - ``HD1080P25`` argument sets the instrument to trigger on HDTV 1080/25 progressive + format. + - ``HD1080P30`` argument sets the instrument to trigger on HDTV 1080/30 progressive + format. + - ``HD1080P50`` argument sets the instrument to trigger on HDTV 1080/50 progressive + format. + - ``HD1080P60`` argument sets the instrument to trigger on HDTV 1080/60 progressive + format. + - ``HD1080SF24`` argument sets the instrument to trigger on HDTV 1080/24 segmented frame + format. + """ # noqa: E501 + return self._standard + + +class TriggerAUpperthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:UPPerthreshold:CH`` command. + + **Description:** + - This command sets or queries the CH upper trigger level for + ``TRIGger:LVLSrcpreference SRCDependent``. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:UPPerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:UPPerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:UPPerthreshold:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:UPPerthreshold:CH {ECL|TTL|} + - TRIGger:A:UPPerthreshold:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + + +class TriggerAUpperthreshold(SCPICmdRead): + """The ``TRIGger:A:UPPerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:UPPerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:UPPerthreshold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAUpperthresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAUpperthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAUpperthresholdChannel]: + """Return the ``TRIGger:A:UPPerthreshold:CH`` command. + + **Description:** + - This command sets or queries the CH upper trigger level for + ``TRIGger:LVLSrcpreference SRCDependent``. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:UPPerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:UPPerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:UPPerthreshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:UPPerthreshold:CH {ECL|TTL|} + - TRIGger:A:UPPerthreshold:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + return self._ch + + +class TriggerAType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:TYPe`` command. + + **Description:** + - This command sets or queries the type of A or B trigger. Logic and Pulse triggers contain + classes. Logic triggers consist of State and Pattern classes; Pulse triggers consist of + Glitch, Runt, Width, Transition, Timeout, and Window classes. Once you have set the + trigger type, you might also need to identify the associated trigger class. For details on + selecting Logic and Pulse trigger classes, see and respectively. This command is similar + to selecting Event Trigger Setup from the Trig menu and then selecting the desired Trigger + Type. Some trigger types are not available on some instruments. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:TYPe?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:TYPe {EDGE|LOGIc|PULse|VIDeo| I2C|CAN|SPI|COMMunication|SERIAL|RS232}} + - TRIGger:A:TYPe? + + **Info:** + - ``EDGE`` is a normal trigger. A trigger event occurs when a signal passes through a + specified voltage level in a specified direction and is controlled by the + ``TRIGger:A:EDGE`` commands. + - ``LOGIc`` specifies that a trigger occurs when specified conditions are met and is + controlled by the ``TRIGger:A:LOGIc`` commands. + - ``PULse`` specifies that a trigger occurs when a specified pulse is found and is + controlled by the ``TRIGger:A:PULse`` commands. + - ``VIDeo`` specifies that the trigger occurs when a video signal is found. Requires an + instrument with video hardware. + - ``I2C`` specifies that a trigger occurs when an Inter-IC Control signal is found. + - ``CAN`` specifies that a trigger occurs when a Controller Area Network frame signal is + found. + - ``SPI`` specifies that a trigger occurs when a Serial Peripheral Interface signal is + found. + - ``COMMunication`` (Option MTM) specifies that a trigger occurs when a communications + signal is found. Supports AMI, HDB3, B3ZS, B6ZS, B8ZS, CMI, MLT3, Manchester, and NRZ + encoded communications signals. COMMunication is available only if Option MTM is + installed. + - ``SERIAL`` specifies that a trigger occurs when NRZ-encoded data is found, providing a + 32-bit serial word. This argument is available with instruments with Option PTM. + - ``RS232`` takes a signal on a data source and allows you to trigger on data within the + RS232 bitstream. The data is only one byte wide. + """ + + +class TriggerASpiSsSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:SS:SOUrce`` command. + + **Description:** + - This command sets or queries the SPI trigger Slave Select (SS) source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SS:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SS:SOUrce CH + - TRIGger:A:SPI:SS:SOUrce? + + **Info:** + - ``CH`` specifies the source for the SPI SS signal. x can be 1, 2, 3, or 4. + """ + + +class TriggerASpiSsLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:SS:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI trigger Slave Select (SS) signal. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS:LEVel?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SS:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SS:LEVel + - TRIGger:A:SPI:SS:LEVel? + + **Info:** + - ```` specifies the threshold for the SPI trigger SS line. The threshold range is + ±5.0. + """ + + +class TriggerASpiSsActive(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:SS:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI trigger Slave Select (SS) polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS:ACTIVE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SS:ACTIVE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SS:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:SS:ACTIVE? + + **Info:** + - ``HIGH`` specifies HIGH for SS polarity. + - ``LOW`` specifies LOW for SS polarity. + """ + + +class TriggerASpiSs(SCPICmdRead): + """The ``TRIGger:A:SPI:SS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.active``: The ``TRIGger:A:SPI:SS:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:SS:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._active = TriggerASpiSsActive(device, f"{self._cmd_syntax}:ACTIVE") + self._level = TriggerASpiSsLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerASpiSsSource(device, f"{self._cmd_syntax}:SOUrce") + + @property + def active(self) -> TriggerASpiSsActive: + """Return the ``TRIGger:A:SPI:SS:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI trigger Slave Select (SS) polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS:ACTIVE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SS:ACTIVE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SS:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:SS:ACTIVE? + + **Info:** + - ``HIGH`` specifies HIGH for SS polarity. + - ``LOW`` specifies LOW for SS polarity. + """ + return self._active + + @property + def level(self) -> TriggerASpiSsLevel: + """Return the ``TRIGger:A:SPI:SS:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI trigger Slave Select (SS) + signal. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS:LEVel?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SS:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SS:LEVel + - TRIGger:A:SPI:SS:LEVel? + + **Info:** + - ```` specifies the threshold for the SPI trigger SS line. The threshold range is + ±5.0. + """ + return self._level + + @property + def source(self) -> TriggerASpiSsSource: + """Return the ``TRIGger:A:SPI:SS:SOUrce`` command. + + **Description:** + - This command sets or queries the SPI trigger Slave Select (SS) source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SS:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SS:SOUrce CH + - TRIGger:A:SPI:SS:SOUrce? + + **Info:** + - ``CH`` specifies the source for the SPI SS signal. x can be 1, 2, 3, or 4. + """ + return self._source + + +class TriggerASpiSclkSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:SCLK:SOUrce`` command. + + **Description:** + - This command sets or queries the SPI SCLK source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SCLK:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SCLK:SOUrce CH + - TRIGger:A:SPI:SCLK:SOUrce? + + **Info:** + - ``CH`` specifies the SPI SCLK source. x can be 1, 2, 3, or 4. + """ + + +class TriggerASpiSclkLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:SCLK:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI trigger SCLK. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK:LEVel?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SCLK:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SCLK:LEVel + - TRIGger:A:SPI:SCLK:LEVel? + + **Info:** + - ```` specifies the SPI trigger SCLK threshold. + """ + + +class TriggerASpiSclkActive(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:SCLK:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI SCLK polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK:ACTIVE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SCLK:ACTIVE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SCLK:ACTIVE {RISe|FALL} + - TRIGger:A:SPI:SCLK:ACTIVE? + + **Info:** + - ``RISe`` specifies rising clock polarity. + - ``FALL`` specifies falling clock polarity. + """ + + +class TriggerASpiSclk(SCPICmdRead): + """The ``TRIGger:A:SPI:SCLK`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.active``: The ``TRIGger:A:SPI:SCLK:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:SCLK:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._active = TriggerASpiSclkActive(device, f"{self._cmd_syntax}:ACTIVE") + self._level = TriggerASpiSclkLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerASpiSclkSource(device, f"{self._cmd_syntax}:SOUrce") + + @property + def active(self) -> TriggerASpiSclkActive: + """Return the ``TRIGger:A:SPI:SCLK:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI SCLK polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK:ACTIVE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SCLK:ACTIVE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SCLK:ACTIVE {RISe|FALL} + - TRIGger:A:SPI:SCLK:ACTIVE? + + **Info:** + - ``RISe`` specifies rising clock polarity. + - ``FALL`` specifies falling clock polarity. + """ + return self._active + + @property + def level(self) -> TriggerASpiSclkLevel: + """Return the ``TRIGger:A:SPI:SCLK:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI trigger SCLK. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK:LEVel?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SCLK:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SCLK:LEVel + - TRIGger:A:SPI:SCLK:LEVel? + + **Info:** + - ```` specifies the SPI trigger SCLK threshold. + """ + return self._level + + @property + def source(self) -> TriggerASpiSclkSource: + """Return the ``TRIGger:A:SPI:SCLK:SOUrce`` command. + + **Description:** + - This command sets or queries the SPI SCLK source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:SCLK:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:SCLK:SOUrce CH + - TRIGger:A:SPI:SCLK:SOUrce? + + **Info:** + - ``CH`` specifies the SPI SCLK source. x can be 1, 2, 3, or 4. + """ + return self._source + + +class TriggerASpiFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:FORMat`` command. + + **Description:** + - This command sets or queries the SPI trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:FORMat {BINary|HEX} + - TRIGger:A:SPI:FORMat? + + **Info:** + - ``BINary`` specifies a binary data format. + - ``HEX`` specifies a hexadecimal data format. + """ + + +class TriggerASpiDataStart(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:STARt`` command. + + **Description:** + - This command sets or queries the nth data byte on the data source after the signal on the + enable slave source switches to the polarity specified by the Slave Select Polarity. The + instrument triggers if the pattern Matches beginning at this point. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:STARt?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:STARt?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:STARt value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:STARt + - TRIGger:A:SPI:DATa:STARt? + + **Info:** + - ```` specifies the SPI start byte data. The data can range from 0 to 216-1. + """ + + +class TriggerASpiDataMosiValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. + + **Description:** + - This command sets or queries the binary data string used for the SPI trigger if the + trigger condition is set to MOSI or MISOMOSI. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:VALue + - TRIGger:A:SPI:DATa:MOSI:VALue? + + **Info:** + - ```` specifies the binary data string for the SPI data. You can specify up to 32 + bits. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerASpiDataMosiSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MOSI:SOUrce`` command. + + **Description:** + - This command sets or queries the MOSI data source for the SPI trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:SOUrce CH + - TRIGger:A:SPI:DATa:MOSI:SOUrce? + + **Info:** + - ``CH`` specifies the source for the SPI trigger MOSI data source. x can be 1, 2, 3, or + 4. + """ + + +class TriggerASpiDataMosiLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MOSI:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI MOSI data source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:LEVel?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:LEVel + - TRIGger:A:SPI:DATa:MOSI:LEVel? + + **Info:** + - ```` specifies the threshold for the SPI trigger MOSI data source. The range is ±5.0. + """ + + +class TriggerASpiDataMosiActive(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MOSI:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI MOSI polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:ACTIVE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:ACTIVE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:DATa:MOSI:ACTIVE? + + **Info:** + - ``HIGH`` specifies HIGH polarity. + - ``LOW`` specifies LOW polarity. + """ + + +class TriggerASpiDataMosi(SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MOSI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.active``: The ``TRIGger:A:SPI:DATa:MOSI:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:DATa:MOSI:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:DATa:MOSI:SOUrce`` command. + - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._active = TriggerASpiDataMosiActive(device, f"{self._cmd_syntax}:ACTIVE") + self._level = TriggerASpiDataMosiLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerASpiDataMosiSource(device, f"{self._cmd_syntax}:SOUrce") + self._value = TriggerASpiDataMosiValue(device, f"{self._cmd_syntax}:VALue") + + @property + def active(self) -> TriggerASpiDataMosiActive: + """Return the ``TRIGger:A:SPI:DATa:MOSI:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI MOSI polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:ACTIVE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MOSI:ACTIVE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:DATa:MOSI:ACTIVE? + + **Info:** + - ``HIGH`` specifies HIGH polarity. + - ``LOW`` specifies LOW polarity. + """ + return self._active + + @property + def level(self) -> TriggerASpiDataMosiLevel: + """Return the ``TRIGger:A:SPI:DATa:MOSI:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI MOSI data source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:LEVel?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MOSI:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:LEVel + - TRIGger:A:SPI:DATa:MOSI:LEVel? + + **Info:** + - ```` specifies the threshold for the SPI trigger MOSI data source. The range is + ±5.0. + """ + return self._level + + @property + def source(self) -> TriggerASpiDataMosiSource: + """Return the ``TRIGger:A:SPI:DATa:MOSI:SOUrce`` command. + + **Description:** + - This command sets or queries the MOSI data source for the SPI trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MOSI:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:SOUrce CH + - TRIGger:A:SPI:DATa:MOSI:SOUrce? + + **Info:** + - ``CH`` specifies the source for the SPI trigger MOSI data source. x can be 1, 2, 3, + or 4. + """ + return self._source + + @property + def value(self) -> TriggerASpiDataMosiValue: + """Return the ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. + + **Description:** + - This command sets or queries the binary data string used for the SPI trigger if the + trigger condition is set to MOSI or MISOMOSI. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MOSI:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MOSI:VALue + - TRIGger:A:SPI:DATa:MOSI:VALue? + + **Info:** + - ```` specifies the binary data string for the SPI data. You can specify up to + 32 bits. + """ + return self._value + + +class TriggerASpiDataMisoValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. + + **Description:** + - This command sets or queries the binary data string used for the SPI trigger if the + trigger condition is set to MISO or MISOMOSI. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:VALue + - TRIGger:A:SPI:DATa:MISO:VALue? + + **Info:** + - ```` specifies the binary data string for the SPI data. You can specify up to 32 + bits. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerASpiDataMisoSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MISO:SOUrce`` command. + + **Description:** + - This command sets or queries the MISO data source for the SPI trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:SOUrce CH + - TRIGger:A:SPI:DATa:MISO:SOUrce? + + **Info:** + - ``CH`` specifies the source for the SPI trigger MISO data source. x can be 1, 2, 3, or + 4. + """ + + +class TriggerASpiDataMisoLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MISO:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI MISO data source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:LEVel?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:LEVel + - TRIGger:A:SPI:DATa:MISO:LEVel? + + **Info:** + - ```` specifies the threshold for the SPI trigger MISO data source. The range is ±5.0. + """ + + +class TriggerASpiDataMisoActive(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MISO:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI MISO polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:ACTIVE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:ACTIVE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:DATa:MISO:ACTIVE? + + **Info:** + - ``HIGH`` specifies HIGH polarity. + - ``LOW`` specifies LOW polarity. + """ + + +class TriggerASpiDataMiso(SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:MISO`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.active``: The ``TRIGger:A:SPI:DATa:MISO:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:DATa:MISO:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:DATa:MISO:SOUrce`` command. + - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._active = TriggerASpiDataMisoActive(device, f"{self._cmd_syntax}:ACTIVE") + self._level = TriggerASpiDataMisoLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerASpiDataMisoSource(device, f"{self._cmd_syntax}:SOUrce") + self._value = TriggerASpiDataMisoValue(device, f"{self._cmd_syntax}:VALue") + + @property + def active(self) -> TriggerASpiDataMisoActive: + """Return the ``TRIGger:A:SPI:DATa:MISO:ACTIVE`` command. + + **Description:** + - This command sets or queries the SPI MISO polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:ACTIVE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:ACTIVE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MISO:ACTIVE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:ACTIVE {HIGH|LOW} + - TRIGger:A:SPI:DATa:MISO:ACTIVE? + + **Info:** + - ``HIGH`` specifies HIGH polarity. + - ``LOW`` specifies LOW polarity. + """ + return self._active + + @property + def level(self) -> TriggerASpiDataMisoLevel: + """Return the ``TRIGger:A:SPI:DATa:MISO:LEVel`` command. + + **Description:** + - This command sets or queries the threshold for the SPI MISO data source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:LEVel?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MISO:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:LEVel + - TRIGger:A:SPI:DATa:MISO:LEVel? + + **Info:** + - ```` specifies the threshold for the SPI trigger MISO data source. The range is + ±5.0. + """ + return self._level + + @property + def source(self) -> TriggerASpiDataMisoSource: + """Return the ``TRIGger:A:SPI:DATa:MISO:SOUrce`` command. + + **Description:** + - This command sets or queries the MISO data source for the SPI trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MISO:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:SOUrce CH + - TRIGger:A:SPI:DATa:MISO:SOUrce? + + **Info:** + - ``CH`` specifies the source for the SPI trigger MISO data source. x can be 1, 2, 3, + or 4. + """ + return self._source + + @property + def value(self) -> TriggerASpiDataMisoValue: + """Return the ``TRIGger:A:SPI:DATa:MISO:VALue`` command. + + **Description:** + - This command sets or queries the binary data string used for the SPI trigger if the + trigger condition is set to MISO or MISOMOSI. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SPI:DATa:MISO:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:MISO:VALue + - TRIGger:A:SPI:DATa:MISO:VALue? + + **Info:** + - ```` specifies the binary data string for the SPI data. You can specify up to + 32 bits. + """ + return self._value + + +class TriggerASpiDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the SPI trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:FORMat {BINary|HEX} + - TRIGger:A:SPI:DATa:FORMat? + + **Info:** + - ``BINARY`` specifies a binary data format. + - ``HEX`` specifies a hexadecimal data format. + """ + + +class TriggerASpiData(SCPICmdRead): + """The ``TRIGger:A:SPI:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:SPI:DATa:FORMat`` command. + - ``.miso``: The ``TRIGger:A:SPI:DATa:MISO`` command tree. + - ``.mosi``: The ``TRIGger:A:SPI:DATa:MOSI`` command tree. + - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerASpiDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._miso = TriggerASpiDataMiso(device, f"{self._cmd_syntax}:MISO") + self._mosi = TriggerASpiDataMosi(device, f"{self._cmd_syntax}:MOSI") + self._start = TriggerASpiDataStart(device, f"{self._cmd_syntax}:STARt") + + @property + def format(self) -> TriggerASpiDataFormat: + """Return the ``TRIGger:A:SPI:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the SPI trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:FORMat {BINary|HEX} + - TRIGger:A:SPI:DATa:FORMat? + + **Info:** + - ``BINARY`` specifies a binary data format. + - ``HEX`` specifies a hexadecimal data format. + """ + return self._format + + @property + def miso(self) -> TriggerASpiDataMiso: + """Return the ``TRIGger:A:SPI:DATa:MISO`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MISO?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MISO?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.active``: The ``TRIGger:A:SPI:DATa:MISO:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:DATa:MISO:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:DATa:MISO:SOUrce`` command. + - ``.value``: The ``TRIGger:A:SPI:DATa:MISO:VALue`` command. + """ + return self._miso + + @property + def mosi(self) -> TriggerASpiDataMosi: + """Return the ``TRIGger:A:SPI:DATa:MOSI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:MOSI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:MOSI?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.active``: The ``TRIGger:A:SPI:DATa:MOSI:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:DATa:MOSI:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:DATa:MOSI:SOUrce`` command. + - ``.value``: The ``TRIGger:A:SPI:DATa:MOSI:VALue`` command. + """ + return self._mosi + + @property + def start(self) -> TriggerASpiDataStart: + """Return the ``TRIGger:A:SPI:DATa:STARt`` command. + + **Description:** + - This command sets or queries the nth data byte on the data source after the signal on + the enable slave source switches to the polarity specified by the Slave Select + Polarity. The instrument triggers if the pattern Matches beginning at this point. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa:STARt?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa:STARt?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:DATa:STARt value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:DATa:STARt + - TRIGger:A:SPI:DATa:STARt? + + **Info:** + - ```` specifies the SPI start byte data. The data can range from 0 to 216-1. + """ + return self._start + + +class TriggerASpiCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SPI:CONDition`` command. + + **Description:** + - This command sets or queries the trigger condition for SPI triggering. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:CONDition?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:CONDition {MISO|MOSI|MISOMOSI} + - TRIGger:A:SPI:CONDition? + + **Info:** + - ``MISO`` specifies the MISO condition for SPI triggering. + - ``MOSI`` specifies the MISI condition for SPI triggering. + - ``MISOMOSI`` specifies either the MISO or MISI condition for SPI triggering. + """ + + +class TriggerASpi(SCPICmdRead): + """The ``TRIGger:A:SPI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.condition``: The ``TRIGger:A:SPI:CONDition`` command. + - ``.data``: The ``TRIGger:A:SPI:DATa`` command tree. + - ``.format``: The ``TRIGger:A:SPI:FORMat`` command. + - ``.sclk``: The ``TRIGger:A:SPI:SCLK`` command tree. + - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._condition = TriggerASpiCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerASpiData(device, f"{self._cmd_syntax}:DATa") + self._format = TriggerASpiFormat(device, f"{self._cmd_syntax}:FORMat") + self._sclk = TriggerASpiSclk(device, f"{self._cmd_syntax}:SCLK") + self._ss = TriggerASpiSs(device, f"{self._cmd_syntax}:SS") + + @property + def condition(self) -> TriggerASpiCondition: + """Return the ``TRIGger:A:SPI:CONDition`` command. + + **Description:** + - This command sets or queries the trigger condition for SPI triggering. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:CONDition {MISO|MOSI|MISOMOSI} + - TRIGger:A:SPI:CONDition? + + **Info:** + - ``MISO`` specifies the MISO condition for SPI triggering. + - ``MOSI`` specifies the MISI condition for SPI triggering. + - ``MISOMOSI`` specifies either the MISO or MISI condition for SPI triggering. + """ + return self._condition + + @property + def data(self) -> TriggerASpiData: + """Return the ``TRIGger:A:SPI:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:SPI:DATa:FORMat`` command. + - ``.miso``: The ``TRIGger:A:SPI:DATa:MISO`` command tree. + - ``.mosi``: The ``TRIGger:A:SPI:DATa:MOSI`` command tree. + - ``.start``: The ``TRIGger:A:SPI:DATa:STARt`` command. + """ + return self._data + + @property + def format(self) -> TriggerASpiFormat: + """Return the ``TRIGger:A:SPI:FORMat`` command. + + **Description:** + - This command sets or queries the SPI trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SPI:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SPI:FORMat {BINary|HEX} + - TRIGger:A:SPI:FORMat? + + **Info:** + - ``BINary`` specifies a binary data format. + - ``HEX`` specifies a hexadecimal data format. + """ + return self._format + + @property + def sclk(self) -> TriggerASpiSclk: + """Return the ``TRIGger:A:SPI:SCLK`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SCLK?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SCLK?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.active``: The ``TRIGger:A:SPI:SCLK:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:SCLK:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:SCLK:SOUrce`` command. + """ + return self._sclk + + @property + def ss(self) -> TriggerASpiSs: + """Return the ``TRIGger:A:SPI:SS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI:SS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI:SS?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.active``: The ``TRIGger:A:SPI:SS:ACTIVE`` command. + - ``.level``: The ``TRIGger:A:SPI:SS:LEVel`` command. + - ``.source``: The ``TRIGger:A:SPI:SS:SOUrce`` command. + """ + return self._ss + + +class TriggerASerialTriggeron(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:TRIGgeron`` command. + + **Description:** + - This command sets or queries the trigger on a designated arbitrary bit pattern or lock on + a repeating pattern of known length. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:TRIGgeron?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:TRIGgeron?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:TRIGgeron value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:TRIGgeron {PATtern|LOck} + - TRIGger:A:SERIAL:TRIGgeron? + + **Info:** + - ``PATtern`` specifies the trigger on a designated arbitrary bit pattern. + - ``LOck`` specifies the trigger locks a repeating pattern of known length. + """ + + +class TriggerASerialStandard(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:STANdard`` command. + + **Description:** + - This command sets or queries the standard that identifies the code and bit rate. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:STANdard?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:STANdard?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:STANdard value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:STANdard {FC133|FC266|FC531|FC1063|D|VIDEO270|VIDEO360|OC1|OC3| OC12|ENET1250|FW1394BS400B|FW1394BS800B|CUSTom|ENET100FX| RIO_500M|RIO_750M|RIO_1G|RIO_SERIAL_1G|VSROC192|ENETXAUI| SAS3_?|PCIExpress|INFINIBAND|RIO_SERIAL_2G|RIO_SERIAL_3G| FC2125|RIO_2G|FW1394BS1600B|SAS1_5|ENETXAUI|ENETXAUI2| FC2125|FC4250|FW1394BS1600B|INFINIBAND|PCIExpress|PCIExpress2| RIO_2G|RIO_500M|RIO_750M|RIO_SERIAL_1G|RIO_SERIAL_2_5G| RIO_SERIAL_3G|SAS6_0|SATA1_5|SATA3_0|SATA6_0} + - TRIGger:A:SERIAL:STANdard? + + **Info:** + - ``FC133`` : NRZ, 132.8 Mb/s. + - ``FC266`` : NRZ, 265.6 Mb/s. + - ``FC531`` : NRZ, 531.2 Mb/s. + - ``FC1063`` : NRZ, 1.063 Gb/s. + - ``OC1`` : NRZ, 51.84 Mb/s. + - ``OC3`` : NRZ, 155.5 Mb/s. + - ``OC12`` : NRZ, 622.1 Mb/s. + - ``ENET1250`` : NRZ, 3.125 Gb/s. + - ``ENETXAUI`` : NRZ, 1.25 Gb/s. + - ``ENETXAUI2`` : NRZ, 6.25 Gb/s. + - ``FW1394BS400B`` : NRZ, 491.5 Mb/s. + - ``FW1394BS1600B`` : NRZ, 1.966 Gb/s. + - ``FW1394BS800B`` : NRZ, 983.0 Mb/s. + - ``CUSTom`` : NRZ, 155.5 Mb/s. + - ``ENET100FX`` : MLT3, 100 Mb/s. + - ``RIO_500M`` : NRZ, 500 Mb/s, triggers ``RIO_DRV500``, ``RIO_EDRV500M``, and + ``RIO_RCV500``, 500Mb/s. + - ``RIO_750M`` : NRZ, 750 Mb/s, triggers ``RIO_DRV750``, ``RIO_EDRV750M``, and + ``RIO_RCV750``, 750Mb/s. + - ``RIO_1G`` : NRZ, 1.0 Gb/s, triggers ``RIO_1G``. + - ``RIO_SERIAL_1G`` : NRZ, 1.25 Gb/s, triggers ``RIO_Serial_1G``. + - ``RIO_2G`` : NRZ, 2.0 Gb/s. + - ``RIO_SERIAL_2_5G`` : NRZ, 2.5 Gb/s, triggers ``RIO_Serial_1G``. + - ``RIO_SERIAL_3G`` : NRZ, 3.0 Gb/s, triggers ``RIO_Serial_1G``. + - ``VSROC192`` : NRZ, 1.2441 Gb/s, triggers VSR OC192/STM64. + - ``FC2125`` : NRZ, 2.125 Gb/s. + - ``FC4250`` : NRZ, 4.25 Gb/s. + - ``INFINIBAND`` : NRZ, 2.5 Gb/s. + - ``PCIExpress`` : NRZ, 2.5 Gb/s. + - ``PCIExpress2`` : NRZ, 5.0 Gb/s. + - ``SAS6_0`` : NRZ, ``SAS6_0``. + - ``SATA1_5`` : NRZ, 1.5 Gb/s. + - ``SATA3_0`` : NRZ, 3.0 Gb/s. + - ``SATA6_0`` : NRZ, 6.0 Gb/s. + """ # noqa: E501 + + +class TriggerASerialSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:SOUrce`` command. + + **Description:** + - This command sets or queries the serial data source channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:SOUrce {CH} + - TRIGger:A:SERIAL:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels. x has a minimum of 1 and a maximum of 4. + """ + + +class TriggerASerialLockoffset(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:LOCKOffset`` command. + + **Description:** + - This command sets or queries the current bit offset into the pattern lock trigger bit + pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:LOCKOffset?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:LOCKOffset?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:LOCKOffset value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:LOCKOffset + - TRIGger:A:SERIAL:LOCKOffset? + + **Info:** + - ```` specifies the bit offset. The valid values are 1 to 2147483646. + """ + + +class TriggerASerialLocklen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:LOCKLen`` command. + + **Description:** + - This command sets or queries the length in bits of the repeating bit pattern for pattern + lock trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:LOCKLen?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:LOCKLen?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:LOCKLen value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:LOCKLen + - TRIGger:A:SERIAL:LOCKLen? + + **Info:** + - ```` specifies the length in bits. The valid values are 1 to 2147483647. + """ + + +class TriggerASerialErrordetectorFileName(SCPICmdWrite): + """The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. + + **Description:** + - This command sets the setup file for the selected signal standard and pattern. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:ERRORdetector:FILE:NAME + + **Info:** + - ``'fileName'`` is the setup file name. + """ + + +class TriggerASerialErrordetectorFile(SCPICmdRead): + """The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:ERRORdetector:FILE?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:ERRORdetector:FILE?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._name = TriggerASerialErrordetectorFileName(device, f"{self._cmd_syntax}:NAME") + + @property + def name(self) -> TriggerASerialErrordetectorFileName: + """Return the ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. + + **Description:** + - This command sets the setup file for the selected signal standard and pattern. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:ERRORdetector:FILE:NAME + + **Info:** + - ``'fileName'`` is the setup file name. + """ + return self._name + + +class TriggerASerialErrordetector(SCPICmdRead): + """The ``TRIGger:A:SERIAL:ERRORdetector`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:ERRORdetector?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:ERRORdetector?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._file = TriggerASerialErrordetectorFile(device, f"{self._cmd_syntax}:FILE") + + @property + def file(self) -> TriggerASerialErrordetectorFile: + """Return the ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:ERRORdetector:FILE?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:SERIAL:ERRORdetector:FILE?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.name``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE:NAME`` command. + """ + return self._file + + +class TriggerASerialDataPatternS8b10b(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B`` command. + + **Description:** + - This command sets or queries the data pattern to allow up to 64-bit serial patterns. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:PATtern:S8B10B + - TRIGger:A:SERIAL:DATa:PATtern:S8B10B? + + **Info:** + - ```` specifies the serial pattern to trigger on. The default value is + '0011111010', such that there are up to 64 characters total. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerASerialDataPatternNrz(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:DATa:PATtern:NRZ`` command. + + **Description:** + - This command sets or queries the data pattern to allow up to 64-bit serial patterns. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern:NRZ?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern:NRZ?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern:NRZ value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:PATtern:NRZ + - TRIGger:A:SERIAL:DATa:PATtern:NRZ? + + **Info:** + - ```` specifies the serial pattern to trigger on. The default value is '01', such + that there are up to 64 characters total. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerASerialDataPattern(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:DATa:PATtern`` command. + + **Description:** + - This command sets or queries the data pattern to allow up to 64-bit serial patterns. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:PATtern + - TRIGger:A:SERIAL:DATa:PATtern? + + **Info:** + - ```` specifies the serial pattern to trigger on. The default value is '01', such + that there are up to 64 characters total. + + Properties: + - ``.nrz``: The ``TRIGger:A:SERIAL:DATa:PATtern:NRZ`` command. + - ``.s8b10b``: The ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B`` command. + """ + + _WRAP_ARG_WITH_QUOTES = True + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._nrz = TriggerASerialDataPatternNrz(device, f"{self._cmd_syntax}:NRZ") + self._s8b10b = TriggerASerialDataPatternS8b10b(device, f"{self._cmd_syntax}:S8B10B") + + @property + def nrz(self) -> TriggerASerialDataPatternNrz: + """Return the ``TRIGger:A:SERIAL:DATa:PATtern:NRZ`` command. + + **Description:** + - This command sets or queries the data pattern to allow up to 64-bit serial patterns. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern:NRZ?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern:NRZ?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern:NRZ value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:PATtern:NRZ + - TRIGger:A:SERIAL:DATa:PATtern:NRZ? + + **Info:** + - ```` specifies the serial pattern to trigger on. The default value is '01', + such that there are up to 64 characters total. + """ + return self._nrz + + @property + def s8b10b(self) -> TriggerASerialDataPatternS8b10b: + """Return the ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B`` command. + + **Description:** + - This command sets or queries the data pattern to allow up to 64-bit serial patterns. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:PATtern:S8B10B + - TRIGger:A:SERIAL:DATa:PATtern:S8B10B? + + **Info:** + - ```` specifies the serial pattern to trigger on. The default value is + '0011111010', such that there are up to 64 characters total. + """ + return self._s8b10b + + +class TriggerASerialDataFormat(SCPICmdWrite, SCPICmdRead): + r"""The ``TRIGger:A:SERIAL:DATa:FORMat`` command. + + **Description:** + - This command sets or queries how the Pattern string is formatted. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:FORMat {BINary|HEX} + - TRIGger:A:SERIAL:DATa:FORMat? + + **Info:** + - ``BINary`` pattern symbols are: {'SPACE'\|0\|1\|X} 'SPACE' is white space and can be + included to make the 32-bit pattern easier to read when setting the pattern. + - ``HEX`` pattern symbols are used only with NRZ. They are: {' + '\|0\|1\|2\|3\|4\|5\|6\|7\|8\|9\|AB\|C\|DE\|F\|X\|?} Hex 'X' represents the bit pattern + 'XXXX'. Hex '?' represents any other binary bit pattern which doesn't have a hex + representation, such as '00X1'. + """ + + +class TriggerASerialData(SCPICmdRead): + """The ``TRIGger:A:SERIAL:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:SERIAL:DATa:FORMat`` command. + - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerASerialDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._pattern = TriggerASerialDataPattern(device, f"{self._cmd_syntax}:PATtern") + + @property + def format(self) -> TriggerASerialDataFormat: + r"""Return the ``TRIGger:A:SERIAL:DATa:FORMat`` command. + + **Description:** + - This command sets or queries how the Pattern string is formatted. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:FORMat {BINary|HEX} + - TRIGger:A:SERIAL:DATa:FORMat? + + **Info:** + - ``BINary`` pattern symbols are: {'SPACE'\|0\|1\|X} 'SPACE' is white space and can be + included to make the 32-bit pattern easier to read when setting the pattern. + - ``HEX`` pattern symbols are used only with NRZ. They are: {' + '\|0\|1\|2\|3\|4\|5\|6\|7\|8\|9\|AB\|C\|DE\|F\|X\|?} Hex 'X' represents the bit + pattern 'XXXX'. Hex '?' represents any other binary bit pattern which doesn't have a + hex representation, such as '00X1'. + """ + return self._format + + @property + def pattern(self) -> TriggerASerialDataPattern: + """Return the ``TRIGger:A:SERIAL:DATa:PATtern`` command. + + **Description:** + - This command sets or queries the data pattern to allow up to 64-bit serial patterns. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:DATa:PATtern?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:DATa:PATtern value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:DATa:PATtern + - TRIGger:A:SERIAL:DATa:PATtern? + + **Info:** + - ```` specifies the serial pattern to trigger on. The default value is '01', + such that there are up to 64 characters total. + + Sub-properties: + - ``.nrz``: The ``TRIGger:A:SERIAL:DATa:PATtern:NRZ`` command. + - ``.s8b10b``: The ``TRIGger:A:SERIAL:DATa:PATtern:S8B10B`` command. + """ + return self._pattern + + +class TriggerASerialCode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:CODe`` command. + + **Description:** + - This command sets or queries the signal code. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CODe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:CODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CODe {NRZ|S8B10B} + - TRIGger:A:SERIAL:CODe? + + **Info:** + - ``NRZ`` sets the code to NRZ. + - ``S8B10B`` sets the code to S8B0B. + """ + + +class TriggerASerialClockSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. + + **Description:** + - This command sets or queries the serial data source channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CLOCk:SOUrce {CH|RECOVered} + - TRIGger:A:SERIAL:CLOCk:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels. x can be 1, 2, 3, or 4. + - ``RECOVered`` specifies clock polarity and level are extracted from the serial data stream + and other clock parameters are ignored. + """ + + +class TriggerASerialClockPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:CLOCk:POLarity`` command. + + **Description:** + - This command sets or queries the serial clock polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CLOCk:POLarity {RISe|FALL} + - TRIGger:A:SERIAL:CLOCk:POLarity? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerASerialClockLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:CLOCk:LEVel`` command. + + **Description:** + - This command sets or queries the serial trigger clock level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:LEVel?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CLOCk:LEVel + - TRIGger:A:SERIAL:CLOCk:LEVel? + + **Info:** + - ```` is a value in the range of 9.9E37 and is expressed in volts. + """ + + +class TriggerASerialClock(SCPICmdRead): + """The ``TRIGger:A:SERIAL:CLOCk`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.level``: The ``TRIGger:A:SERIAL:CLOCk:LEVel`` command. + - ``.polarity``: The ``TRIGger:A:SERIAL:CLOCk:POLarity`` command. + - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._level = TriggerASerialClockLevel(device, f"{self._cmd_syntax}:LEVel") + self._polarity = TriggerASerialClockPolarity(device, f"{self._cmd_syntax}:POLarity") + self._source = TriggerASerialClockSource(device, f"{self._cmd_syntax}:SOUrce") + + @property + def level(self) -> TriggerASerialClockLevel: + """Return the ``TRIGger:A:SERIAL:CLOCk:LEVel`` command. + + **Description:** + - This command sets or queries the serial trigger clock level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:LEVel?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:CLOCk:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CLOCk:LEVel + - TRIGger:A:SERIAL:CLOCk:LEVel? + + **Info:** + - ```` is a value in the range of 9.9E37 and is expressed in volts. + """ + return self._level + + @property + def polarity(self) -> TriggerASerialClockPolarity: + """Return the ``TRIGger:A:SERIAL:CLOCk:POLarity`` command. + + **Description:** + - This command sets or queries the serial clock polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:CLOCk:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CLOCk:POLarity {RISe|FALL} + - TRIGger:A:SERIAL:CLOCk:POLarity? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._polarity + + @property + def source(self) -> TriggerASerialClockSource: + """Return the ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. + + **Description:** + - This command sets or queries the serial data source channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:SERIAL:CLOCk:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CLOCk:SOUrce {CH|RECOVered} + - TRIGger:A:SERIAL:CLOCk:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels. x can be 1, 2, 3, or 4. + - ``RECOVered`` specifies clock polarity and level are extracted from the serial data + stream and other clock parameters are ignored. + """ + return self._source + + +class TriggerASerialBitrate(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:SERIAL:BITRate`` command. + + **Description:** + - This command sets or queries the clock/data bit rate. Changing the bit rate causes the + standard to become 'custom'. It remains 'custom' until another standard is chosen. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:BITRate?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:BITRate?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:BITRate value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:BITRate + - TRIGger:A:SERIAL:BITRate? + + **Info:** + - ```` This is the series bit rate and is expressed in bits per second. The range is + 1.5e6 to 1.25e9. + """ + + +# pylint: disable=too-many-instance-attributes +class TriggerASerial(SCPICmdRead): + """The ``TRIGger:A:SERIAL`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.bitrate``: The ``TRIGger:A:SERIAL:BITRate`` command. + - ``.clock``: The ``TRIGger:A:SERIAL:CLOCk`` command tree. + - ``.code``: The ``TRIGger:A:SERIAL:CODe`` command. + - ``.data``: The ``TRIGger:A:SERIAL:DATa`` command tree. + - ``.errordetector``: The ``TRIGger:A:SERIAL:ERRORdetector`` command tree. + - ``.locklen``: The ``TRIGger:A:SERIAL:LOCKLen`` command. + - ``.lockoffset``: The ``TRIGger:A:SERIAL:LOCKOffset`` command. + - ``.source``: The ``TRIGger:A:SERIAL:SOUrce`` command. + - ``.standard``: The ``TRIGger:A:SERIAL:STANdard`` command. + - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._bitrate = TriggerASerialBitrate(device, f"{self._cmd_syntax}:BITRate") + self._clock = TriggerASerialClock(device, f"{self._cmd_syntax}:CLOCk") + self._code = TriggerASerialCode(device, f"{self._cmd_syntax}:CODe") + self._data = TriggerASerialData(device, f"{self._cmd_syntax}:DATa") + self._errordetector = TriggerASerialErrordetector( + device, f"{self._cmd_syntax}:ERRORdetector" + ) + self._locklen = TriggerASerialLocklen(device, f"{self._cmd_syntax}:LOCKLen") + self._lockoffset = TriggerASerialLockoffset(device, f"{self._cmd_syntax}:LOCKOffset") + self._source = TriggerASerialSource(device, f"{self._cmd_syntax}:SOUrce") + self._standard = TriggerASerialStandard(device, f"{self._cmd_syntax}:STANdard") + self._triggeron = TriggerASerialTriggeron(device, f"{self._cmd_syntax}:TRIGgeron") + + @property + def bitrate(self) -> TriggerASerialBitrate: + """Return the ``TRIGger:A:SERIAL:BITRate`` command. + + **Description:** + - This command sets or queries the clock/data bit rate. Changing the bit rate causes the + standard to become 'custom'. It remains 'custom' until another standard is chosen. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:BITRate?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:BITRate?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:BITRate value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:BITRate + - TRIGger:A:SERIAL:BITRate? + + **Info:** + - ```` This is the series bit rate and is expressed in bits per second. The range + is 1.5e6 to 1.25e9. + """ + return self._bitrate + + @property + def clock(self) -> TriggerASerialClock: + """Return the ``TRIGger:A:SERIAL:CLOCk`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CLOCk?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.level``: The ``TRIGger:A:SERIAL:CLOCk:LEVel`` command. + - ``.polarity``: The ``TRIGger:A:SERIAL:CLOCk:POLarity`` command. + - ``.source``: The ``TRIGger:A:SERIAL:CLOCk:SOUrce`` command. + """ + return self._clock + + @property + def code(self) -> TriggerASerialCode: + """Return the ``TRIGger:A:SERIAL:CODe`` command. + + **Description:** + - This command sets or queries the signal code. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:CODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:CODe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:CODe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:CODe {NRZ|S8B10B} + - TRIGger:A:SERIAL:CODe? + + **Info:** + - ``NRZ`` sets the code to NRZ. + - ``S8B10B`` sets the code to S8B0B. + """ + return self._code + + @property + def data(self) -> TriggerASerialData: + """Return the ``TRIGger:A:SERIAL:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:SERIAL:DATa:FORMat`` command. + - ``.pattern``: The ``TRIGger:A:SERIAL:DATa:PATtern`` command. + """ + return self._data + + @property + def errordetector(self) -> TriggerASerialErrordetector: + """Return the ``TRIGger:A:SERIAL:ERRORdetector`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:ERRORdetector?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:ERRORdetector?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.file``: The ``TRIGger:A:SERIAL:ERRORdetector:FILE`` command tree. + """ + return self._errordetector + + @property + def locklen(self) -> TriggerASerialLocklen: + """Return the ``TRIGger:A:SERIAL:LOCKLen`` command. + + **Description:** + - This command sets or queries the length in bits of the repeating bit pattern for + pattern lock trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:LOCKLen?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:LOCKLen?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:LOCKLen value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:LOCKLen + - TRIGger:A:SERIAL:LOCKLen? + + **Info:** + - ```` specifies the length in bits. The valid values are 1 to 2147483647. + """ + return self._locklen + + @property + def lockoffset(self) -> TriggerASerialLockoffset: + """Return the ``TRIGger:A:SERIAL:LOCKOffset`` command. + + **Description:** + - This command sets or queries the current bit offset into the pattern lock trigger bit + pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:LOCKOffset?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:LOCKOffset?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:LOCKOffset value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:LOCKOffset + - TRIGger:A:SERIAL:LOCKOffset? + + **Info:** + - ```` specifies the bit offset. The valid values are 1 to 2147483646. + """ + return self._lockoffset + + @property + def source(self) -> TriggerASerialSource: + """Return the ``TRIGger:A:SERIAL:SOUrce`` command. + + **Description:** + - This command sets or queries the serial data source channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:SOUrce {CH} + - TRIGger:A:SERIAL:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels. x has a minimum of 1 and a maximum of + 4. + """ + return self._source + + @property + def standard(self) -> TriggerASerialStandard: + """Return the ``TRIGger:A:SERIAL:STANdard`` command. + + **Description:** + - This command sets or queries the standard that identifies the code and bit rate. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:STANdard?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:STANdard?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:STANdard value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:STANdard {FC133|FC266|FC531|FC1063|D|VIDEO270|VIDEO360|OC1|OC3| OC12|ENET1250|FW1394BS400B|FW1394BS800B|CUSTom|ENET100FX| RIO_500M|RIO_750M|RIO_1G|RIO_SERIAL_1G|VSROC192|ENETXAUI| SAS3_?|PCIExpress|INFINIBAND|RIO_SERIAL_2G|RIO_SERIAL_3G| FC2125|RIO_2G|FW1394BS1600B|SAS1_5|ENETXAUI|ENETXAUI2| FC2125|FC4250|FW1394BS1600B|INFINIBAND|PCIExpress|PCIExpress2| RIO_2G|RIO_500M|RIO_750M|RIO_SERIAL_1G|RIO_SERIAL_2_5G| RIO_SERIAL_3G|SAS6_0|SATA1_5|SATA3_0|SATA6_0} + - TRIGger:A:SERIAL:STANdard? + + **Info:** + - ``FC133`` : NRZ, 132.8 Mb/s. + - ``FC266`` : NRZ, 265.6 Mb/s. + - ``FC531`` : NRZ, 531.2 Mb/s. + - ``FC1063`` : NRZ, 1.063 Gb/s. + - ``OC1`` : NRZ, 51.84 Mb/s. + - ``OC3`` : NRZ, 155.5 Mb/s. + - ``OC12`` : NRZ, 622.1 Mb/s. + - ``ENET1250`` : NRZ, 3.125 Gb/s. + - ``ENETXAUI`` : NRZ, 1.25 Gb/s. + - ``ENETXAUI2`` : NRZ, 6.25 Gb/s. + - ``FW1394BS400B`` : NRZ, 491.5 Mb/s. + - ``FW1394BS1600B`` : NRZ, 1.966 Gb/s. + - ``FW1394BS800B`` : NRZ, 983.0 Mb/s. + - ``CUSTom`` : NRZ, 155.5 Mb/s. + - ``ENET100FX`` : MLT3, 100 Mb/s. + - ``RIO_500M`` : NRZ, 500 Mb/s, triggers ``RIO_DRV500``, ``RIO_EDRV500M``, and + ``RIO_RCV500``, 500Mb/s. + - ``RIO_750M`` : NRZ, 750 Mb/s, triggers ``RIO_DRV750``, ``RIO_EDRV750M``, and + ``RIO_RCV750``, 750Mb/s. + - ``RIO_1G`` : NRZ, 1.0 Gb/s, triggers ``RIO_1G``. + - ``RIO_SERIAL_1G`` : NRZ, 1.25 Gb/s, triggers ``RIO_Serial_1G``. + - ``RIO_2G`` : NRZ, 2.0 Gb/s. + - ``RIO_SERIAL_2_5G`` : NRZ, 2.5 Gb/s, triggers ``RIO_Serial_1G``. + - ``RIO_SERIAL_3G`` : NRZ, 3.0 Gb/s, triggers ``RIO_Serial_1G``. + - ``VSROC192`` : NRZ, 1.2441 Gb/s, triggers VSR OC192/STM64. + - ``FC2125`` : NRZ, 2.125 Gb/s. + - ``FC4250`` : NRZ, 4.25 Gb/s. + - ``INFINIBAND`` : NRZ, 2.5 Gb/s. + - ``PCIExpress`` : NRZ, 2.5 Gb/s. + - ``PCIExpress2`` : NRZ, 5.0 Gb/s. + - ``SAS6_0`` : NRZ, ``SAS6_0``. + - ``SATA1_5`` : NRZ, 1.5 Gb/s. + - ``SATA3_0`` : NRZ, 3.0 Gb/s. + - ``SATA6_0`` : NRZ, 6.0 Gb/s. + """ # noqa: E501 + return self._standard + + @property + def triggeron(self) -> TriggerASerialTriggeron: + """Return the ``TRIGger:A:SERIAL:TRIGgeron`` command. + + **Description:** + - This command sets or queries the trigger on a designated arbitrary bit pattern or lock + on a repeating pattern of known length. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL:TRIGgeron?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL:TRIGgeron?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:SERIAL:TRIGgeron value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:SERIAL:TRIGgeron {PATtern|LOck} + - TRIGger:A:SERIAL:TRIGgeron? + + **Info:** + - ``PATtern`` specifies the trigger on a designated arbitrary bit pattern. + - ``LOck`` specifies the trigger locks a repeating pattern of known length. + """ + return self._triggeron + + +class TriggerAReady(SCPICmdRead): + """The ``TRIGger:A:READY`` command. + + **Description:** + - This command queries the trigger ready state and provides the immediate state from the + trigger system. It is a more synchronous means of determining when the oscilloscope is + ready to trigger. The ``TRIGGER:STATE`` reflects a less-frequently updated status of the + trigger LEDs on the instrument front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:READY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:READY?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:READY? + """ + + +class TriggerAPulseWindowWidth(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:WIDTH`` command. + + **Description:** + - This command sets or queries the minimum width for a window violation. This command is + equivalent to selecting Window Setup from the Trig menu, selecting Wider than in the + Trigger When box, and setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:WIDTH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:WIDTH?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:WIDTH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:WIDTH + - TRIGger:A:PULse:WINdow:WIDTH? + + **Info:** + - ```` argument specifies the minimum width in seconds. + """ + + +class TriggerAPulseWindowWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:WHEn`` command. + + **Description:** + - This command sets or queries the window trigger violation qualification. This command is + equivalent to selecting Window Setup from the Trig menu and selecting Logic, Occurs, or + Wider than in the Trigger When box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:WHEn {LOGIc|OCCurs|WIDERthan} + - TRIGger:A:PULse:WINdow:WHEn? + + **Info:** + - ``LOGIc`` argument specifies a trigger event when a window violation occurs on the AND of + the logic channels. + - ``OCCurs`` argument specifies a trigger event if any detectable window violation occurs. + - ``WIDERthan`` specifies a trigger event if a window violation greater than the specified + width occurs. + """ + + +class TriggerAPulseWindowType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:TYPe`` command. + + **Description:** + - This command sets or queries the window trigger type. This command is equivalent to + selecting Window Setup from the Trig menu and selecting Outside Limits or Inside Limits in + the Trigger When section. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:TYPe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:TYPe {INSide|OUTside} + - TRIGger:A:PULse:WINdow:TYPe? + + **Info:** + - ``INSide`` argument causes a trigger event to occur when a pulse enters the window defined + by the upper and lower thresholds. + - ``OUTside`` argument causes a trigger event to occur when a pulse goes outside the window + defined by the upper and lower thresholds. + """ + + +class TriggerAPulseWindowThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the window trigger. This command is + equivalent to selecting Window Setup from the Trig menu and setting the Lower Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold:LOW + - TRIGger:A:PULse:WINdow:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerAPulseWindowThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse window trigger. This command is + equivalent to selecting Window Setup from the Trig menu and setting the window trigger + Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold:HIGH + - TRIGger:A:PULse:WINdow:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerAPulseWindowThresholdBoth(SCPICmdWrite): + """The ``TRIGger:A:PULse:WINdow:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the window + trigger. This command is equivalent to selecting Window Setup from the Trig menu and then + setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` argument sets the upper and the lower threshold to the nominal TTL voltage levels. + - ``ECL`` argument sets the upper and the lower threshold to the nominal ECL voltage levels. + """ + + +class TriggerAPulseWindowThreshold(SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the window trigger. + This command query is equivalent to selecting Window Setup from the Trig menu and viewing + the window trigger Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:THReshold?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold? + + Properties: + - ``.both``: The ``TRIGger:A:PULse:WINdow:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:A:PULse:WINdow:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._both = TriggerAPulseWindowThresholdBoth(device, f"{self._cmd_syntax}:BOTh") + self._high = TriggerAPulseWindowThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerAPulseWindowThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def both(self) -> TriggerAPulseWindowThresholdBoth: + """Return the ``TRIGger:A:PULse:WINdow:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the + window trigger. This command is equivalent to selecting Window Setup from the Trig + menu and then setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` argument sets the upper and the lower threshold to the nominal TTL voltage + levels. + - ``ECL`` argument sets the upper and the lower threshold to the nominal ECL voltage + levels. + """ + return self._both + + @property + def high(self) -> TriggerAPulseWindowThresholdHigh: + """Return the ``TRIGger:A:PULse:WINdow:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse window trigger. This + command is equivalent to selecting Window Setup from the Trig menu and setting the + window trigger Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold:HIGH + - TRIGger:A:PULse:WINdow:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._high + + @property + def low(self) -> TriggerAPulseWindowThresholdLow: + """Return the ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the window trigger. This command is + equivalent to selecting Window Setup from the Trig menu and setting the Lower Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold:LOW + - TRIGger:A:PULse:WINdow:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._low + + +class TriggerAPulseWindowQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:QUAlify`` command. + + **Description:** + - This command sets or queries the Window Trigger qualification. This is equivalent to + selecting Window Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Window drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:WINdow:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerAPulseWindowPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the specified channel. + The oscilloscope triggers only when the signal exits the window. The command is available + only when the Window Event is set to Inside > t and not available for the rest of the + window events. The logic selection is available only when the polarity is set to Either. + is the search number or channel number. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:WINdow:POLarity:CH? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + """ + + +class TriggerAPulseWindowPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:POLarity`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the selected trigger + Source. The instrument triggers when the signal exits the window. The command is available + only when the option Inside > t is selected in the Window Event drop-dowm list and not + available for the rest of the window events. The logic selection is available only when + the polarity is set to Either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:WINdow:POLarity? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseWindowPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseWindowPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseWindowPolarityChannel]: + """Return the ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the specified + channel. The oscilloscope triggers only when the signal exits the window. The command + is available only when the Window Event is set to Inside > t and not available for the + rest of the window events. The logic selection is available only when the polarity is + set to Either. is the search number or channel number. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:WINdow:POLarity:CH? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + """ + return self._ch + + +class TriggerAPulseWindowLogicThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the window logic trigger threshold for the channel specified + by , which can be 1, 2, 3, or 4. This is equivalent to selecting Window Setup from the + Trig menu and setting the window logic threshold in the Trigger When box. While all + channels can be set or queried, only channels 3 and 4 can be used if the window source is + channel 1 or 2. Similarly, only channels 1 and 2 can be used if the window source is + channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH + - TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH? + + **Info:** + - ```` argument specifies the window logic trigger threshold in volts. + """ + + +class TriggerAPulseWindowLogicThreshold(SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:LOGIc:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseWindowLogicThresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseWindowLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseWindowLogicThresholdChannel]: + """Return the ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the window logic trigger threshold for the channel + specified by , which can be 1, 2, 3, or 4. This is equivalent to selecting Window + Setup from the Trig menu and setting the window logic threshold in the Trigger When + box. While all channels can be set or queried, only channels 3 and 4 can be used if + the window source is channel 1 or 2. Similarly, only channels 1 and 2 can be used if + the window source is channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH + - TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH? + + **Info:** + - ```` argument specifies the window logic trigger threshold in volts. + """ + return self._ch + + +class TriggerAPulseWindowLogicInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + r"""The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. + + **Description:** + - This command sets or queries the A window logic input for the channel specified by , + which can be 1, 2, 3, or 4. This is equivalent to selecting Window Setup from the Trig + menu, selecting Logic in the Trigger When box, and selecting a logic (H, L, or X) for the + channel. While all channels can be set or queried, only channels 3 and 4 can be used if + the window source is channel 1 or 2. Similarly, only channels 1 and 2 can be used if the + window source is channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH {HIGH\LOW\X} + - TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH? + + **Info:** + - ``HIGH`` argument specifies logic high. + - ``LOW`` argument specifies logic low. + - ``X`` argument specifies a don't care state. + """ + + +class TriggerAPulseWindowLogicInput(SCPICmdReadWithArguments): + """The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT`` command. + + **Description:** + - This query-only command returns the current window trigger logic input parameters. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT? TRIGger:A:PULse:WINdow:LOGIcINPUT?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT? TRIGger:A:PULse:WINdow:LOGIcINPUT?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc:INPUT? TRIGger:A:PULse:WINdow:LOGIcINPUT? + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseWindowLogicInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseWindowLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseWindowLogicInputChannel]: + r"""Return the ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. + + **Description:** + - This command sets or queries the A window logic input for the channel specified by + , which can be 1, 2, 3, or 4. This is equivalent to selecting Window Setup from the + Trig menu, selecting Logic in the Trigger When box, and selecting a logic (H, L, or X) + for the channel. While all channels can be set or queried, only channels 3 and 4 can + be used if the window source is channel 1 or 2. Similarly, only channels 1 and 2 can + be used if the window source is channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH {HIGH\LOW\X} + - TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH? + + **Info:** + - ``HIGH`` argument specifies logic high. + - ``LOW`` argument specifies logic low. + - ``X`` argument specifies a don't care state. + """ + return self._ch + + +class TriggerAPulseWindowLogic(SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:LOGIc`` command. + + **Description:** + - This query-only command returns the current window trigger logic parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:LOGIc?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc? + + Properties: + - ``.input``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT`` command. + - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._input = TriggerAPulseWindowLogicInput(device, f"{self._cmd_syntax}:INPUT") + self._threshold = TriggerAPulseWindowLogicThreshold(device, f"{self._cmd_syntax}:THReshold") + + @property + def input(self) -> TriggerAPulseWindowLogicInput: + """Return the ``TRIGger:A:PULse:WINdow:LOGIc:INPUT`` command. + + **Description:** + - This query-only command returns the current window trigger logic input parameters. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT? TRIGger:A:PULse:WINdow:LOGIcINPUT?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:INPUT? TRIGger:A:PULse:WINdow:LOGIcINPUT?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc:INPUT? TRIGger:A:PULse:WINdow:LOGIcINPUT? + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT:CH`` command. + """ + return self._input + + @property + def threshold(self) -> TriggerAPulseWindowLogicThreshold: + """Return the ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:LOGIc:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerAPulseWindowEvent(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow:EVENT`` command. + + **Description:** + - This command sets or queries the window trigger event. This command is equivalent to + selecting Window Setup from the Trig menu and selecting from the Window Event box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:EVENT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:EVENT?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:EVENT value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:EVENT {OUTSIDEGreater|INSIDEGreater|ENTERSWindow|EXITSWindow} + - TRIGger:A:PULse:WINdow:EVENT? + + **Info:** + - ``OUTSIDEGreater`` specifies a trigger event when the signal leaves the window defined by + the threshold levels for the time specified by Width. + - ``INSIDEGreater`` specifies a trigger event when the signal enters the window defined by + the threshold levels for the time specified by Width. + - ``ENTERSWindow`` specifies a trigger event when the signal enters the window defined by + the threshold levels. + - ``EXITSWindow`` specifies a trigger event when the signal leaves the window defined by the + threshold levels. + """ + + +# pylint: disable=too-many-instance-attributes +class TriggerAPulseWindow(SCPICmdRead): + """The ``TRIGger:A:PULse:WINdow`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.logic``: The ``TRIGger:A:PULse:WINdow:LOGIc`` command. + - ``.event``: The ``TRIGger:A:PULse:WINdow:EVENT`` command. + - ``.polarity``: The ``TRIGger:A:PULse:WINdow:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:WINdow:QUAlify`` command. + - ``.threshold``: The ``TRIGger:A:PULse:WINdow:THReshold`` command. + - ``.type``: The ``TRIGger:A:PULse:WINdow:TYPe`` command. + - ``.when``: The ``TRIGger:A:PULse:WINdow:WHEn`` command. + - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._logic = TriggerAPulseWindowLogic(device, f"{self._cmd_syntax}:LOGIc") + self._event = TriggerAPulseWindowEvent(device, f"{self._cmd_syntax}:EVENT") + self._polarity = TriggerAPulseWindowPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerAPulseWindowQualify(device, f"{self._cmd_syntax}:QUAlify") + self._threshold = TriggerAPulseWindowThreshold(device, f"{self._cmd_syntax}:THReshold") + self._type = TriggerAPulseWindowType(device, f"{self._cmd_syntax}:TYPe") + self._when = TriggerAPulseWindowWhen(device, f"{self._cmd_syntax}:WHEn") + self._width = TriggerAPulseWindowWidth(device, f"{self._cmd_syntax}:WIDTH") + + @property + def logic(self) -> TriggerAPulseWindowLogic: + """Return the ``TRIGger:A:PULse:WINdow:LOGIc`` command. + + **Description:** + - This query-only command returns the current window trigger logic parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:LOGIc?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:LOGIc? + + Sub-properties: + - ``.input``: The ``TRIGger:A:PULse:WINdow:LOGIc:INPUT`` command. + - ``.threshold``: The ``TRIGger:A:PULse:WINdow:LOGIc:THReshold`` command tree. + """ + return self._logic + + @property + def event(self) -> TriggerAPulseWindowEvent: + """Return the ``TRIGger:A:PULse:WINdow:EVENT`` command. + + **Description:** + - This command sets or queries the window trigger event. This command is equivalent to + selecting Window Setup from the Trig menu and selecting from the Window Event box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:EVENT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:EVENT?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:EVENT value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:EVENT {OUTSIDEGreater|INSIDEGreater|ENTERSWindow|EXITSWindow} + - TRIGger:A:PULse:WINdow:EVENT? + + **Info:** + - ``OUTSIDEGreater`` specifies a trigger event when the signal leaves the window defined + by the threshold levels for the time specified by Width. + - ``INSIDEGreater`` specifies a trigger event when the signal enters the window defined + by the threshold levels for the time specified by Width. + - ``ENTERSWindow`` specifies a trigger event when the signal enters the window defined + by the threshold levels. + - ``EXITSWindow`` specifies a trigger event when the signal leaves the window defined by + the threshold levels. + """ + return self._event + + @property + def polarity(self) -> TriggerAPulseWindowPolarity: + """Return the ``TRIGger:A:PULse:WINdow:POLarity`` command. + + **Description:** + - This command sets or queries the pulse trigger window polarity of the selected trigger + Source. The instrument triggers when the signal exits the window. The command is + available only when the option Inside > t is selected in the Window Event drop-dowm + list and not available for the rest of the window events. The logic selection is + available only when the polarity is set to Either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:POLarity {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:WINdow:POLarity? + + **Info:** + - ``EITher`` specifies positive or negative polarity. + - ``NEGAtive`` specifies a negative polarity. + - ``POSITIVe`` specifies a positive polarity. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:WINdow:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerAPulseWindowQualify: + """Return the ``TRIGger:A:PULse:WINdow:QUAlify`` command. + + **Description:** + - This command sets or queries the Window Trigger qualification. This is equivalent to + selecting Window Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Window drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:WINdow:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def threshold(self) -> TriggerAPulseWindowThreshold: + """Return the ``TRIGger:A:PULse:WINdow:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the window trigger. + This command query is equivalent to selecting Window Setup from the Trig menu and + viewing the window trigger Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WINdow:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:THReshold? + + Sub-properties: + - ``.both``: The ``TRIGger:A:PULse:WINdow:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:A:PULse:WINdow:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:PULse:WINdow:THReshold:LOW`` command. + """ + return self._threshold + + @property + def type(self) -> TriggerAPulseWindowType: + """Return the ``TRIGger:A:PULse:WINdow:TYPe`` command. + + **Description:** + - This command sets or queries the window trigger type. This command is equivalent to + selecting Window Setup from the Trig menu and selecting Outside Limits or Inside + Limits in the Trigger When section. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:TYPe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:TYPe {INSide|OUTside} + - TRIGger:A:PULse:WINdow:TYPe? + + **Info:** + - ``INSide`` argument causes a trigger event to occur when a pulse enters the window + defined by the upper and lower thresholds. + - ``OUTside`` argument causes a trigger event to occur when a pulse goes outside the + window defined by the upper and lower thresholds. + """ + return self._type + + @property + def when(self) -> TriggerAPulseWindowWhen: + """Return the ``TRIGger:A:PULse:WINdow:WHEn`` command. + + **Description:** + - This command sets or queries the window trigger violation qualification. This command + is equivalent to selecting Window Setup from the Trig menu and selecting Logic, + Occurs, or Wider than in the Trigger When box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WINdow:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:WHEn {LOGIc|OCCurs|WIDERthan} + - TRIGger:A:PULse:WINdow:WHEn? + + **Info:** + - ``LOGIc`` argument specifies a trigger event when a window violation occurs on the AND + of the logic channels. + - ``OCCurs`` argument specifies a trigger event if any detectable window violation + occurs. + - ``WIDERthan`` specifies a trigger event if a window violation greater than the + specified width occurs. + """ + return self._when + + @property + def width(self) -> TriggerAPulseWindowWidth: + """Return the ``TRIGger:A:PULse:WINdow:WIDTH`` command. + + **Description:** + - This command sets or queries the minimum width for a window violation. This command is + equivalent to selecting Window Setup from the Trig menu, selecting Wider than in the + Trigger When box, and setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow:WIDTH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow:WIDTH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WINdow:WIDTH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WINdow:WIDTH + - TRIGger:A:PULse:WINdow:WIDTH? + + **Info:** + - ```` argument specifies the minimum width in seconds. + """ + return self._width + + +class TriggerAPulseWidthWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth:WHEn`` command. + + **Description:** + - This command sets or queries whether to trigger on a pulse width that falls outside (or + within) the specified range of limits. You can define or query trigger pulse width upper + and lower limits using the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and + ``TRIGger:A:PULse:WIDth:LOWLimit`` commands. This command is equivalent to selecting Width + Setup from the Trig menu and then choosing from the Trig When drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WIDth:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:WHEn {OUTside|WIThin} + - TRIGger:A:PULse:WIDth:WHEn? + + **Info:** + - ``OUTside`` argument causes a trigger event the duration of the pulse is greater than the + high limit or less than the low limit specified. The high and low limits are specified + with the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and ``TRIGger:A:PULse:WIDth:LOWLimit`` + commands respectively. + - ``WIThin`` argument causes a trigger event when the duration of the pulse is within the + high and low limits. The high and low limits are specified with the + ``TRIGger:A:PULse:WIDth:HIGHLimit`` and ``TRIGger:A:PULse:WIDth:LOWLimit`` command + respectively. + """ + + +class TriggerAPulseWidthQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth:QUAlify`` command. + + **Description:** + - This command sets or queries the Width Trigger qualification. This is equivalent to + selecting Width Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Width drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:QUAlify?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WIDth:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:WIDth:QUAlify? + + **Info:** + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerAPulseWidthPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse width trigger for the + channel. This command is equivalent to selecting Width Setup from the Trig menu and then + selecting the pulse width trigger Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WIDth:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:POLarity:CH {NEGAtive|POSITIVe} + - TRIGger:A:PULse:WIDth:POLarity:CH? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + """ + + +class TriggerAPulseWidthPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and selecting the Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WIDth:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:POLarity {NEGAtive|POSITIVe} + - TRIGger:A:PULse:WIDth:POLarity? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseWidthPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseWidthPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseWidthPolarityChannel]: + """Return the ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse width trigger for the + channel. This command is equivalent to selecting Width Setup from the Trig menu and + then selecting the pulse width trigger Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WIDth:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:POLarity:CH {NEGAtive|POSITIVe} + - TRIGger:A:PULse:WIDth:POLarity:CH? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + """ + return self._ch + + +class TriggerAPulseWidthLowpassfilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turn off the low­pass filter feature for pulse width trigger. + This allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:LOWPASSfilter?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:WIDth:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + + +class TriggerAPulseWidthLowlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth:LOWLimit`` command. + + **Description:** + - This command sets or queries the lower limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the pulse Lower Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:LOWLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WIDth:LOWLimit value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:LOWLimit + - TRIGger:A:PULse:WIDth:LOWLimit? + + **Info:** + - ```` specifies the A pulse width trigger lower limit in seconds. + """ + + +class TriggerAPulseWidthHighlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth:HIGHLimit`` command. + + **Description:** + - This command sets or queries the upper limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the Upper Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:HIGHLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:HIGHLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WIDth:HIGHLimit value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:HIGHLimit + - TRIGger:A:PULse:WIDth:HIGHLimit? + + **Info:** + - ```` specifies the width trigger upper limit in seconds. + """ + + +class TriggerAPulseWidth(SCPICmdRead): + """The ``TRIGger:A:PULse:WIDth`` command. + + **Description:** + - This query-only command returns the width parameters for the pulse width trigger. This + command is equivalent to selecting Width Setup from the Trig menu and then viewing the + current pulse width trigger Lower Limit, Upper Limit, Trig When and Polarity settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth? + + Properties: + - ``.highlimit``: The ``TRIGger:A:PULse:WIDth:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:A:PULse:WIDth:LOWLimit`` command. + - ``.lowpassfilter``: The ``TRIGger:A:PULse:WIDth:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:A:PULse:WIDth:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:WIDth:QUAlify`` command. + - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._highlimit = TriggerAPulseWidthHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") + self._lowlimit = TriggerAPulseWidthLowlimit(device, f"{self._cmd_syntax}:LOWLimit") + self._lowpassfilter = TriggerAPulseWidthLowpassfilter( + device, f"{self._cmd_syntax}:LOWPASSfilter" + ) + self._polarity = TriggerAPulseWidthPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerAPulseWidthQualify(device, f"{self._cmd_syntax}:QUAlify") + self._when = TriggerAPulseWidthWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def highlimit(self) -> TriggerAPulseWidthHighlimit: + """Return the ``TRIGger:A:PULse:WIDth:HIGHLimit`` command. + + **Description:** + - This command sets or queries the upper limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the Upper Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:HIGHLimit?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:HIGHLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:HIGHLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:HIGHLimit + - TRIGger:A:PULse:WIDth:HIGHLimit? + + **Info:** + - ```` specifies the width trigger upper limit in seconds. + """ + return self._highlimit + + @property + def lowlimit(self) -> TriggerAPulseWidthLowlimit: + """Return the ``TRIGger:A:PULse:WIDth:LOWLimit`` command. + + **Description:** + - This command sets or queries the lower limit for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and setting the pulse Lower + Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:LOWLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:LOWLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:LOWLimit + - TRIGger:A:PULse:WIDth:LOWLimit? + + **Info:** + - ```` specifies the A pulse width trigger lower limit in seconds. + """ + return self._lowlimit + + @property + def lowpassfilter(self) -> TriggerAPulseWidthLowpassfilter: + """Return the ``TRIGger:A:PULse:WIDth:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turn off the low­pass filter feature for pulse width trigger. + This allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:WIDth:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:WIDth:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + return self._lowpassfilter + + @property + def polarity(self) -> TriggerAPulseWidthPolarity: + """Return the ``TRIGger:A:PULse:WIDth:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the width trigger. This command is + equivalent to selecting Width Setup from the Trig menu and selecting the Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:POLarity {NEGAtive|POSITIVe} + - TRIGger:A:PULse:WIDth:POLarity? + + **Info:** + - ``NEGAtive`` specifies a negative pulse. + - ``POSITIVe`` specifies a positive pulse. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:WIDth:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerAPulseWidthQualify: + """Return the ``TRIGger:A:PULse:WIDth:QUAlify`` command. + + **Description:** + - This command sets or queries the Width Trigger qualification. This is equivalent to + selecting Width Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Width drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:WIDth:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:WIDth:QUAlify? + + **Info:** + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def when(self) -> TriggerAPulseWidthWhen: + """Return the ``TRIGger:A:PULse:WIDth:WHEn`` command. + + **Description:** + - This command sets or queries whether to trigger on a pulse width that falls outside + (or within) the specified range of limits. You can define or query trigger pulse width + upper and lower limits using the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and + ``TRIGger:A:PULse:WIDth:LOWLimit`` commands. This command is equivalent to selecting + Width Setup from the Trig menu and then choosing from the Trig When drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:WIDth:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth:WHEn {OUTside|WIThin} + - TRIGger:A:PULse:WIDth:WHEn? + + **Info:** + - ``OUTside`` argument causes a trigger event the duration of the pulse is greater than + the high limit or less than the low limit specified. The high and low limits are + specified with the ``TRIGger:A:PULse:WIDth:HIGHLimit`` and + ``TRIGger:A:PULse:WIDth:LOWLimit`` commands respectively. + - ``WIThin`` argument causes a trigger event when the duration of the pulse is within + the high and low limits. The high and low limits are specified with the + ``TRIGger:A:PULse:WIDth:HIGHLimit`` and ``TRIGger:A:PULse:WIDth:LOWLimit`` command + respectively. + """ + return self._when + + +class TriggerAPulseTransitionWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:WHEn`` command. + + **Description:** + - This command sets or queries whether to check for a transitioning signal that is faster or + slower than the specified delta time. This is equivalent to selecting Transition Setup + from the Trig menu and choosing the Trigger When Transition Time setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TRANsition:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:TRANsition:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:WHEn {FASTERthan|SLOWERthan} + - TRIGger:A:PULse:TRANsition:WHEn? + + **Info:** + - ``FASTERthan`` sets the trigger to occur when the transitioning signal is faster than the + set volts/second rate. + - ``SLOWERthan`` sets the trigger to occur when the transitioning signal is slower than the + set volts/second rate. + """ + + +class TriggerAPulseTransitionThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower (most negative) transition trigger threshold. This + command is equivalent to selecting Transition Setup from the Trig menu and setting the + desired Lower Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold:LOW + - TRIGger:A:PULse:TRANsition:THReshold:LOW? + + **Info:** + - ```` specifies the lower threshold in volts. + """ + + +class TriggerAPulseTransitionThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper (most positive) transition trigger threshold. This + command is equivalent to selecting Transition Setup from the Trig menu and then setting + the desired Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold:HIGH + - TRIGger:A:PULse:TRANsition:THReshold:HIGH? + + **Info:** + - ```` specifies the upper threshold in volts. + """ + + +class TriggerAPulseTransitionThresholdBoth(SCPICmdWrite): + """The ``TRIGger:A:PULse:TRANsition:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower thresholds for the transition + trigger. This command is equivalent to selecting Transition Setup from the Trig menu and + setting the desired Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and the lower threshold to the nominal ECL voltage levels. + """ + + +class TriggerAPulseTransitionThreshold(SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower threshold limits for the transition + time trigger. This command is equivalent to selecting Transition Setup from the Trig menu + and viewing the Upper Level and Lower Level voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold? + + Properties: + - ``.both``: The ``TRIGger:A:PULse:TRANsition:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:A:PULse:TRANsition:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._both = TriggerAPulseTransitionThresholdBoth(device, f"{self._cmd_syntax}:BOTh") + self._high = TriggerAPulseTransitionThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerAPulseTransitionThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def both(self) -> TriggerAPulseTransitionThresholdBoth: + """Return the ``TRIGger:A:PULse:TRANsition:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower thresholds for the transition + trigger. This command is equivalent to selecting Transition Setup from the Trig menu + and setting the desired Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and the lower threshold to the nominal ECL voltage levels. + """ + return self._both + + @property + def high(self) -> TriggerAPulseTransitionThresholdHigh: + """Return the ``TRIGger:A:PULse:TRANsition:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper (most positive) transition trigger threshold. + This command is equivalent to selecting Transition Setup from the Trig menu and then + setting the desired Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:HIGH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold:HIGH + - TRIGger:A:PULse:TRANsition:THReshold:HIGH? + + **Info:** + - ```` specifies the upper threshold in volts. + """ + return self._high + + @property + def low(self) -> TriggerAPulseTransitionThresholdLow: + """Return the ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower (most negative) transition trigger threshold. + This command is equivalent to selecting Transition Setup from the Trig menu and + setting the desired Lower Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold:LOW + - TRIGger:A:PULse:TRANsition:THReshold:LOW? + + **Info:** + - ```` specifies the lower threshold in volts. + """ + return self._low + + +class TriggerAPulseTransitionQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:QUAlify`` command. + + **Description:** + - This command sets or queries the Transition Time Trigger qualification. This is equivalent + to selecting Transition Setup from the Trig menu and selecting Occurs, Logic, or Bus in + the Trigger If Transition drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TRANsition:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:TRANsition:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any violations occur. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerAPulseTransitionPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse transition trigger for the + channel. This command is equivalent to selecting Transition Setup from the Trig menu and + then choosing from the Polarity pull-down list for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:TRANsition:POLarity:CH? + + **Info:** + - ``EITher`` indicates either positive or negative polarity. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) to + lower (most negative) level for transition triggering to occur. + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) to + higher (post positive) level for transition triggering to occur. + """ + + +class TriggerAPulseTransitionPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the transition trigger. This command is + equivalent to selecting Transition Setup from the Trig menu and choosing from the Polarity + drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TRANsition:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:TRANsition:POLarity? + + **Info:** + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) to + higher (most positive) level for transition triggering to occur. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) to + lower (most negative) level for transition triggering to occur. + - ``EITher`` indicates either positive or negative polarity. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseTransitionPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseTransitionPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseTransitionPolarityChannel]: + """Return the ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse transition trigger for + the channel. This command is equivalent to selecting Transition Setup from the Trig + menu and then choosing from the Polarity pull-down list for the channel. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:TRANsition:POLarity:CH? + + **Info:** + - ``EITher`` indicates either positive or negative polarity. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) + to lower (most negative) level for transition triggering to occur. + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) + to higher (post positive) level for transition triggering to occur. + """ + return self._ch + + +class TriggerAPulseTransitionDeltatime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition:DELTATime`` command. + + **Description:** + - This command sets or queries the delta time used in calculating the transition value for + the transition trigger. This is equivalent to selecting Transition Setup from the Trig + menu and setting the Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:DELTATime?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:DELTATime?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:DELTATime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:DELTATime + - TRIGger:A:PULse:TRANsition:DELTATime? + + **Info:** + - ```` specifies the delta time in seconds. + """ + + +class TriggerAPulseTransition(SCPICmdRead): + """The ``TRIGger:A:PULse:TRANsition`` command. + + **Description:** + - This query-only command returns delta time, polarity, and both upper and lower threshold + limits for the transition time trigger. This command is equivalent to selecting Transition + Setup from the Trig menu and then viewing the current transition settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TRANsition?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition? + + Properties: + - ``.deltatime``: The ``TRIGger:A:PULse:TRANsition:DELTATime`` command. + - ``.polarity``: The ``TRIGger:A:PULse:TRANsition:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:TRANsition:QUAlify`` command. + - ``.threshold``: The ``TRIGger:A:PULse:TRANsition:THReshold`` command. + - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._deltatime = TriggerAPulseTransitionDeltatime(device, f"{self._cmd_syntax}:DELTATime") + self._polarity = TriggerAPulseTransitionPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerAPulseTransitionQualify(device, f"{self._cmd_syntax}:QUAlify") + self._threshold = TriggerAPulseTransitionThreshold(device, f"{self._cmd_syntax}:THReshold") + self._when = TriggerAPulseTransitionWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def deltatime(self) -> TriggerAPulseTransitionDeltatime: + """Return the ``TRIGger:A:PULse:TRANsition:DELTATime`` command. + + **Description:** + - This command sets or queries the delta time used in calculating the transition value + for the transition trigger. This is equivalent to selecting Transition Setup from the + Trig menu and setting the Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:DELTATime?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:DELTATime?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:DELTATime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:DELTATime + - TRIGger:A:PULse:TRANsition:DELTATime? + + **Info:** + - ```` specifies the delta time in seconds. + """ + return self._deltatime + + @property + def polarity(self) -> TriggerAPulseTransitionPolarity: + """Return the ``TRIGger:A:PULse:TRANsition:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the transition trigger. This command is + equivalent to selecting Transition Setup from the Trig menu and choosing from the + Polarity drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:TRANsition:POLarity? + + **Info:** + - ``POSITIVe`` indicates that a pulse edge must traverse from the lower (most negative) + to higher (most positive) level for transition triggering to occur. + - ``NEGAtive`` indicates that a pulse edge must traverse from the upper (most positive) + to lower (most negative) level for transition triggering to occur. + - ``EITher`` indicates either positive or negative polarity. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:TRANsition:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerAPulseTransitionQualify: + """Return the ``TRIGger:A:PULse:TRANsition:QUAlify`` command. + + **Description:** + - This command sets or queries the Transition Time Trigger qualification. This is + equivalent to selecting Transition Setup from the Trig menu and selecting Occurs, + Logic, or Bus in the Trigger If Transition drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:QUAlify?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:QUAlify?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:TRANsition:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any violations occur. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def threshold(self) -> TriggerAPulseTransitionThreshold: + """Return the ``TRIGger:A:PULse:TRANsition:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower threshold limits for the + transition time trigger. This command is equivalent to selecting Transition Setup from + the Trig menu and viewing the Upper Level and Lower Level voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:THReshold? + + Sub-properties: + - ``.both``: The ``TRIGger:A:PULse:TRANsition:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:A:PULse:TRANsition:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:PULse:TRANsition:THReshold:LOW`` command. + """ + return self._threshold + + @property + def when(self) -> TriggerAPulseTransitionWhen: + """Return the ``TRIGger:A:PULse:TRANsition:WHEn`` command. + + **Description:** + - This command sets or queries whether to check for a transitioning signal that is + faster or slower than the specified delta time. This is equivalent to selecting + Transition Setup from the Trig menu and choosing the Trigger When Transition Time + setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition:WHEn?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TRANsition:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TRANsition:WHEn value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition:WHEn {FASTERthan|SLOWERthan} + - TRIGger:A:PULse:TRANsition:WHEn? + + **Info:** + - ``FASTERthan`` sets the trigger to occur when the transitioning signal is faster than + the set volts/second rate. + - ``SLOWERthan`` sets the trigger to occur when the transitioning signal is slower than + the set volts/second rate. + """ + return self._when + + +class TriggerAPulseTimeoutTime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. + + **Description:** + - This command sets or queries the pulse timeout trigger time (measured in seconds). This + command is equivalent to selecting Timeout Setup from the Trig menu and setting a value + for Timer. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TIMEOut:TIMe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:TIMEOut:TIMe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:TIMe + - TRIGger:A:PULse:TIMEOut:TIMe? + + **Info:** + - ```` argument specifies the timeout period in seconds. + """ + + +class TriggerAPulseTimeoutQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TIMEOut:QUAlify`` command. + + **Description:** + - This command sets or queries the Timeout Trigger qualification. This is equivalent to + selecting Timeout Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Timeout drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TIMEOut:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:TIMEOut:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:TIMEOut:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerAPulseTimeoutPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse timeout trigger for the + channel. This command is equivalent to selecting Transition Setup from the Trig menu and + then setting the desired Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:POLarity:CH {STAYSHigh|STAYSLow|EITher} + - TRIGger:A:PULse:TIMEOut:POLarity:CH? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required time + period to permit time out triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required time + period to permit time out triggering to occur. + - ``EITher`` indicates that the polarity of the time out trigger can stay either high or low + (positive or negative) for the required time period to permit time out triggering to + occur. + """ + + +class TriggerAPulseTimeoutPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TIMEOut:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the pulse timeout trigger. This command is + equivalent to selecting Timeout Setup from the Trig menu and setting the desired polarity + in the Trigger When box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TIMEOut:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:POLarity {STAYSHigh|STAYSLow|EITher} + - TRIGger:A:PULse:TIMEOut:POLarity? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required time + period to permit timeout triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required time + period to permit timeout triggering to occur. + - ``EITher`` indicates that the polarity of the timeout trigger can stay either high or low + (positive or negative) for the required time period to permit time out triggering to + occur. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseTimeoutPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseTimeoutPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseTimeoutPolarityChannel]: + """Return the ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse timeout trigger for the + channel. This command is equivalent to selecting Transition Setup from the Trig menu + and then setting the desired Polarity for the channel. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:POLarity:CH {STAYSHigh|STAYSLow|EITher} + - TRIGger:A:PULse:TIMEOut:POLarity:CH? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required + time period to permit time out triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required + time period to permit time out triggering to occur. + - ``EITher`` indicates that the polarity of the time out trigger can stay either high or + low (positive or negative) for the required time period to permit time out triggering + to occur. + """ + return self._ch + + +class TriggerAPulseTimeoutLowpassfilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Timeout trigger. This + allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:TIMEOut:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + + +class TriggerAPulseTimeout(SCPICmdRead): + """The ``TRIGger:A:PULse:TIMEOut`` command. + + **Description:** + - This query-only command returns the polarity and time-out duration for the pulse timeout + trigger. This command is equivalent to selecting Timeout Setup from the Trig menu and + viewing the polarity in the Trigger When box and the Timer setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TIMEOut?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut? + + Properties: + - ``.lowpassfilter``: The ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:A:PULse:TIMEOut:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:TIMEOut:QUAlify`` command. + - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lowpassfilter = TriggerAPulseTimeoutLowpassfilter( + device, f"{self._cmd_syntax}:LOWPASSfilter" + ) + self._polarity = TriggerAPulseTimeoutPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerAPulseTimeoutQualify(device, f"{self._cmd_syntax}:QUAlify") + self._time = TriggerAPulseTimeoutTime(device, f"{self._cmd_syntax}:TIMe") + + @property + def lowpassfilter(self) -> TriggerAPulseTimeoutLowpassfilter: + """Return the ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Timeout trigger. + This allows triggering in the presence of high­ frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:TIMEOut:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + return self._lowpassfilter + + @property + def polarity(self) -> TriggerAPulseTimeoutPolarity: + """Return the ``TRIGger:A:PULse:TIMEOut:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the pulse timeout trigger. This command + is equivalent to selecting Timeout Setup from the Trig menu and setting the desired + polarity in the Trigger When box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:POLarity {STAYSHigh|STAYSLow|EITher} + - TRIGger:A:PULse:TIMEOut:POLarity? + + **Info:** + - ``STAYSHigh`` indicates that a pulse edge must stay high (positive) for the required + time period to permit timeout triggering to occur. This is the default polarity. + - ``STAYSLow`` indicates that a pulse edge must stay low (negative) for the required + time period to permit timeout triggering to occur. + - ``EITher`` indicates that the polarity of the timeout trigger can stay either high or + low (positive or negative) for the required time period to permit time out triggering + to occur. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:TIMEOut:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerAPulseTimeoutQualify: + """Return the ``TRIGger:A:PULse:TIMEOut:QUAlify`` command. + + **Description:** + - This command sets or queries the Timeout Trigger qualification. This is equivalent to + selecting Timeout Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Timeout drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:QUAlify?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TIMEOut:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:TIMEOut:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def time(self) -> TriggerAPulseTimeoutTime: + """Return the ``TRIGger:A:PULse:TIMEOut:TIMe`` command. + + **Description:** + - This command sets or queries the pulse timeout trigger time (measured in seconds). + This command is equivalent to selecting Timeout Setup from the Trig menu and setting a + value for Timer. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TIMEOut:TIMe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:TIMEOut:TIMe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut:TIMe + - TRIGger:A:PULse:TIMEOut:TIMe? + + **Info:** + - ```` argument specifies the timeout period in seconds. + """ + return self._time + + +class TriggerAPulseSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the pulse trigger. This source parameter + applies to all classes of pulse triggers. This command is equivalent to selecting Event + Trigger Setup from the Trig menu, selecting the pulse type (Glitch, Width, Runt, Timeout, + or Transition), and then choosing the desired channel from the Source pull-down list. When + an UltraSync stack is used, the mapped channels are used to both acquire waveform data and + to trigger the oscilloscope. In the special case of an UltraSync stack master, additional + channels are available for triggering. These are the unmapped channels. For an ATI + UltraSync stack master, CH2, MCH1, and MCH3 can be used for triggering. For a 4-Channel + UltraSync stack master, CH1, MCH2, MCH3, and MCH4 are available for triggering. The + vertical min/max amplitude for these signals must be set up. A detailed discussion is + provided in . + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:SOUrce {CH|D|MCH} + - TRIGger:A:PULse:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels, which range from 1 through 4. + - ``D`` specifies one of the digital inputs, which range from 0 through 15. + - ``MCH`` specifies one of the unmapped channels on the master when using an UltraSync + stack. For details see. + """ + + +class TriggerAPulseRuntWidth(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:WIDth`` command. + + **Description:** + - This command sets or queries the minimum width for an Pulse Runt trigger. This command is + equivalent to selecting Runt Setup from the Trig menu and then setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:WIDth?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:RUNT:WIDth value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:WIDth + - TRIGger:A:PULse:RUNT:WIDth? + + **Info:** + - ```` specifies the minimum width in seconds. + """ + + +class TriggerAPulseRuntWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:WHEn`` command. + + **Description:** + - This command sets or queries the type of pulse width the trigger checks for when it + detects a runt. This is equivalent to selecting Runt Setup from the Trig menu and choosing + the desired Trigger When setting from the drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:WHEn?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:RUNT:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:WHEn {OCCurs|WIDERthan} + - TRIGger:A:PULse:RUNT:WHEn? + + **Info:** + - ``OCCurs`` argument specifies a trigger event if a runt of any detectable width occurs. + - ``WIDERthan`` specifies a trigger event if a runt greater than the specified width occurs. + """ + + +class TriggerAPulseRuntThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the pulse runt trigger. This command is + equivalent to selecting Runt Setup from the Trig menu and then setting the Lower Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:THReshold:LOW?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold:LOW + - TRIGger:A:PULse:RUNT:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerAPulseRuntThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse runt trigger. This command is + equivalent to selecting Runt Setup from the Trig menu and setting the runt trigger Upper + Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:THReshold:HIGH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold:HIGH + - TRIGger:A:PULse:RUNT:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + + +class TriggerAPulseRuntThresholdBoth(SCPICmdWrite): + """The ``TRIGger:A:PULse:RUNT:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the pulse + runt trigger. This command is equivalent to selecting Runt Setup from the Trig menu and + then setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and lower threshold to the nominal ECL voltage levels. + """ + + +class TriggerAPulseRuntThreshold(SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the pulse runt trigger. + This command query is equivalent to selecting Runt Setup from the Trig menu and then + viewing the Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:THReshold?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold? + + Properties: + - ``.both``: The ``TRIGger:A:PULse:RUNT:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:A:PULse:RUNT:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._both = TriggerAPulseRuntThresholdBoth(device, f"{self._cmd_syntax}:BOTh") + self._high = TriggerAPulseRuntThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerAPulseRuntThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def both(self) -> TriggerAPulseRuntThresholdBoth: + """Return the ``TRIGger:A:PULse:RUNT:THReshold:BOTh`` command. + + **Description:** + - This command (no query form) sets the upper and lower switching thresholds for the + pulse runt trigger. This command is equivalent to selecting Runt Setup from the Trig + menu and then setting the Upper Level and Lower Level voltages. + + **Usage:** + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:BOTh value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold:BOTh {TTL|ECL} + + **Info:** + - ``TTL`` sets the upper and lower threshold to the nominal TTL voltage levels. + - ``ECL`` sets the upper and lower threshold to the nominal ECL voltage levels. + """ + return self._both + + @property + def high(self) -> TriggerAPulseRuntThresholdHigh: + """Return the ``TRIGger:A:PULse:RUNT:THReshold:HIGH`` command. + + **Description:** + - This command sets or queries the upper limit for the pulse runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and setting the runt trigger + Upper Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:THReshold:HIGH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold:HIGH + - TRIGger:A:PULse:RUNT:THReshold:HIGH? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._high + + @property + def low(self) -> TriggerAPulseRuntThresholdLow: + """Return the ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. + + **Description:** + - This command sets or queries the lower limit for the pulse runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and then setting the Lower + Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold:LOW + - TRIGger:A:PULse:RUNT:THReshold:LOW? + + **Info:** + - ```` specifies the threshold value in volts. + """ + return self._low + + +class TriggerAPulseRuntQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:QUAlify`` command. + + **Description:** + - This command sets or queries the Runt Trigger qualification. This is equivalent to + selecting Runt Setup from the Trig menu and selecting Occurs, Logic, or Bus in the Trigger + If Runt drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:QUAlify?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:RUNT:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:RUNT:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the command. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerAPulseRuntPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger for the + channel. This command is equivalent to selecting Runt Setup from the Trig menu and then + choosing the Polarity setting for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:POLarity:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:RUNT:POLarity:CH? + + **Info:** + - ``EITher`` indicates either negative or positive polarity. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling edge + recrosses the low threshold without either edge ever crossing the high threshold. + """ + + +class TriggerAPulseRuntPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and then choosing the Polarity + setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:POLarity?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:RUNT:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:RUNT:POLarity? + + **Info:** + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling edge + recrosses the low threshold without either edge ever crossing the high threshold. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``EITher`` indicates either negative or positive polarity. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseRuntPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseRuntPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseRuntPolarityChannel]: + """Return the ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger for the + channel. This command is equivalent to selecting Runt Setup from the Trig menu and + then choosing the Polarity setting for the channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:RUNT:POLarity:CH? + + **Info:** + - ``EITher`` indicates either negative or positive polarity. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling + edge recrosses the low threshold without either edge ever crossing the high threshold. + """ + return self._ch + + +class TriggerAPulseRuntLogicThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the A runt logic threshold for the channel specified by , + which can be 1, 2, 3, or 4. This is equivalent to selecting Runt Setup from the Trig menu + and setting the runt logic threshold. While all channels can be set or queried, only + channels 3 and 4 can be used if the runt source is channel 1 or 2. Similarly only channels + 1 and 2 can be used if the runt source is channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH + - TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH? + + **Info:** + - ```` argument specifies the threshold in volts. + """ + + +class TriggerAPulseRuntLogicThreshold(SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:LOGIc:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseRuntLogicThresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseRuntLogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseRuntLogicThresholdChannel]: + """Return the ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the A runt logic threshold for the channel specified by + , which can be 1, 2, 3, or 4. This is equivalent to selecting Runt Setup from the + Trig menu and setting the runt logic threshold. While all channels can be set or + queried, only channels 3 and 4 can be used if the runt source is channel 1 or 2. + Similarly only channels 1 and 2 can be used if the runt source is channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH + - TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH? + + **Info:** + - ```` argument specifies the threshold in volts. + """ + return self._ch + + +class TriggerAPulseRuntLogicInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. + + **Description:** + - This command sets or queries the A runt logic input for the channel specified by , + which can be 1, 2, 3, or 4. This is equivalent to setting the runt logic inputs from the + Trigger When section in the Runt Trigger menu. While all channels can be set or queried, + only channels 3 and 4 can be used if the runt source is channel 1 or 2. Similarly, only + channels 1 and 2 can be used if the runt source is channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH {HIGH|LOW|X} + - TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH? + + **Info:** + - ``HIGH`` argument specifies logic high. + - ``LOW`` argument specifies logic low. + - ``X`` argument specifies a 'don't care' state. + """ + + +class TriggerAPulseRuntLogicInput(SCPICmdReadWithArguments): + """The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT`` command. + + **Description:** + - This query-only command returns the current A runt pulse trigger logic input parameters. + This query is equivalent to selecting Runt Setup from the Trig menu and then viewing the + current settings. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT? TRIGger:A:PULse:RUNT:LOGIcINPUT?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT? TRIGger:A:PULse:RUNT:LOGIcINPUT?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc:INPUT? TRIGger:A:PULse:RUNT:LOGIcINPUT? + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseRuntLogicInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseRuntLogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseRuntLogicInputChannel]: + """Return the ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. + + **Description:** + - This command sets or queries the A runt logic input for the channel specified by , + which can be 1, 2, 3, or 4. This is equivalent to setting the runt logic inputs from + the Trigger When section in the Runt Trigger menu. While all channels can be set or + queried, only channels 3 and 4 can be used if the runt source is channel 1 or 2. + Similarly, only channels 1 and 2 can be used if the runt source is channel 3 or 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH {HIGH|LOW|X} + - TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH? + + **Info:** + - ``HIGH`` argument specifies logic high. + - ``LOW`` argument specifies logic low. + - ``X`` argument specifies a 'don't care' state. + """ + return self._ch + + +class TriggerAPulseRuntLogic(SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT:LOGIc`` command. + + **Description:** + - This query-only command returns the current A runt trigger logic parameters. This query is + equivalent to selecting Runt Setup from the Trig menu and then viewing the current + settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:LOGIc?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc? + + Properties: + - ``.input``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT`` command. + - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._input = TriggerAPulseRuntLogicInput(device, f"{self._cmd_syntax}:INPUT") + self._threshold = TriggerAPulseRuntLogicThreshold(device, f"{self._cmd_syntax}:THReshold") + + @property + def input(self) -> TriggerAPulseRuntLogicInput: + """Return the ``TRIGger:A:PULse:RUNT:LOGIc:INPUT`` command. + + **Description:** + - This query-only command returns the current A runt pulse trigger logic input + parameters. This query is equivalent to selecting Runt Setup from the Trig menu and + then viewing the current settings. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT? TRIGger:A:PULse:RUNT:LOGIcINPUT?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:INPUT? TRIGger:A:PULse:RUNT:LOGIcINPUT?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc:INPUT? TRIGger:A:PULse:RUNT:LOGIcINPUT? + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT:CH`` command. + """ + return self._input + + @property + def threshold(self) -> TriggerAPulseRuntLogicThreshold: + """Return the ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:LOGIc:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:RUNT:LOGIc:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerAPulseRunt(SCPICmdRead): + """The ``TRIGger:A:PULse:RUNT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.logic``: The ``TRIGger:A:PULse:RUNT:LOGIc`` command. + - ``.polarity``: The ``TRIGger:A:PULse:RUNT:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:RUNT:QUAlify`` command. + - ``.threshold``: The ``TRIGger:A:PULse:RUNT:THReshold`` command. + - ``.when``: The ``TRIGger:A:PULse:RUNT:WHEn`` command. + - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._logic = TriggerAPulseRuntLogic(device, f"{self._cmd_syntax}:LOGIc") + self._polarity = TriggerAPulseRuntPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerAPulseRuntQualify(device, f"{self._cmd_syntax}:QUAlify") + self._threshold = TriggerAPulseRuntThreshold(device, f"{self._cmd_syntax}:THReshold") + self._when = TriggerAPulseRuntWhen(device, f"{self._cmd_syntax}:WHEn") + self._width = TriggerAPulseRuntWidth(device, f"{self._cmd_syntax}:WIDth") + + @property + def logic(self) -> TriggerAPulseRuntLogic: + """Return the ``TRIGger:A:PULse:RUNT:LOGIc`` command. + + **Description:** + - This query-only command returns the current A runt trigger logic parameters. This + query is equivalent to selecting Runt Setup from the Trig menu and then viewing the + current settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:LOGIc?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:LOGIc? + + Sub-properties: + - ``.input``: The ``TRIGger:A:PULse:RUNT:LOGIc:INPUT`` command. + - ``.threshold``: The ``TRIGger:A:PULse:RUNT:LOGIc:THReshold`` command tree. + """ + return self._logic + + @property + def polarity(self) -> TriggerAPulseRuntPolarity: + """Return the ``TRIGger:A:PULse:RUNT:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the A or B pulse runt trigger. This + command is equivalent to selecting Runt Setup from the Trig menu and then choosing the + Polarity setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:RUNT:POLarity? + + **Info:** + - ``POSITIVe`` indicates that the rising edge crosses the low threshold and the falling + edge recrosses the low threshold without either edge ever crossing the high threshold. + - ``NEGAtive`` indicates that the falling edge crosses the high threshold and the rising + edge recrosses the high threshold without either edge ever crossing the low threshold. + - ``EITher`` indicates either negative or positive polarity. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:RUNT:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerAPulseRuntQualify: + """Return the ``TRIGger:A:PULse:RUNT:QUAlify`` command. + + **Description:** + - This command sets or queries the Runt Trigger qualification. This is equivalent to + selecting Runt Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Runt drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:RUNT:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:RUNT:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the command. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def threshold(self) -> TriggerAPulseRuntThreshold: + """Return the ``TRIGger:A:PULse:RUNT:THReshold`` command. + + **Description:** + - This query-only command returns the upper and lower thresholds for the pulse runt + trigger. This command query is equivalent to selecting Runt Setup from the Trig menu + and then viewing the Upper Level and Lower Level settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:THReshold?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:THReshold? + + Sub-properties: + - ``.both``: The ``TRIGger:A:PULse:RUNT:THReshold:BOTh`` command. + - ``.high``: The ``TRIGger:A:PULse:RUNT:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:PULse:RUNT:THReshold:LOW`` command. + """ + return self._threshold + + @property + def when(self) -> TriggerAPulseRuntWhen: + """Return the ``TRIGger:A:PULse:RUNT:WHEn`` command. + + **Description:** + - This command sets or queries the type of pulse width the trigger checks for when it + detects a runt. This is equivalent to selecting Runt Setup from the Trig menu and + choosing the desired Trigger When setting from the drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:RUNT:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:WHEn {OCCurs|WIDERthan} + - TRIGger:A:PULse:RUNT:WHEn? + + **Info:** + - ``OCCurs`` argument specifies a trigger event if a runt of any detectable width + occurs. + - ``WIDERthan`` specifies a trigger event if a runt greater than the specified width + occurs. + """ + return self._when + + @property + def width(self) -> TriggerAPulseRuntWidth: + """Return the ``TRIGger:A:PULse:RUNT:WIDth`` command. + + **Description:** + - This command sets or queries the minimum width for an Pulse Runt trigger. This command + is equivalent to selecting Runt Setup from the Trig menu and then setting the Width. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT:WIDth?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:RUNT:WIDth value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:RUNT:WIDth + - TRIGger:A:PULse:RUNT:WIDth? + + **Info:** + - ```` specifies the minimum width in seconds. + """ + return self._width + + +class TriggerAPulsePeriodWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:PERiod:WHEn`` command. + + **Description:** + - This command sets or queries the 'trigger when' enumeration for the Pulse Period Trigger. + If the argument is LESSthan, the scope triggers on the signal when the period (frequency) + of the signal is less than the period (frequency) of the Low Limit. If the argument is + GREATerthan, the scope triggers on the signal when the period (frequency) of the signal is + greater than the period (frequency) of the Low Limit. If the argument is WITHin, the scope + triggers on the signal when the period (frequency) of the signal is within the range + defined by the Low Limit and the High Limit. If the argument is OUTside, the scope + triggers on the signal when the period (frequency) of the signal is outside of the range + defined by the Low Limit and the High Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:PERiod:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:WHEn {LESSthan | GREATerthan | WITHin | OUTside} + - TRIGger:A:PULse:PERiod:WHEn? + + **Info:** + - ``LESSthan`` tells the scope to trigger when the period (frequency) of the signal is less + than the low limit value. + - ``GREATerthan`` tells the scope to trigger when the period (frequency) of the signal is + greater than the low limit value. + - ``WITHin`` tells the scope to trigger when the period (frequency) of the signal is inside + the range set by the low and high limit values. + - ``OUTside`` tells the scope to trigger when the period (frequency) of the signal is + outside of the range set by the low and high limit values. + """ + + +class TriggerAPulsePeriodView(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:PERiod:VIEW`` command. + + **Description:** + - This command sets or queries the 'view' for the pulse period trigger. When PERiod is + selected the LOWLimit and HIGHLimit values are in units of time (Seconds). When FREQuency + is selected, the units are in frequency (Hz). This two methods are equivalent, so the + alternative views are provided as a convenience. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:VIEW?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:VIEW?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:PERiod:VIEW value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:VIEW {PERiod|FREQuency} + - TRIGger:A:PULse:PERiod:VIEW? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerAPulsePeriodQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:PERiod:QUAlify`` command. + + **Description:** + - This command sets or queries the Qualification setup for Pulse Period Trigger. The + high/low state of one or more other signals (channels) may be used to qualify whether the + trigger should occur or not. The BUS option is not available on the SX series instruments + at this time. When the QUALify enumeration is OCCurs, no qualification is done. When the + QUALify enumeration is LOGIC, the scope triggers using the pulse period trigger definition + as qualified by the high/low states of the qualifying signals. Additional description is + given elsewhere in this document under the term 'logic qualification.' + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:PERiod:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:QUAlify {OCCurs | LOGIC | BUS} + - TRIGger:A:PULse:PERiod:QUAlify? + + **Info:** + - ``OCCurs`` specifies the no other signals are used to qualify the pulse period trigger. + - ``LOGIC`` specifies that other analog signals (channels) are used to qualify the pulse + period trigger. + - ``BUS`` specifies that other digital signals (digital channels) are used to qualify the + pulse period trigger. + """ + + +class TriggerAPulsePeriodPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:PERiod:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the Pulse Period trigger. It refers to the + polarity of the edges that begin and end a given period of the signal, and thus allows + duty-cycle testing of clock signals. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:PERiod:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:POLarity {NEGAtive|POSITIVe} + - TRIGger:A:PULse:PERiod:POLarity? + + **Info:** + - ``POSITIVe`` specifies to trigger on the rising or positive edge of a signal. + - ``NEGAtive`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerAPulsePeriodLowlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:PERiod:LOWLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency low limit. When the VIEW is PERiod the + units of this number are time (Seconds). When the VIEW is FREQuency, the units of this + number are frequency (Hz). The low limit is used alone when the WHEn enumeration is + LESSthan or GREATerthan, and is used in combination with the high limit to define a range + if the WHEn enumeration is WITHin or OUTside. The limits specify the most significant + characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:LOWLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:PERiod:LOWLimit value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:LOWLimit + - TRIGger:A:PULse:PERiod:LOWLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + + +class TriggerAPulsePeriodHighlimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:PERiod:HIGHLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency high limit. When the VIEW is PERiod the + units of this number are time (Seconds). When the VIEW is FREQuency, the units of this + number are frequency (Hz). The high limit is used in combination with the low limit to + define a range if the WHEn enumeration is WITHin or OUTside. These limits specify the most + significant characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:HIGHLimit?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:HIGHLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:PERiod:HIGHLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:HIGHLimit + - TRIGger:A:PULse:PERiod:HIGHLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + + +class TriggerAPulsePeriod(SCPICmdRead): + """The ``TRIGger:A:PULse:PERiod`` command. + + **Description:** + - This query-only command returns the Pulse Trigger settings specific to Period/Frequency + trigger. These include the array of high and low limits, the 'trigger when' enumeration, + the polarity enumeration, the qualification enumeration, and the view enumeration. The + view enumeration controls whether the high and low limits are expressed in units of time + (Seconds) or frequency (Hz). The qualification enumeration determines if the trigger is + state-qualified by additional signals (channels). The polarity enumeration determines + whether the rising or falling edges of the signal are used to initiate the trigger. The + trigger when enumeration determines if the trigger should occur when the period + (frequency) is greater than or less than a single (low) limit value, or within or outside + the period (frequency) of a high-low limit period (frequency) pair. The Period/Frequency + Trigger is similar to Width Trigger, but instead of triggering on a single pulse of a + given width, it triggers on the period (two back-to-back pulses, one up and one down) of a + given width. As a convenience the period limits (Seconds) can be expressed as frequency + limits (Hz) by changing the view enumeration. It is often used to determine if oscillators + are operating within specification. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod? + + Properties: + - ``.highlimit``: The ``TRIGger:A:PULse:PERiod:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:A:PULse:PERiod:LOWLimit`` command. + - ``.polarity``: The ``TRIGger:A:PULse:PERiod:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:PERiod:QUAlify`` command. + - ``.view``: The ``TRIGger:A:PULse:PERiod:VIEW`` command. + - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._highlimit = TriggerAPulsePeriodHighlimit(device, f"{self._cmd_syntax}:HIGHLimit") + self._lowlimit = TriggerAPulsePeriodLowlimit(device, f"{self._cmd_syntax}:LOWLimit") + self._polarity = TriggerAPulsePeriodPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerAPulsePeriodQualify(device, f"{self._cmd_syntax}:QUAlify") + self._view = TriggerAPulsePeriodView(device, f"{self._cmd_syntax}:VIEW") + self._when = TriggerAPulsePeriodWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def highlimit(self) -> TriggerAPulsePeriodHighlimit: + """Return the ``TRIGger:A:PULse:PERiod:HIGHLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency high limit. When the VIEW is PERiod + the units of this number are time (Seconds). When the VIEW is FREQuency, the units of + this number are frequency (Hz). The high limit is used in combination with the low + limit to define a range if the WHEn enumeration is WITHin or OUTside. These limits + specify the most significant characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:HIGHLimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:PERiod:HIGHLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:PERiod:HIGHLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:HIGHLimit + - TRIGger:A:PULse:PERiod:HIGHLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + return self._highlimit + + @property + def lowlimit(self) -> TriggerAPulsePeriodLowlimit: + """Return the ``TRIGger:A:PULse:PERiod:LOWLimit`` command. + + **Description:** + - This command sets or queries the Period/Frequency low limit. When the VIEW is PERiod + the units of this number are time (Seconds). When the VIEW is FREQuency, the units of + this number are frequency (Hz). The low limit is used alone when the WHEn enumeration + is LESSthan or GREATerthan, and is used in combination with the high limit to define a + range if the WHEn enumeration is WITHin or OUTside. The limits specify the most + significant characteristic of the signal for this Pulse Trigger Type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:LOWLimit?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:LOWLimit?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:PERiod:LOWLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:LOWLimit + - TRIGger:A:PULse:PERiod:LOWLimit? + + **Info:** + - ```` is the period (in Seconds) or frequency (in Hz). + """ + return self._lowlimit + + @property + def polarity(self) -> TriggerAPulsePeriodPolarity: + """Return the ``TRIGger:A:PULse:PERiod:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for the Pulse Period trigger. It refers to + the polarity of the edges that begin and end a given period of the signal, and thus + allows duty-cycle testing of clock signals. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:PERiod:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:POLarity {NEGAtive|POSITIVe} + - TRIGger:A:PULse:PERiod:POLarity? + + **Info:** + - ``POSITIVe`` specifies to trigger on the rising or positive edge of a signal. + - ``NEGAtive`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._polarity + + @property + def qualify(self) -> TriggerAPulsePeriodQualify: + """Return the ``TRIGger:A:PULse:PERiod:QUAlify`` command. + + **Description:** + - This command sets or queries the Qualification setup for Pulse Period Trigger. The + high/low state of one or more other signals (channels) may be used to qualify whether + the trigger should occur or not. The BUS option is not available on the SX series + instruments at this time. When the QUALify enumeration is OCCurs, no qualification is + done. When the QUALify enumeration is LOGIC, the scope triggers using the pulse period + trigger definition as qualified by the high/low states of the qualifying signals. + Additional description is given elsewhere in this document under the term 'logic + qualification.' + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:PERiod:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:QUAlify {OCCurs | LOGIC | BUS} + - TRIGger:A:PULse:PERiod:QUAlify? + + **Info:** + - ``OCCurs`` specifies the no other signals are used to qualify the pulse period + trigger. + - ``LOGIC`` specifies that other analog signals (channels) are used to qualify the pulse + period trigger. + - ``BUS`` specifies that other digital signals (digital channels) are used to qualify + the pulse period trigger. + """ + return self._qualify + + @property + def view(self) -> TriggerAPulsePeriodView: + """Return the ``TRIGger:A:PULse:PERiod:VIEW`` command. + + **Description:** + - This command sets or queries the 'view' for the pulse period trigger. When PERiod is + selected the LOWLimit and HIGHLimit values are in units of time (Seconds). When + FREQuency is selected, the units are in frequency (Hz). This two methods are + equivalent, so the alternative views are provided as a convenience. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:VIEW?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:VIEW?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:PERiod:VIEW value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:VIEW {PERiod|FREQuency} + - TRIGger:A:PULse:PERiod:VIEW? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._view + + @property + def when(self) -> TriggerAPulsePeriodWhen: + """Return the ``TRIGger:A:PULse:PERiod:WHEn`` command. + + **Description:** + - This command sets or queries the 'trigger when' enumeration for the Pulse Period + Trigger. If the argument is LESSthan, the scope triggers on the signal when the period + (frequency) of the signal is less than the period (frequency) of the Low Limit. If the + argument is GREATerthan, the scope triggers on the signal when the period (frequency) + of the signal is greater than the period (frequency) of the Low Limit. If the argument + is WITHin, the scope triggers on the signal when the period (frequency) of the signal + is within the range defined by the Low Limit and the High Limit. If the argument is + OUTside, the scope triggers on the signal when the period (frequency) of the signal is + outside of the range defined by the Low Limit and the High Limit. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:PERiod:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod:WHEn {LESSthan | GREATerthan | WITHin | OUTside} + - TRIGger:A:PULse:PERiod:WHEn? + + **Info:** + - ``LESSthan`` tells the scope to trigger when the period (frequency) of the signal is + less than the low limit value. + - ``GREATerthan`` tells the scope to trigger when the period (frequency) of the signal + is greater than the low limit value. + - ``WITHin`` tells the scope to trigger when the period (frequency) of the signal is + inside the range set by the low and high limit values. + - ``OUTside`` tells the scope to trigger when the period (frequency) of the signal is + outside of the range set by the low and high limit values. + """ + return self._when + + +class TriggerAPulseGlitchWidth(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch:WIDth`` command. + + **Description:** + - This command sets or queries the width for the glitch trigger. This command is equivalent + to selecting Glitch Setup from the Trig menu and then setting the desired Width. For + information about using the width value, refer to the command. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:WIDth?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:GLItch:WIDth value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:WIDth + - TRIGger:A:PULse:GLItch:WIDth? + + **Info:** + - ```` argument specifies the width of the glitch in seconds. + """ + + +class TriggerAPulseGlitchTrigif(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch:TRIGIF`` command. + + **Description:** + - This command sets or queries the acceptance or rejection of the glitch pulse trigger, + based on width. This command is equivalent to selecting Glitch Setup from the Trig menu + and choosing the desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:TRIGIF?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:TRIGIF?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:GLItch:TRIGIF value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:TRIGIF {ACCept|REJect} + - TRIGger:A:PULse:GLItch:TRIGIF? + + **Info:** + - ``ACCept`` specifies that the instrument will only trigger on pulses that are narrower + than the specified width, when the trigger type is set to glitch. The width is specified + using the. + - ``REJect`` specifies that the instrument will only trigger on pulses that are wider than + the specified width, when the trigger type is set to glitch. The width is specified using + the. + """ + + +class TriggerAPulseGlitchQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch:QUAlify`` command. + + **Description:** + - This command sets or queries the Glitch Trigger qualification. This is equivalent to + selecting Glitch Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Glitch drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:GLItch:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:GLItch:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerAPulseGlitchPolarityChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger for the channel. + This command is equivalent to selecting Glitch Setup from the Trig menu and then choosing + the desired Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:GLItch:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:GLItch:POLarity:CH? + + **Info:** + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch is + either positive or negative. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + """ + + +class TriggerAPulseGlitchPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger. This command is + equivalent to selecting Glitch Setup from the Trig menu and then choosing the desired + Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:POLarity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:GLItch:POLarity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:GLItch:POLarity? + + **Info:** + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch is + either positive or negative. + + Properties: + - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAPulseGlitchPolarityChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAPulseGlitchPolarityChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAPulseGlitchPolarityChannel]: + """Return the ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger for the + channel. This command is equivalent to selecting Glitch Setup from the Trig menu and + then choosing the desired Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:POLarity:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:GLItch:POLarity:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:POLarity:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:POLarity:CH {EITher|NEGAtive|POSITIVe} + - TRIGger:A:PULse:GLItch:POLarity:CH? + + **Info:** + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch + is either positive or negative. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + """ + return self._ch + + +class TriggerAPulseGlitchLowpassfilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Glitch trigger. This + allows triggering in the presence of high­frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:GLItch:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:GLItch:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + + +class TriggerAPulseGlitchFilter(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch:FILTer`` command. + + **Description:** + - This command sets or queries the acceptance/rejection of the glitch pulse trigger. This + command is equivalent to selecting Glitch Setup from the Trig menu and then choosing the + desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:FILTer?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:FILTer?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:GLItch:FILTer value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:FILTer {ACCept|REJect} + - TRIGger:A:PULse:GLItch:FILTer? + """ + + +class TriggerAPulseGlitch(SCPICmdRead): + """The ``TRIGger:A:PULse:GLItch`` command. + + **Description:** + - This query-only command returns the current glitch pulse trigger parameters. This command + query is equivalent to selecting Glitch Setup from the Trig menu and viewing the current + glitch trigger settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch? + + Properties: + - ``.filter``: The ``TRIGger:A:PULse:GLItch:FILTer`` command. + - ``.lowpassfilter``: The ``TRIGger:A:PULse:GLItch:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:A:PULse:GLItch:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:GLItch:QUAlify`` command. + - ``.trigif``: The ``TRIGger:A:PULse:GLItch:TRIGIF`` command. + - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._filter = TriggerAPulseGlitchFilter(device, f"{self._cmd_syntax}:FILTer") + self._lowpassfilter = TriggerAPulseGlitchLowpassfilter( + device, f"{self._cmd_syntax}:LOWPASSfilter" + ) + self._polarity = TriggerAPulseGlitchPolarity(device, f"{self._cmd_syntax}:POLarity") + self._qualify = TriggerAPulseGlitchQualify(device, f"{self._cmd_syntax}:QUAlify") + self._trigif = TriggerAPulseGlitchTrigif(device, f"{self._cmd_syntax}:TRIGIF") + self._width = TriggerAPulseGlitchWidth(device, f"{self._cmd_syntax}:WIDth") + + @property + def filter(self) -> TriggerAPulseGlitchFilter: + """Return the ``TRIGger:A:PULse:GLItch:FILTer`` command. + + **Description:** + - This command sets or queries the acceptance/rejection of the glitch pulse trigger. + This command is equivalent to selecting Glitch Setup from the Trig menu and then + choosing the desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:FILTer?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:FILTer?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:FILTer value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:FILTer {ACCept|REJect} + - TRIGger:A:PULse:GLItch:FILTer? + """ + return self._filter + + @property + def lowpassfilter(self) -> TriggerAPulseGlitchLowpassfilter: + """Return the ``TRIGger:A:PULse:GLItch:LOWPASSfilter`` command. + + **Description:** + - This command turns on or turns off the low­pass filter feature for Glitch trigger. + This allows triggering in the presence of high­frequency signal edges. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:LOWPASSfilter?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:PULse:GLItch:LOWPASSfilter?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:LOWPASSfilter value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:LOWPASSfilter {ON|OFF} + - TRIGger:A:PULse:GLItch:LOWPASSfilter? + + **Info:** + - ``ON`` enables low­pass filter feature. + - ``OFF`` disables low­pass filter feature. + """ + return self._lowpassfilter + + @property + def polarity(self) -> TriggerAPulseGlitchPolarity: + """Return the ``TRIGger:A:PULse:GLItch:POLarity`` command. + + **Description:** + - This command sets or queries the polarity for A or B pulse glitch trigger. This + command is equivalent to selecting Glitch Setup from the Trig menu and then choosing + the desired Polarity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:POLarity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:POLarity {POSITIVe|NEGAtive|EITher} + - TRIGger:A:PULse:GLItch:POLarity? + + **Info:** + - ``POSITIVe`` specifies that the instrument will only trigger when the polarity of the + glitch is positive. + - ``NEGAtive`` specifies that the instrument will only trigger when the polarity of the + glitch is negative. + - ``EITher`` specifies that the instrument will trigger when the polarity of the glitch + is either positive or negative. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:PULse:GLItch:POLarity:CH`` command. + """ + return self._polarity + + @property + def qualify(self) -> TriggerAPulseGlitchQualify: + """Return the ``TRIGger:A:PULse:GLItch:QUAlify`` command. + + **Description:** + - This command sets or queries the Glitch Trigger qualification. This is equivalent to + selecting Glitch Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Glitch drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:PULse:GLItch:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def trigif(self) -> TriggerAPulseGlitchTrigif: + """Return the ``TRIGger:A:PULse:GLItch:TRIGIF`` command. + + **Description:** + - This command sets or queries the acceptance or rejection of the glitch pulse trigger, + based on width. This command is equivalent to selecting Glitch Setup from the Trig + menu and choosing the desired Trig if Width setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:TRIGIF?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:TRIGIF?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:TRIGIF value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:TRIGIF {ACCept|REJect} + - TRIGger:A:PULse:GLItch:TRIGIF? + + **Info:** + - ``ACCept`` specifies that the instrument will only trigger on pulses that are narrower + than the specified width, when the trigger type is set to glitch. The width is + specified using the. + - ``REJect`` specifies that the instrument will only trigger on pulses that are wider + than the specified width, when the trigger type is set to glitch. The width is + specified using the. + """ + return self._trigif + + @property + def width(self) -> TriggerAPulseGlitchWidth: + """Return the ``TRIGger:A:PULse:GLItch:WIDth`` command. + + **Description:** + - This command sets or queries the width for the glitch trigger. This command is + equivalent to selecting Glitch Setup from the Trig menu and then setting the desired + Width. For information about using the width value, refer to the command. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch:WIDth?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:PULse:GLItch:WIDth value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch:WIDth + - TRIGger:A:PULse:GLItch:WIDth? + + **Info:** + - ```` argument specifies the width of the glitch in seconds. + """ + return self._width + + +class TriggerAPulseClass(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PULse:CLAss`` command. + + **Description:** + - This command sets or queries the type of pulse on which to trigger. This command is + equivalent to selecting the setup menu for the pulse type that you want from the Trig + menu: Glitch Setup, Width Setup, Runt Setup, Timeout Setup, or Transition Setup. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:CLAss value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:CLAss {GLItch|RUNT|WIDth| TRANsition|TIMEOut|WINdow} + - TRIGger:A:PULse:CLAss? + + **Info:** + - ``GLItch`` triggers when a pulse is found that is of the specified polarity and width. + These are set with the commands. + - ``RUNT`` triggers when a pulse crosses the first preset voltage threshold but does not + cross the second preset threshold before recrossing the first. The thresholds are set with + the. + - ``WIDth`` triggers when a pulse is found that has the specified polarity and is either + inside or outside the limits as specified by. + - ``TRANsition`` triggers when a pulse crosses both thresholds in the same direction as the + specified polarity and the transition time between the two threshold crossings is greater + or less than the specified time delta. + - ``TIMEOut`` triggers when the pulse train stops in the selected state for longer than the + specified time. + - ``WINdow`` triggers when a pulse is found that meets the conditions set by the A Event + window trigger type, specified by the following commands. + """ + + +# pylint: disable=too-many-instance-attributes +class TriggerAPulse(SCPICmdRead): + """The ``TRIGger:A:PULse`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.period``: The ``TRIGger:A:PULse:PERiod`` command. + - ``.runt``: The ``TRIGger:A:PULse:RUNT`` command tree. + - ``.window``: The ``TRIGger:A:PULse:WINdow`` command tree. + - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. + - ``.glitch``: The ``TRIGger:A:PULse:GLItch`` command. + - ``.source``: The ``TRIGger:A:PULse:SOUrce`` command. + - ``.timeout``: The ``TRIGger:A:PULse:TIMEOut`` command. + - ``.transition``: The ``TRIGger:A:PULse:TRANsition`` command. + - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._period = TriggerAPulsePeriod(device, f"{self._cmd_syntax}:PERiod") + self._class = TriggerAPulseClass(device, f"{self._cmd_syntax}:CLAss") + self._glitch = TriggerAPulseGlitch(device, f"{self._cmd_syntax}:GLItch") + self._runt = TriggerAPulseRunt(device, f"{self._cmd_syntax}:RUNT") + self._source = TriggerAPulseSource(device, f"{self._cmd_syntax}:SOUrce") + self._timeout = TriggerAPulseTimeout(device, f"{self._cmd_syntax}:TIMEOut") + self._transition = TriggerAPulseTransition(device, f"{self._cmd_syntax}:TRANsition") + self._width = TriggerAPulseWidth(device, f"{self._cmd_syntax}:WIDth") + self._window = TriggerAPulseWindow(device, f"{self._cmd_syntax}:WINdow") + + @property + def period(self) -> TriggerAPulsePeriod: + """Return the ``TRIGger:A:PULse:PERiod`` command. + + **Description:** + - This query-only command returns the Pulse Trigger settings specific to + Period/Frequency trigger. These include the array of high and low limits, the 'trigger + when' enumeration, the polarity enumeration, the qualification enumeration, and the + view enumeration. The view enumeration controls whether the high and low limits are + expressed in units of time (Seconds) or frequency (Hz). The qualification enumeration + determines if the trigger is state-qualified by additional signals (channels). The + polarity enumeration determines whether the rising or falling edges of the signal are + used to initiate the trigger. The trigger when enumeration determines if the trigger + should occur when the period (frequency) is greater than or less than a single (low) + limit value, or within or outside the period (frequency) of a high-low limit period + (frequency) pair. The Period/Frequency Trigger is similar to Width Trigger, but + instead of triggering on a single pulse of a given width, it triggers on the period + (two back-to-back pulses, one up and one down) of a given width. As a convenience the + period limits (Seconds) can be expressed as frequency limits (Hz) by changing the view + enumeration. It is often used to determine if oscillators are operating within + specification. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:PERiod?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:PERiod?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:PERiod? + + Sub-properties: + - ``.highlimit``: The ``TRIGger:A:PULse:PERiod:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:A:PULse:PERiod:LOWLimit`` command. + - ``.polarity``: The ``TRIGger:A:PULse:PERiod:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:PERiod:QUAlify`` command. + - ``.view``: The ``TRIGger:A:PULse:PERiod:VIEW`` command. + - ``.when``: The ``TRIGger:A:PULse:PERiod:WHEn`` command. + """ + return self._period + + @property + def class_(self) -> TriggerAPulseClass: + """Return the ``TRIGger:A:PULse:CLAss`` command. + + **Description:** + - This command sets or queries the type of pulse on which to trigger. This command is + equivalent to selecting the setup menu for the pulse type that you want from the Trig + menu: Glitch Setup, Width Setup, Runt Setup, Timeout Setup, or Transition Setup. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:CLAss value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:CLAss {GLItch|RUNT|WIDth| TRANsition|TIMEOut|WINdow} + - TRIGger:A:PULse:CLAss? + + **Info:** + - ``GLItch`` triggers when a pulse is found that is of the specified polarity and width. + These are set with the commands. + - ``RUNT`` triggers when a pulse crosses the first preset voltage threshold but does not + cross the second preset threshold before recrossing the first. The thresholds are set + with the. + - ``WIDth`` triggers when a pulse is found that has the specified polarity and is either + inside or outside the limits as specified by. + - ``TRANsition`` triggers when a pulse crosses both thresholds in the same direction as + the specified polarity and the transition time between the two threshold crossings is + greater or less than the specified time delta. + - ``TIMEOut`` triggers when the pulse train stops in the selected state for longer than + the specified time. + - ``WINdow`` triggers when a pulse is found that meets the conditions set by the A Event + window trigger type, specified by the following commands. + """ + return self._class + + @property + def glitch(self) -> TriggerAPulseGlitch: + """Return the ``TRIGger:A:PULse:GLItch`` command. + + **Description:** + - This query-only command returns the current glitch pulse trigger parameters. This + command query is equivalent to selecting Glitch Setup from the Trig menu and viewing + the current glitch trigger settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:GLItch?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:GLItch?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:GLItch? + + Sub-properties: + - ``.filter``: The ``TRIGger:A:PULse:GLItch:FILTer`` command. + - ``.lowpassfilter``: The ``TRIGger:A:PULse:GLItch:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:A:PULse:GLItch:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:GLItch:QUAlify`` command. + - ``.trigif``: The ``TRIGger:A:PULse:GLItch:TRIGIF`` command. + - ``.width``: The ``TRIGger:A:PULse:GLItch:WIDth`` command. + """ + return self._glitch + + @property + def runt(self) -> TriggerAPulseRunt: + """Return the ``TRIGger:A:PULse:RUNT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:RUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:RUNT?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.logic``: The ``TRIGger:A:PULse:RUNT:LOGIc`` command. + - ``.polarity``: The ``TRIGger:A:PULse:RUNT:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:RUNT:QUAlify`` command. + - ``.threshold``: The ``TRIGger:A:PULse:RUNT:THReshold`` command. + - ``.when``: The ``TRIGger:A:PULse:RUNT:WHEn`` command. + - ``.width``: The ``TRIGger:A:PULse:RUNT:WIDth`` command. + """ + return self._runt + + @property + def source(self) -> TriggerAPulseSource: + """Return the ``TRIGger:A:PULse:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the pulse trigger. This source parameter + applies to all classes of pulse triggers. This command is equivalent to selecting + Event Trigger Setup from the Trig menu, selecting the pulse type (Glitch, Width, Runt, + Timeout, or Transition), and then choosing the desired channel from the Source + pull-down list. When an UltraSync stack is used, the mapped channels are used to both + acquire waveform data and to trigger the oscilloscope. In the special case of an + UltraSync stack master, additional channels are available for triggering. These are + the unmapped channels. For an ATI UltraSync stack master, CH2, MCH1, and MCH3 can be + used for triggering. For a 4-Channel UltraSync stack master, CH1, MCH2, MCH3, and MCH4 + are available for triggering. The vertical min/max amplitude for these signals must be + set up. A detailed discussion is provided in . + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PULse:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:SOUrce {CH|D|MCH} + - TRIGger:A:PULse:SOUrce? + + **Info:** + - ``CH`` specifies one of the input channels, which range from 1 through 4. + - ``D`` specifies one of the digital inputs, which range from 0 through 15. + - ``MCH`` specifies one of the unmapped channels on the master when using an + UltraSync stack. For details see. + """ + return self._source + + @property + def timeout(self) -> TriggerAPulseTimeout: + """Return the ``TRIGger:A:PULse:TIMEOut`` command. + + **Description:** + - This query-only command returns the polarity and time-out duration for the pulse + timeout trigger. This command is equivalent to selecting Timeout Setup from the Trig + menu and viewing the polarity in the Trigger When box and the Timer setting. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TIMEOut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TIMEOut?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TIMEOut? + + Sub-properties: + - ``.lowpassfilter``: The ``TRIGger:A:PULse:TIMEOut:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:A:PULse:TIMEOut:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:TIMEOut:QUAlify`` command. + - ``.time``: The ``TRIGger:A:PULse:TIMEOut:TIMe`` command. + """ + return self._timeout + + @property + def transition(self) -> TriggerAPulseTransition: + """Return the ``TRIGger:A:PULse:TRANsition`` command. + + **Description:** + - This query-only command returns delta time, polarity, and both upper and lower + threshold limits for the transition time trigger. This command is equivalent to + selecting Transition Setup from the Trig menu and then viewing the current transition + settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:TRANsition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:TRANsition?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:TRANsition? + + Sub-properties: + - ``.deltatime``: The ``TRIGger:A:PULse:TRANsition:DELTATime`` command. + - ``.polarity``: The ``TRIGger:A:PULse:TRANsition:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:TRANsition:QUAlify`` command. + - ``.threshold``: The ``TRIGger:A:PULse:TRANsition:THReshold`` command. + - ``.when``: The ``TRIGger:A:PULse:TRANsition:WHEn`` command. + """ + return self._transition + + @property + def width(self) -> TriggerAPulseWidth: + """Return the ``TRIGger:A:PULse:WIDth`` command. + + **Description:** + - This query-only command returns the width parameters for the pulse width trigger. This + command is equivalent to selecting Width Setup from the Trig menu and then viewing the + current pulse width trigger Lower Limit, Upper Limit, Trig When and Polarity settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WIDth?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WIDth?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PULse:WIDth? + + Sub-properties: + - ``.highlimit``: The ``TRIGger:A:PULse:WIDth:HIGHLimit`` command. + - ``.lowlimit``: The ``TRIGger:A:PULse:WIDth:LOWLimit`` command. + - ``.lowpassfilter``: The ``TRIGger:A:PULse:WIDth:LOWPASSfilter`` command. + - ``.polarity``: The ``TRIGger:A:PULse:WIDth:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:WIDth:QUAlify`` command. + - ``.when``: The ``TRIGger:A:PULse:WIDth:WHEn`` command. + """ + return self._width + + @property + def window(self) -> TriggerAPulseWindow: + """Return the ``TRIGger:A:PULse:WINdow`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse:WINdow?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse:WINdow?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.logic``: The ``TRIGger:A:PULse:WINdow:LOGIc`` command. + - ``.event``: The ``TRIGger:A:PULse:WINdow:EVENT`` command. + - ``.polarity``: The ``TRIGger:A:PULse:WINdow:POLarity`` command. + - ``.qualify``: The ``TRIGger:A:PULse:WINdow:QUAlify`` command. + - ``.threshold``: The ``TRIGger:A:PULse:WINdow:THReshold`` command. + - ``.type``: The ``TRIGger:A:PULse:WINdow:TYPe`` command. + - ``.when``: The ``TRIGger:A:PULse:WINdow:WHEn`` command. + - ``.width``: The ``TRIGger:A:PULse:WINdow:WIDTH`` command. + """ + return self._window + + +class TriggerAPlockSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PLOCK:SOURCE`` command. + + **Description:** + - This command sets or queries the source of the pattern lock trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK:SOURCE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK:SOURCE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PLOCK:SOURCE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PLOCK:SOURCE CH + - TRIGger:A:PLOCK:SOURCE? + + **Info:** + - ``CH`` specifies the recovered clock from one input channel as the PLOCK trigger + source. + """ + + +class TriggerAPlockLength(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PLOCK:LENGTH`` command. + + **Description:** + - This command sets or queries a positive integer representing the power of 2 used to + determine the total length in bits of a repeating sequence. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK:LENGTH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK:LENGTH?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PLOCK:LENGTH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PLOCK:LENGTH + - TRIGger:A:PLOCK:LENGTH? + + **Info:** + - ```` specifies a positive integer representing the power of 2 used to determine the + total length in bits of a repeating sequence. + """ + + +class TriggerAPlockCount(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:PLOCK:COUNT`` command. + + **Description:** + - This command sets or queries an integer in the range of (-2 length +1) to (+2 length -1) + that allows you to shift the locked trigger point in increments or decrements of 1. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK:COUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK:COUNT?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PLOCK:COUNT value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PLOCK:COUNT + - TRIGger:A:PLOCK:COUNT? + + **Info:** + - ```` specifies an integer that allows you to shift the locked trigger point in + increments or decrements of 1. + """ + + +class TriggerAPlock(SCPICmdRead): + """The ``TRIGger:A:PLOCK`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.count``: The ``TRIGger:A:PLOCK:COUNT`` command. + - ``.length``: The ``TRIGger:A:PLOCK:LENGTH`` command. + - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._count = TriggerAPlockCount(device, f"{self._cmd_syntax}:COUNT") + self._length = TriggerAPlockLength(device, f"{self._cmd_syntax}:LENGTH") + self._source = TriggerAPlockSource(device, f"{self._cmd_syntax}:SOURCE") + + @property + def count(self) -> TriggerAPlockCount: + """Return the ``TRIGger:A:PLOCK:COUNT`` command. + + **Description:** + - This command sets or queries an integer in the range of (-2 length +1) to (+2 length + -1) that allows you to shift the locked trigger point in increments or decrements of + 1. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK:COUNT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK:COUNT?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PLOCK:COUNT value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PLOCK:COUNT + - TRIGger:A:PLOCK:COUNT? + + **Info:** + - ```` specifies an integer that allows you to shift the locked trigger point in + increments or decrements of 1. + """ + return self._count + + @property + def length(self) -> TriggerAPlockLength: + """Return the ``TRIGger:A:PLOCK:LENGTH`` command. + + **Description:** + - This command sets or queries a positive integer representing the power of 2 used to + determine the total length in bits of a repeating sequence. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK:LENGTH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK:LENGTH?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PLOCK:LENGTH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PLOCK:LENGTH + - TRIGger:A:PLOCK:LENGTH? + + **Info:** + - ```` specifies a positive integer representing the power of 2 used to determine + the total length in bits of a repeating sequence. + """ + return self._length + + @property + def source(self) -> TriggerAPlockSource: + """Return the ``TRIGger:A:PLOCK:SOURCE`` command. + + **Description:** + - This command sets or queries the source of the pattern lock trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK:SOURCE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK:SOURCE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:PLOCK:SOURCE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:PLOCK:SOURCE CH + - TRIGger:A:PLOCK:SOURCE? + + **Info:** + - ``CH`` specifies the recovered clock from one input channel as the PLOCK trigger + source. + """ + return self._source + + +class TriggerAMode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:MODe`` command. + + **Description:** + - This command sets or queries the A trigger mode. This command is equivalent to pushing the + Mode button on the front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:MODe?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:MODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:MODe {AUTO|NORMal} + - TRIGger:A:MODe? + + **Info:** + - ``AUTO`` generates a trigger if one is not detected within a specified time period. + - ``NORMal`` waits for a valid trigger event. + """ + + +class TriggerALowerthresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOWerthreshold:CH`` command. + + **Description:** + - This command sets or queries the A or B lower trigger level for + ``TRIGger:LVLSrcpreference SRCDependent`` or SRCIndependent modes for the channel, + specified by x, which ranges from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOWerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOWerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOWerthreshold:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOWerthreshold:CH {ECL|TTL|} + - TRIGger:A:LOWerthreshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies the threshold voltage in user units. + """ + + +class TriggerALowerthreshold(SCPICmdRead): + """The ``TRIGger:A:LOWerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOWerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOWerthreshold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerALowerthresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerALowerthresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerALowerthresholdChannel]: + """Return the ``TRIGger:A:LOWerthreshold:CH`` command. + + **Description:** + - This command sets or queries the A or B lower trigger level for + ``TRIGger:LVLSrcpreference SRCDependent`` or SRCIndependent modes for the channel, + specified by x, which ranges from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOWerthreshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOWerthreshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOWerthreshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOWerthreshold:CH {ECL|TTL|} + - TRIGger:A:LOWerthreshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies the threshold voltage in user units. + """ + return self._ch + + +class TriggerALogicThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger threshold voltage for the channel, + specified by x, which ranges from 1 through 4. This command is equivalent to selecting A + or B Event Trigger Setup from the Trig menu, choosing a logic trigger type, such as State + or Pattern, and setting the Input Threshold voltage for the desired channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:THReshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:THReshold:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:THReshold:CH + - TRIGger:A:LOGIc:THReshold:CH? + + **Info:** + - ```` specifies the threshold voltage. + """ + + +class TriggerALogicThreshold(SCPICmdRead): + """The ``TRIGger:A:LOGIc:THReshold`` command. + + **Description:** + - This query-only command returns the threshold voltage for all channels in a logic trigger. + This command query is equivalent to selecting Event Trigger Setup from the Trig menu, + choosing a logic trigger type, such as State or Pattern, and viewing the current Input + Threshold voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:THReshold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:THReshold? + + Properties: + - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerALogicThresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerALogicThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerALogicThresholdChannel]: + """Return the ``TRIGger:A:LOGIc:THReshold:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger threshold voltage for the + channel, specified by x, which ranges from 1 through 4. This command is equivalent to + selecting A or B Event Trigger Setup from the Trig menu, choosing a logic trigger + type, such as State or Pattern, and setting the Input Threshold voltage for the + desired channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:THReshold:CH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:THReshold:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:THReshold:CH + - TRIGger:A:LOGIc:THReshold:CH? + + **Info:** + - ```` specifies the threshold voltage. + """ + return self._ch + + +class TriggerALogicStateWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:STATE:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic state trigger. + This command is equivalent to selecting Logic State from the Trig menu and choosing the + desired condition from the Trigger When Pattern drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:STATE:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:STATE:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:STATE:WHEn {TRUe|FALSe} + - TRIGger:A:LOGIc:STATE:WHEn? + + **Info:** + - ``TRUe`` specifies that the trigger occurs when the clock transition on channel 4 occurs + and the pattern of channels 1-3 are at the desired logic input states. + - ``FALSe`` specifies that the trigger occurs when the desired clock transition on channel 4 + occurs and the desired logic input states on channels 1-3 are not found. + """ + + +class TriggerALogicStateInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. + + **Description:** + - This command sets or queries the slope for the channel specified by x when the logic class + is set to State. This command is equivalent to selecting Logic State from the Trig menu, + choosing the desired channel input, and then the slope (NEG or POS) from the When Clock is + drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE:INPut:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:STATE:INPut:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:STATE:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:STATE:INPut:CH {FALL|RISe} + - TRIGger:A:LOGIc:STATE:INPut:CH? + + **Info:** + - ``FALL`` specifies the falling edge and the input slope is NEG. + - ``RISe`` specifies the rising edge and the input slope is POS. + """ + + +class TriggerALogicStateInput(SCPICmdRead): + """The ``TRIGger:A:LOGIc:STATE:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:STATE:INPut?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerALogicStateInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerALogicStateInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerALogicStateInputChannel]: + """Return the ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. + + **Description:** + - This command sets or queries the slope for the channel specified by x when the logic + class is set to State. This command is equivalent to selecting Logic State from the + Trig menu, choosing the desired channel input, and then the slope (NEG or POS) from + the When Clock is drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE:INPut:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:STATE:INPut:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:STATE:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:STATE:INPut:CH {FALL|RISe} + - TRIGger:A:LOGIc:STATE:INPut:CH? + + **Info:** + - ``FALL`` specifies the falling edge and the input slope is NEG. + - ``RISe`` specifies the rising edge and the input slope is POS. + """ + return self._ch + + +class TriggerALogicState(SCPICmdRead): + """The ``TRIGger:A:LOGIc:STATE`` command. + + **Description:** + - This query-only command returns the data input and trigger criteria for the logic trigger. + This command is equivalent to selecting Logic State from the Trig menu and then viewing + the current logic state settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:STATE?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:STATE? + + Properties: + - ``.input``: The ``TRIGger:A:LOGIc:STATE:INPut`` command tree. + - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._input = TriggerALogicStateInput(device, f"{self._cmd_syntax}:INPut") + self._when = TriggerALogicStateWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def input(self) -> TriggerALogicStateInput: + """Return the ``TRIGger:A:LOGIc:STATE:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:STATE:INPut?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:LOGIc:STATE:INPut:CH`` command. + """ + return self._input + + @property + def when(self) -> TriggerALogicStateWhen: + """Return the ``TRIGger:A:LOGIc:STATE:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic state + trigger. This command is equivalent to selecting Logic State from the Trig menu and + choosing the desired condition from the Trigger When Pattern drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:STATE:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:STATE:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:STATE:WHEn {TRUe|FALSe} + - TRIGger:A:LOGIc:STATE:WHEn? + + **Info:** + - ``TRUe`` specifies that the trigger occurs when the clock transition on channel 4 + occurs and the pattern of channels 1-3 are at the desired logic input states. + - ``FALSe`` specifies that the trigger occurs when the desired clock transition on + channel 4 occurs and the desired logic input states on channels 1-3 are not found. + """ + return self._when + + +class TriggerALogicSetholdSettime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. + + **Description:** + - This command sets or queries the setup time for setup and hold violation triggering. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Setup Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:SETTime?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:SETTime?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:SETTime value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:SETTime + - TRIGger:A:LOGIc:SETHold:SETTime? + + **Info:** + - ```` specifies the setup time for setup and hold violation triggering. + """ + + +class TriggerALogicSetholdQualify(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:QUAlify`` command. + + **Description:** + - This command sets or queries the Setup/Hold Trigger qualification. This is equivalent to + selecting Setup/Hold Setup from the Trig menu and selecting Occurs, Logic, or Bus in the + Trigger If Setup/Hold drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:QUAlify?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:QUAlify value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:LOGIc:SETHold:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by the + ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + + +class TriggerALogicSetholdHoldtime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:HOLDTime`` command. + + **Description:** + - This command sets or queries the hold time for setup and hold violation triggering. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Hold Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:HOLDTime?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:HOLDTime?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:HOLDTime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:HOLDTime + - TRIGger:A:LOGIc:SETHold:HOLDTime? + + **Info:** + - ```` specifies the hold time setting in seconds. Positive values for hold time occur + after the clock edge. Negative values occur before the clock edge. + """ + + +class TriggerALogicSetholdDataThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. This + command is equivalent to selecting A or B Event Trigger Setup from the Trig menu and then + setting the desired Data Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + """ + + +class TriggerALogicSetholdDataThreshold(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:THReshold {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:THReshold? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + + Properties: + - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerALogicSetholdDataThresholdChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerALogicSetholdDataThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerALogicSetholdDataThresholdChannel]: + """Return the ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. + This command is equivalent to selecting A or B Event Trigger Setup from the Trig menu + and then setting the desired Data Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + """ + return self._ch + + +class TriggerALogicSetholdDataSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce`` command. + + **Description:** + - This command sets or queries the data source for the setup and hold trigger. This command + is equivalent to selecting Setup/Hold Setup from the Trig menu and choosing the desired + channel from the Data Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:SOUrce CH + - TRIGger:A:LOGIc:SETHold:DATa:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4. + """ + + +class TriggerALogicSetholdDataLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:DATa:LEVel`` command. + + **Description:** + - This command sets or queries the data voltage level for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa:LEVel?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:LEVel {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:LEVel? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies is the setup and hold data level in V. + """ + + +class TriggerALogicSetholdData(SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:DATa`` command. + + **Description:** + - This query-only command returns the voltage threshold and data source for the setup and + hold trigger. This command is equivalent to selecting Setup/Hold Setup from the Trig menu + and then viewing the current data setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa? + + Properties: + - ``.level``: The ``TRIGger:A:LOGIc:SETHold:DATa:LEVel`` command. + - ``.source``: The ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce`` command. + - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._level = TriggerALogicSetholdDataLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerALogicSetholdDataSource(device, f"{self._cmd_syntax}:SOUrce") + self._threshold = TriggerALogicSetholdDataThreshold(device, f"{self._cmd_syntax}:THReshold") + + @property + def level(self) -> TriggerALogicSetholdDataLevel: + """Return the ``TRIGger:A:LOGIc:SETHold:DATa:LEVel`` command. + + **Description:** + - This command sets or queries the data voltage level for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa:LEVel?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:LEVel?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:LEVel {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:LEVel? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` specifies is the setup and hold data level in V. + """ + return self._level + + @property + def source(self) -> TriggerALogicSetholdDataSource: + """Return the ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce`` command. + + **Description:** + - This command sets or queries the data source for the setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and choosing + the desired channel from the Data Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:SOUrce CH + - TRIGger:A:LOGIc:SETHold:DATa:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4. + """ + return self._source + + @property + def threshold(self) -> TriggerALogicSetholdDataThreshold: + """Return the ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. + + **Description:** + - This command sets or queries the data voltage threshold for setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Data Level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:DATa:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa:THReshold {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:DATa:THReshold? + + **Info:** + - ``ECL`` specifies the preset ECL high level. + - ``TTL`` specifies the preset TTL high level. + - ```` is the setup and hold data level in V. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerALogicSetholdClockThresholdChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and then setting + the desired Clock Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + """ + + +class TriggerALogicSetholdClockThreshold(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for the setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and setting + the desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + + Properties: + - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[ + int, TriggerALogicSetholdClockThresholdChannel + ] = DefaultDictPassKeyToFactory( + lambda x: TriggerALogicSetholdClockThresholdChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerALogicSetholdClockThresholdChannel]: + """Return the ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Clock Level. The value of x can range from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH?`` query and raise an AssertionError + if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + """ + return self._ch + + +class TriggerALogicSetholdClockSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce`` command. + + **Description:** + - This command sets or queries the clock source for the A or B logic trigger setup and hold + input. This is equivalent to selecting Setup/Hold Setup from the Trig menu and choosing + the desired channel from the Clock Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce CH + - TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4 for four-channel + instruments or 1 through 2 for two channel instruments. + """ + + +class TriggerALogicSetholdClockLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel`` command. + + **Description:** + - This command sets or queries the clock voltage level for the setup and hold trigger. This + command is equivalent to selecting Setup/Hold Setup from the Trig menu and setting the + desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:LEVel {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:LEVel? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ``NR3`` is the setup and hold data level in V. + """ + + +class TriggerALogicSetholdClockEdge(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE`` command. + + **Description:** + - This command sets or queries the clock edge polarity for setup and hold triggering. This + is equivalent to selecting Setup/Hold Setup from the Trig menu and then choosing the + desired Clock Edge. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:EDGE {FALL|RISe} + - TRIGger:A:LOGIc:SETHold:CLOCk:EDGE? + + **Info:** + - ``FALL`` specifies polarity as the clock falling edge. + - ``RISe`` specifies polarity as the clock rising edge. + """ + + +class TriggerALogicSetholdClock(SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold:CLOCk`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input for setup and hold triggering. This command is equivalent to selecting Setup/Hold + Setup from the Trig menu and then viewing the current clock setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk? + + Properties: + - ``.edge``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE`` command. + - ``.level``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel`` command. + - ``.source``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce`` command. + - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._edge = TriggerALogicSetholdClockEdge(device, f"{self._cmd_syntax}:EDGE") + self._level = TriggerALogicSetholdClockLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerALogicSetholdClockSource(device, f"{self._cmd_syntax}:SOUrce") + self._threshold = TriggerALogicSetholdClockThreshold( + device, f"{self._cmd_syntax}:THReshold" + ) + + @property + def edge(self) -> TriggerALogicSetholdClockEdge: + """Return the ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE`` command. + + **Description:** + - This command sets or queries the clock edge polarity for setup and hold triggering. + This is equivalent to selecting Setup/Hold Setup from the Trig menu and then choosing + the desired Clock Edge. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:EDGE {FALL|RISe} + - TRIGger:A:LOGIc:SETHold:CLOCk:EDGE? + + **Info:** + - ``FALL`` specifies polarity as the clock falling edge. + - ``RISe`` specifies polarity as the clock rising edge. + """ + return self._edge + + @property + def level(self) -> TriggerALogicSetholdClockLevel: + """Return the ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel`` command. + + **Description:** + - This command sets or queries the clock voltage level for the setup and hold trigger. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and + setting the desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:LEVel {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:LEVel? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ``NR3`` is the setup and hold data level in V. + """ + return self._level + + @property + def source(self) -> TriggerALogicSetholdClockSource: + """Return the ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce`` command. + + **Description:** + - This command sets or queries the clock source for the A or B logic trigger setup and + hold input. This is equivalent to selecting Setup/Hold Setup from the Trig menu and + choosing the desired channel from the Clock Source drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce CH + - TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce? + + **Info:** + - ``CH`` specifies the input channel, which ranges from 1 through 4 for four-channel + instruments or 1 through 2 for two channel instruments. + """ + return self._source + + @property + def threshold(self) -> TriggerALogicSetholdClockThreshold: + """Return the ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. + + **Description:** + - This command sets or queries the clock voltage threshold for the setup and hold + trigger. This command is equivalent to selecting Setup/Hold Setup from the Trig menu + and setting the desired Clock Level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold {ECL|TTL|} + - TRIGger:A:LOGIc:SETHold:CLOCk:THReshold? + + **Info:** + - ``ECL`` specifies a preset ECL high level. + - ``TTL`` specifies a preset TTL high level. + - ```` is the clock level in volts. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerALogicSethold(SCPICmdRead): + """The ``TRIGger:A:LOGIc:SETHold`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input, data voltage threshold and source, and both setup and hold times for setup and hold + violation triggering. This command is equivalent to selecting Setup/Hold Setup from the + Trig menu and then viewing the current setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold? + + Properties: + - ``.clock``: The ``TRIGger:A:LOGIc:SETHold:CLOCk`` command. + - ``.data``: The ``TRIGger:A:LOGIc:SETHold:DATa`` command. + - ``.holdtime``: The ``TRIGger:A:LOGIc:SETHold:HOLDTime`` command. + - ``.qualify``: The ``TRIGger:A:LOGIc:SETHold:QUAlify`` command. + - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._clock = TriggerALogicSetholdClock(device, f"{self._cmd_syntax}:CLOCk") + self._data = TriggerALogicSetholdData(device, f"{self._cmd_syntax}:DATa") + self._holdtime = TriggerALogicSetholdHoldtime(device, f"{self._cmd_syntax}:HOLDTime") + self._qualify = TriggerALogicSetholdQualify(device, f"{self._cmd_syntax}:QUAlify") + self._settime = TriggerALogicSetholdSettime(device, f"{self._cmd_syntax}:SETTime") + + @property + def clock(self) -> TriggerALogicSetholdClock: + """Return the ``TRIGger:A:LOGIc:SETHold:CLOCk`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input for setup and hold triggering. This command is equivalent to selecting + Setup/Hold Setup from the Trig menu and then viewing the current clock setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:CLOCk?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:CLOCk? + + Sub-properties: + - ``.edge``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:EDGE`` command. + - ``.level``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:LEVel`` command. + - ``.source``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:SOUrce`` command. + - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:CLOCk:THReshold`` command. + """ + return self._clock + + @property + def data(self) -> TriggerALogicSetholdData: + """Return the ``TRIGger:A:LOGIc:SETHold:DATa`` command. + + **Description:** + - This query-only command returns the voltage threshold and data source for the setup + and hold trigger. This command is equivalent to selecting Setup/Hold Setup from the + Trig menu and then viewing the current data setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:DATa?`` + query and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:DATa? + + Sub-properties: + - ``.level``: The ``TRIGger:A:LOGIc:SETHold:DATa:LEVel`` command. + - ``.source``: The ``TRIGger:A:LOGIc:SETHold:DATa:SOUrce`` command. + - ``.threshold``: The ``TRIGger:A:LOGIc:SETHold:DATa:THReshold`` command. + """ + return self._data + + @property + def holdtime(self) -> TriggerALogicSetholdHoldtime: + """Return the ``TRIGger:A:LOGIc:SETHold:HOLDTime`` command. + + **Description:** + - This command sets or queries the hold time for setup and hold violation triggering. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Hold Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:HOLDTime?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:HOLDTime?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:HOLDTime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:HOLDTime + - TRIGger:A:LOGIc:SETHold:HOLDTime? + + **Info:** + - ```` specifies the hold time setting in seconds. Positive values for hold time + occur after the clock edge. Negative values occur before the clock edge. + """ + return self._holdtime + + @property + def qualify(self) -> TriggerALogicSetholdQualify: + """Return the ``TRIGger:A:LOGIc:SETHold:QUAlify`` command. + + **Description:** + - This command sets or queries the Setup/Hold Trigger qualification. This is equivalent + to selecting Setup/Hold Setup from the Trig menu and selecting Occurs, Logic, or Bus + in the Trigger If Setup/Hold drop-down list box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:QUAlify?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:QUAlify?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:QUAlify value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:QUAlify {OCCurs|LOGIc|BUS} + - TRIGger:A:LOGIc:SETHold:QUAlify? + + **Info:** + - ``OCCurs`` specifies a trigger if any detectable event occurs. + - ``LOGIc`` specifies a trigger if the individual channel qualifications meet the logic + patterns and thresholds set by the. + - ``BUS`` specifies a trigger if the bus input qualifications meet the pattern set by + the ``TRIGGER:QUALIFICATION:BUS:VALUE`` command. + """ + return self._qualify + + @property + def settime(self) -> TriggerALogicSetholdSettime: + """Return the ``TRIGger:A:LOGIc:SETHold:SETTime`` command. + + **Description:** + - This command sets or queries the setup time for setup and hold violation triggering. + This command is equivalent to selecting Setup/Hold Setup from the Trig menu and then + setting the desired Setup Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold:SETTime?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold:SETTime?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:SETHold:SETTime value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold:SETTime + - TRIGger:A:LOGIc:SETHold:SETTime? + + **Info:** + - ```` specifies the setup time for setup and hold violation triggering. + """ + return self._settime + + +class TriggerALogicPatternWhenMorelimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. + + **Description:** + - This command sets or queries the minimum time that the selected pattern can be true and + still generate an A or B logic pattern trigger. This command is equivalent to selecting A + or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern as the Trigger Type, + selecting More Than for the Pattern in the Trigger When settings, and entering a minimum + value for Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:WHEn:MORELimit + - TRIGger:A:LOGIc:PATtern:WHEn:MORELimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + + +class TriggerALogicPatternWhenLesslimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit`` command. + + **Description:** + - This command sets or queries the maximum time that the selected pattern can be true and + still generate an A or B logic pattern trigger. This command is equivalent to selecting + the A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern as the Trigger + Type, selecting Less Than for the Pattern in the Trigger When settings, and entering a + maximum value for Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit + - TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + + +class TriggerALogicPatternWhen(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic pattern trigger + with respect to the defined input pattern. This command is equivalent to selecting A or B + Event (Main) Trigger Setup from the Trig menu, selecting Pattern for Trigger Type, and + choosing a trigger condition from the Pattern drop-down list, which is located in the + Trigger When group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:PATtern:WHEn?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:PATtern:WHEn value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:WHEn {TRUe|FALSe|LESSThan|MOREThan} + - TRIGger:A:LOGIc:PATtern:WHEn? + + **Info:** + - ``TRUe`` sets the instrument to trigger when the pattern becomes true. + - ``FALSe`` sets the instrument to trigger when the pattern becomes false. + - ``LESSThan`` sets the instrument to trigger if the specific pattern is true less than the + time set by the. + - ``MOREThan`` argument sets the instrument to trigger if the specific pattern is true + longer than the specified time set by the. + + Properties: + - ``.lesslimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit`` command. + - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lesslimit = TriggerALogicPatternWhenLesslimit(device, f"{self._cmd_syntax}:LESSLimit") + self._morelimit = TriggerALogicPatternWhenMorelimit(device, f"{self._cmd_syntax}:MORELimit") + + @property + def lesslimit(self) -> TriggerALogicPatternWhenLesslimit: + """Return the ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit`` command. + + **Description:** + - This command sets or queries the maximum time that the selected pattern can be true + and still generate an A or B logic pattern trigger. This command is equivalent to + selecting the A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern + as the Trigger Type, selecting Less Than for the Pattern in the Trigger When settings, + and entering a maximum value for Time. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit + - TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + return self._lesslimit + + @property + def morelimit(self) -> TriggerALogicPatternWhenMorelimit: + """Return the ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. + + **Description:** + - This command sets or queries the minimum time that the selected pattern can be true + and still generate an A or B logic pattern trigger. This command is equivalent to + selecting A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern as + the Trigger Type, selecting More Than for the Pattern in the Trigger When settings, + and entering a minimum value for Time. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:WHEn:MORELimit + - TRIGger:A:LOGIc:PATtern:WHEn:MORELimit? + + **Info:** + - ```` specifies the amount of time to hold the pattern true. + """ + return self._morelimit + + +class TriggerALogicPatternInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input for the specified channel. + This command specifies the logic value used when the pattern trigger detects the threshold + level. This command is equivalent to selecting Logic Pattern from the Trig menu and then + choosing the desired logical input from the channel drop-down list, which is located in + the Input Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:INPut:CH?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:PATtern:INPut:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:INPut:CH {HIGH|LOW|X} + - TRIGger:A:LOGIc:PATtern:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + + +class TriggerALogicPatternInput(SCPICmdRead): + """The ``TRIGger:A:LOGIc:PATtern:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:PATtern:INPut?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerALogicPatternInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerALogicPatternInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerALogicPatternInputChannel]: + """Return the ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input for the specified channel. + This command specifies the logic value used when the pattern trigger detects the + threshold level. This command is equivalent to selecting Logic Pattern from the Trig + menu and then choosing the desired logical input from the channel drop-down list, + which is located in the Input Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:INPut:CH?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:INPut:CH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:INPut:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:INPut:CH {HIGH|LOW|X} + - TRIGger:A:LOGIc:PATtern:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + return self._ch + + +class TriggerALogicPattern(SCPICmdRead): + """The ``TRIGger:A:LOGIc:PATtern`` command. + + **Description:** + - This query-only command returns the conditions used for generating an A logic pattern + trigger, with respect to the defined input pattern, and identifies the maximum and minimum + time that the selected pattern can be true and still generate the trigger. This command is + equivalent to selecting Logic Pattern from the Trig menu and then viewing the current + setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:PATtern?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern? + + Properties: + - ``.input``: The ``TRIGger:A:LOGIc:PATtern:INPut`` command tree. + - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._input = TriggerALogicPatternInput(device, f"{self._cmd_syntax}:INPut") + self._when = TriggerALogicPatternWhen(device, f"{self._cmd_syntax}:WHEn") + + @property + def input(self) -> TriggerALogicPatternInput: + """Return the ``TRIGger:A:LOGIc:PATtern:INPut`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:PATtern:INPut?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:LOGIc:PATtern:INPut:CH`` command. + """ + return self._input + + @property + def when(self) -> TriggerALogicPatternWhen: + """Return the ``TRIGger:A:LOGIc:PATtern:WHEn`` command. + + **Description:** + - This command sets or queries the condition for generating an A or B logic pattern + trigger with respect to the defined input pattern. This command is equivalent to + selecting A or B Event (Main) Trigger Setup from the Trig menu, selecting Pattern for + Trigger Type, and choosing a trigger condition from the Pattern drop-down list, which + is located in the Trigger When group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern:WHEn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:PATtern:WHEn?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:PATtern:WHEn value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern:WHEn {TRUe|FALSe|LESSThan|MOREThan} + - TRIGger:A:LOGIc:PATtern:WHEn? + + **Info:** + - ``TRUe`` sets the instrument to trigger when the pattern becomes true. + - ``FALSe`` sets the instrument to trigger when the pattern becomes false. + - ``LESSThan`` sets the instrument to trigger if the specific pattern is true less than + the time set by the. + - ``MOREThan`` argument sets the instrument to trigger if the specific pattern is true + longer than the specified time set by the. + + Sub-properties: + - ``.lesslimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:LESSLimit`` command. + - ``.morelimit``: The ``TRIGger:A:LOGIc:PATtern:WHEn:MORELimit`` command. + """ + return self._when + + +class TriggerALogicInputFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:INPut:FORMat`` command. + + **Description:** + - This command sets or queries the A or B logic trigger pattern format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:INPut:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut:FORMat {HEXadecimal|BINary} + - TRIGger:A:LOGIc:INPut:FORMat? + + **Info:** + - ``HEXadecimal`` specifies hexadecimal pattern format for A or B logic trigger. + - ``BINary`` specifies binary pattern format for A or B logic trigger. + """ + + +class TriggerALogicInputChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logical trigger input for the channel specified by + x. The value of x ranges from 1 through 3. Note that CH4 cannot be set or queried with + this command. For details about setting this channel, see . This command is equivalent to + selecting Event Trigger Setup from the Trig menu and then choosing the desired logical + input from the Ch drop-down list, which is located in the Input Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut:CH?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:INPut:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut:CH {HIGH|LOW|X} + - TRIGger:A:LOGIc:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + + +class TriggerALogicInputAll(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:INPut:ALL`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input condition for all the + channels. The command is available when the Trigger Type is set to Pattern/State. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut:ALL?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut:ALL?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:INPut:ALL value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut:ALL + - TRIGger:A:LOGIc:INPut:ALL? + + **Info:** + - ```` specifies the bit pattern for all the channels. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerALogicInput(SCPICmdRead): + """The ``TRIGger:A:LOGIc:INPut`` command. + + **Description:** + - This query-only command returns the logic trigger input expected for Channel 1, 2, and 3. + Channel 4 is set or queried with the command . This command is equivalent to selecting + Event Trigger Setup and viewing or setting the Input Threshold for the channels. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut? + + Properties: + - ``.all``: The ``TRIGger:A:LOGIc:INPut:ALL`` command. + - ``.ch``: The ``TRIGger:A:LOGIc:INPut:CH`` command. + - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._all = TriggerALogicInputAll(device, f"{self._cmd_syntax}:ALL") + self._ch: Dict[int, TriggerALogicInputChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + self._format = TriggerALogicInputFormat(device, f"{self._cmd_syntax}:FORMat") + + @property + def all(self) -> TriggerALogicInputAll: + """Return the ``TRIGger:A:LOGIc:INPut:ALL`` command. + + **Description:** + - This command sets or queries the A or B logic trigger input condition for all the + channels. The command is available when the Trigger Type is set to Pattern/State. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut:ALL?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut:ALL?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:INPut:ALL value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut:ALL + - TRIGger:A:LOGIc:INPut:ALL? + + **Info:** + - ```` specifies the bit pattern for all the channels. + """ + return self._all + + @property + def ch(self) -> Dict[int, TriggerALogicInputChannel]: + """Return the ``TRIGger:A:LOGIc:INPut:CH`` command. + + **Description:** + - This command sets or queries the A or B logical trigger input for the channel + specified by x. The value of x ranges from 1 through 3. Note that CH4 cannot be set or + queried with this command. For details about setting this channel, see . This command + is equivalent to selecting Event Trigger Setup from the Trig menu and then choosing + the desired logical input from the Ch drop-down list, which is located in the Input + Threshold group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:INPut:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut:CH {HIGH|LOW|X} + - TRIGger:A:LOGIc:INPut:CH? + + **Info:** + - ``HIGH`` specifies the logic high. + - ``LOW`` specifies the logic low. + - ``X`` specifies a 'don't care' state. + """ + return self._ch + + @property + def format(self) -> TriggerALogicInputFormat: + """Return the ``TRIGger:A:LOGIc:INPut:FORMat`` command. + + **Description:** + - This command sets or queries the A or B logic trigger pattern format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:LOGIc:INPut:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut:FORMat {HEXadecimal|BINary} + - TRIGger:A:LOGIc:INPut:FORMat? + + **Info:** + - ``HEXadecimal`` specifies hexadecimal pattern format for A or B logic trigger. + - ``BINary`` specifies binary pattern format for A or B logic trigger. + """ + return self._format + + +class TriggerALogicFunction(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:FUNCtion`` command. + + **Description:** + - This command sets or queries the logical combination of the input channels for logic + triggers. This command is equivalent to selecting Logic for the Trigger Type, and setting + or viewing the Define Logic. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:FUNCtion?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:FUNCtion?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:FUNCtion value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:FUNCtion {AND|NANd|NOR|OR} + - TRIGger:A:LOGIc:FUNCtion? + + **Info:** + - ``AND`` specifies to trigger if all conditions are true. + - ``NANd`` specifies to trigger if any of the conditions are false. + - ``NOR`` specifies to trigger if all conditions are false. + - ``OR`` specifies to trigger if any of the conditions are true. + """ + + +class TriggerALogicClass(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LOGIc:CLAss`` command. + + **Description:** + - This command sets or queries the class of the Logic Trigger. Used with the command, this + command is equivalent to selecting Logic Pattern, Logic State, or Setup/Hold Setup from + the Trig menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:CLAss value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:CLAss {PATtern|STATE|SETHold} + - TRIGger:A:LOGIc:CLAss? + + **Info:** + - ``PATtern`` sets the instrument to trigger when the specified logical combinations of + Channels 1, 2, 3, and 4 are met. + - ``STATE`` sets the instrument to trigger when the specified conditions of Channels 1, 2, + and 3 are met after the Channel 4 (clock) condition is met. + - ``SETHold`` sets the instrument to trigger on setup and hold violations between a data + source and a clock source. Use one channel input as the clock signal and a second channel + input as the data input. The clocking and data levels are used to determine if a clock or + data transition has occurred. + """ + + +class TriggerALogic(SCPICmdRead): + """The ``TRIGger:A:LOGIc`` command. + + **Description:** + - This query-only command returns all of the logic trigger parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc? + + Properties: + - ``.class``: The ``TRIGger:A:LOGIc:CLAss`` command. + - ``.function``: The ``TRIGger:A:LOGIc:FUNCtion`` command. + - ``.input``: The ``TRIGger:A:LOGIc:INPut`` command. + - ``.pattern``: The ``TRIGger:A:LOGIc:PATtern`` command. + - ``.sethold``: The ``TRIGger:A:LOGIc:SETHold`` command. + - ``.state``: The ``TRIGger:A:LOGIc:STATE`` command. + - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._class = TriggerALogicClass(device, f"{self._cmd_syntax}:CLAss") + self._function = TriggerALogicFunction(device, f"{self._cmd_syntax}:FUNCtion") + self._input = TriggerALogicInput(device, f"{self._cmd_syntax}:INPut") + self._pattern = TriggerALogicPattern(device, f"{self._cmd_syntax}:PATtern") + self._sethold = TriggerALogicSethold(device, f"{self._cmd_syntax}:SETHold") + self._state = TriggerALogicState(device, f"{self._cmd_syntax}:STATE") + self._threshold = TriggerALogicThreshold(device, f"{self._cmd_syntax}:THReshold") + + @property + def class_(self) -> TriggerALogicClass: + """Return the ``TRIGger:A:LOGIc:CLAss`` command. + + **Description:** + - This command sets or queries the class of the Logic Trigger. Used with the command, + this command is equivalent to selecting Logic Pattern, Logic State, or Setup/Hold + Setup from the Trig menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:CLAss?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:CLAss?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:CLAss value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:CLAss {PATtern|STATE|SETHold} + - TRIGger:A:LOGIc:CLAss? + + **Info:** + - ``PATtern`` sets the instrument to trigger when the specified logical combinations of + Channels 1, 2, 3, and 4 are met. + - ``STATE`` sets the instrument to trigger when the specified conditions of Channels 1, + 2, and 3 are met after the Channel 4 (clock) condition is met. + - ``SETHold`` sets the instrument to trigger on setup and hold violations between a data + source and a clock source. Use one channel input as the clock signal and a second + channel input as the data input. The clocking and data levels are used to determine if + a clock or data transition has occurred. + """ + return self._class + + @property + def function(self) -> TriggerALogicFunction: + """Return the ``TRIGger:A:LOGIc:FUNCtion`` command. + + **Description:** + - This command sets or queries the logical combination of the input channels for logic + triggers. This command is equivalent to selecting Logic for the Trigger Type, and + setting or viewing the Define Logic. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:FUNCtion?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:FUNCtion?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LOGIc:FUNCtion value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:FUNCtion {AND|NANd|NOR|OR} + - TRIGger:A:LOGIc:FUNCtion? + + **Info:** + - ``AND`` specifies to trigger if all conditions are true. + - ``NANd`` specifies to trigger if any of the conditions are false. + - ``NOR`` specifies to trigger if all conditions are false. + - ``OR`` specifies to trigger if any of the conditions are true. + """ + return self._function + + @property + def input(self) -> TriggerALogicInput: + """Return the ``TRIGger:A:LOGIc:INPut`` command. + + **Description:** + - This query-only command returns the logic trigger input expected for Channel 1, 2, and + 3. Channel 4 is set or queried with the command . This command is equivalent to + selecting Event Trigger Setup and viewing or setting the Input Threshold for the + channels. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:INPut?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:INPut?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:INPut? + + Sub-properties: + - ``.all``: The ``TRIGger:A:LOGIc:INPut:ALL`` command. + - ``.ch``: The ``TRIGger:A:LOGIc:INPut:CH`` command. + - ``.format``: The ``TRIGger:A:LOGIc:INPut:FORMat`` command. + """ + return self._input + + @property + def pattern(self) -> TriggerALogicPattern: + """Return the ``TRIGger:A:LOGIc:PATtern`` command. + + **Description:** + - This query-only command returns the conditions used for generating an A logic pattern + trigger, with respect to the defined input pattern, and identifies the maximum and + minimum time that the selected pattern can be true and still generate the trigger. + This command is equivalent to selecting Logic Pattern from the Trig menu and then + viewing the current setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:PATtern?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:PATtern? + + Sub-properties: + - ``.input``: The ``TRIGger:A:LOGIc:PATtern:INPut`` command tree. + - ``.when``: The ``TRIGger:A:LOGIc:PATtern:WHEn`` command. + """ + return self._pattern + + @property + def sethold(self) -> TriggerALogicSethold: + """Return the ``TRIGger:A:LOGIc:SETHold`` command. + + **Description:** + - This query-only command returns the clock edge polarity, voltage threshold and source + input, data voltage threshold and source, and both setup and hold times for setup and + hold violation triggering. This command is equivalent to selecting Setup/Hold Setup + from the Trig menu and then viewing the current setups. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:SETHold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:SETHold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:SETHold? + + Sub-properties: + - ``.clock``: The ``TRIGger:A:LOGIc:SETHold:CLOCk`` command. + - ``.data``: The ``TRIGger:A:LOGIc:SETHold:DATa`` command. + - ``.holdtime``: The ``TRIGger:A:LOGIc:SETHold:HOLDTime`` command. + - ``.qualify``: The ``TRIGger:A:LOGIc:SETHold:QUAlify`` command. + - ``.settime``: The ``TRIGger:A:LOGIc:SETHold:SETTime`` command. + """ + return self._sethold + + @property + def state(self) -> TriggerALogicState: + """Return the ``TRIGger:A:LOGIc:STATE`` command. + + **Description:** + - This query-only command returns the data input and trigger criteria for the logic + trigger. This command is equivalent to selecting Logic State from the Trig menu and + then viewing the current logic state settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:STATE?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:STATE? + + Sub-properties: + - ``.input``: The ``TRIGger:A:LOGIc:STATE:INPut`` command tree. + - ``.when``: The ``TRIGger:A:LOGIc:STATE:WHEn`` command. + """ + return self._state + + @property + def threshold(self) -> TriggerALogicThreshold: + """Return the ``TRIGger:A:LOGIc:THReshold`` command. + + **Description:** + - This query-only command returns the threshold voltage for all channels in a logic + trigger. This command query is equivalent to selecting Event Trigger Setup from the + Trig menu, choosing a logic trigger type, such as State or Pattern, and viewing the + current Input Threshold voltage settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc:THReshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc:THReshold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc:THReshold? + + Sub-properties: + - ``.ch``: The ``TRIGger:A:LOGIc:THReshold:CH`` command. + """ + return self._threshold + + +class TriggerALevelChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LEVel:CH`` command. + + **Description:** + - This command sets or queries the CH trigger level for + ``TRIGGER:LVLSRCPREFERENCE SRCDEPENDENT`` mode. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LEVel:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LEVel:CH?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LEVel:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LEVel:CH {ECL|TTL|} + - TRIGger:A:LEVel:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + + +class TriggerALevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:LEVel`` command. + + **Description:** + - This command sets or queries the level for the trigger. This command is equivalent to + selecting Holdoff from the Trig menu and then viewing or setting the trigger Level or + selecting B Event (Delayed) Trigger Setup from the Trig menu and setting the B Trig Level + voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LEVel?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LEVel {ECL|TTL|} + - TRIGger:A:LEVel? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + + Properties: + - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerALevelChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerALevelChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerALevelChannel]: + """Return the ``TRIGger:A:LEVel:CH`` command. + + **Description:** + - This command sets or queries the CH trigger level for + ``TRIGGER:LVLSRCPREFERENCE SRCDEPENDENT`` mode. The CH range is 1 to 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LEVel:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LEVel:CH?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LEVel:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LEVel:CH {ECL|TTL|} + - TRIGger:A:LEVel:CH? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + """ + return self._ch + + +class TriggerAI2cAddressRwinclude(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. + + **Description:** + - Sets the I2C read/write bit to address type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:I2C:ADDRess:RWINClude?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:I2C:ADDRess:RWINClude?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:I2C:ADDRess:RWINClude value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:I2C:ADDRess:RWINClude {OFF|ON} + - TRIGger:A:I2C:ADDRess:RWINClude? + + **Info:** + - ``ON`` specifies the I2C read/write bit to address type. + - ``OFF`` specifies to stop the I2C read/write bit to address type. + """ + + +class TriggerAI2cAddress(SCPICmdRead): + """The ``TRIGger:A:I2C:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:I2C:ADDRess?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:I2C:ADDRess?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._rwinclude = TriggerAI2cAddressRwinclude(device, f"{self._cmd_syntax}:RWINClude") + + @property + def rwinclude(self) -> TriggerAI2cAddressRwinclude: + """Return the ``TRIGger:A:I2C:ADDRess:RWINClude`` command. + + **Description:** + - Sets the I2C read/write bit to address type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:I2C:ADDRess:RWINClude?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:I2C:ADDRess:RWINClude?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:I2C:ADDRess:RWINClude value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:I2C:ADDRess:RWINClude {OFF|ON} + - TRIGger:A:I2C:ADDRess:RWINClude? + + **Info:** + - ``ON`` specifies the I2C read/write bit to address type. + - ``OFF`` specifies to stop the I2C read/write bit to address type. + """ + return self._rwinclude + + +class TriggerAI2c(SCPICmdRead): + """The ``TRIGger:A:I2C`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:I2C?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:I2C?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._address = TriggerAI2cAddress(device, f"{self._cmd_syntax}:ADDRess") + + @property + def address(self) -> TriggerAI2cAddress: + """Return the ``TRIGger:A:I2C:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:I2C:ADDRess?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:I2C:ADDRess?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.rwinclude``: The ``TRIGger:A:I2C:ADDRess:RWINClude`` command. + """ + return self._address + + +class TriggerAHoldoffTime(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:HOLDoff:TIMe`` command. + + **Description:** + - This command sets or queries the A trigger holdoff time. This command is equivalent to + selecting Mode & Holdoff from the Trig menu, selecting Time, and then setting the desired + Holdoff Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff:TIMe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:HOLDoff:TIMe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff:TIMe + - TRIGger:A:HOLDoff:TIMe? + + **Info:** + - ```` specifies the holdoff time in seconds. The range is from 0 seconds through 10 + seconds. + """ + + +class TriggerAHoldoffBy(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:HOLDoff:BY`` command. + + **Description:** + - This command sets or queries the type of holdoff for the A trigger. Holdoff types are + expressed as either user-specified time (TIMe) or by an internally calculated minimum time + value (DEFAult/AUTO). This command is equivalent to selecting Holdoff from the Trig menu + and then setting the Holdoff type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff:BY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff:BY?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:HOLDoff:BY value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff:BY {TIMe|DEFAult|RANDom|AUTO} + - TRIGger:A:HOLDoff:BY? + + **Info:** + - ``TIMe`` enables you to set the holdoff time via the ``TRIGGER:A:HOLDOFF:TIME`` command. + - ``DEFAult`` automatically calculates a holdoff time to use. This time is typically + equivalent to the greater of 1/2 screen (5 divisions) of time or 250 ns. The maximum value + is 12 s. For example, if the instrument is set to 1 ms/division then the default holdoff + will be 1 ms/division x 25 divisions = 25 ms. + - ``RANDom`` + - ``AUTO`` + """ + + +class TriggerAHoldoffActual(SCPICmdRead): + """The ``TRIGger:A:HOLDoff:ACTUal`` command. + + **Description:** + - This query-only command returns the holdoff time actually used (expressed in seconds) by + the A trigger. This command is equivalent to selecting Holdoff from the Trig menu and then + viewing the current Trig Holdoff value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff:ACTUal?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff:ACTUal?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff:ACTUal? + """ + + +class TriggerAHoldoff(SCPICmdRead): + """The ``TRIGger:A:HOLDoff`` command. + + **Description:** + - Returns the A trigger holdoff parameters. These parameters specify the time period during + which the trigger circuitry is not looking to generate a trigger event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff? + + Properties: + - ``.actual``: The ``TRIGger:A:HOLDoff:ACTUal`` command. + - ``.by``: The ``TRIGger:A:HOLDoff:BY`` command. + - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._actual = TriggerAHoldoffActual(device, f"{self._cmd_syntax}:ACTUal") + self._by = TriggerAHoldoffBy(device, f"{self._cmd_syntax}:BY") + self._time = TriggerAHoldoffTime(device, f"{self._cmd_syntax}:TIMe") + + @property + def actual(self) -> TriggerAHoldoffActual: + """Return the ``TRIGger:A:HOLDoff:ACTUal`` command. + + **Description:** + - This query-only command returns the holdoff time actually used (expressed in seconds) + by the A trigger. This command is equivalent to selecting Holdoff from the Trig menu + and then viewing the current Trig Holdoff value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff:ACTUal?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff:ACTUal?`` query + and raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff:ACTUal? + """ + return self._actual + + @property + def by(self) -> TriggerAHoldoffBy: + """Return the ``TRIGger:A:HOLDoff:BY`` command. + + **Description:** + - This command sets or queries the type of holdoff for the A trigger. Holdoff types are + expressed as either user-specified time (TIMe) or by an internally calculated minimum + time value (DEFAult/AUTO). This command is equivalent to selecting Holdoff from the + Trig menu and then setting the Holdoff type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff:BY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff:BY?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:HOLDoff:BY value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff:BY {TIMe|DEFAult|RANDom|AUTO} + - TRIGger:A:HOLDoff:BY? + + **Info:** + - ``TIMe`` enables you to set the holdoff time via the ``TRIGGER:A:HOLDOFF:TIME`` + command. + - ``DEFAult`` automatically calculates a holdoff time to use. This time is typically + equivalent to the greater of 1/2 screen (5 divisions) of time or 250 ns. The maximum + value is 12 s. For example, if the instrument is set to 1 ms/division then the default + holdoff will be 1 ms/division x 25 divisions = 25 ms. + - ``RANDom`` + - ``AUTO`` + """ + return self._by + + @property + def time(self) -> TriggerAHoldoffTime: + """Return the ``TRIGger:A:HOLDoff:TIMe`` command. + + **Description:** + - This command sets or queries the A trigger holdoff time. This command is equivalent to + selecting Mode & Holdoff from the Trig menu, selecting Time, and then setting the + desired Holdoff Time. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff:TIMe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff:TIMe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:HOLDoff:TIMe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff:TIMe + - TRIGger:A:HOLDoff:TIMe? + + **Info:** + - ```` specifies the holdoff time in seconds. The range is from 0 seconds through + 10 seconds. + """ + return self._time + + +class TriggerAEdgeSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:EDGE:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the edge trigger. This command is equivalent + to selecting Event Trigger Setup from the Trig menu and then choosing from the Source + drop-down list. When an UltraSync stack is in use, the mapped channels are used to both + acquire waveform data and to trigger the oscilloscope. In the special case of an UltraSync + stack master, additional channels are available for triggering. These are the unmapped + channels. For an ATI UltraSync Sstack master, CH2, MCH1, and MCH3 can be used for + triggering. For a 4-Channel UltraSync stack master, CH1, MCH2, MCH3, and MCH4 are + available for triggering. The vertical min/max amplitude for these signals must be setup. + See for more details. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:EDGE:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:SOUrce {AUXiliary|CH|MCH|LINE|D} + - TRIGger:A:EDGE:SOUrce? + + **Info:** + - ``AUXiliary`` specifies an external trigger using the Auxiliary Trigger Input. x can be 1, + 2, 3, or 4. + - ``CH`` specifies one input channel as the edge trigger source. + - ``MCH`` specifies an unmapped channel on an UltraSync stack master. For more details + see. + - ``LINE`` specifies AC line voltage, and is for A Trigger only. + - ``D`` specifies a digital input as the edge trigger source. x can be 0 through 15. + """ + + +class TriggerAEdgeSlope(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:EDGE:SLOpe`` command. + + **Description:** + - This command sets or queries the slope for the edge trigger. This command is equivalent to + selecting Edge from the Trigger Type drop-down in the Trigger setup context menu, and then + choosing the desired Slope. This command is also equivalent to pressing the front-panel + Slope button. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:SLOpe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:SLOpe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:EDGE:SLOpe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:SLOpe {RISe|FALL|EITher} + - TRIGger:A:EDGE:SLOpe? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerAEdgeCouplingChannel(ValidatedChannel, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:EDGE:COUPling:CH`` command. + + **Description:** + - This command sets or queries the type of coupling for the A or B trigger for the specified + channel. This command is equivalent to selecting A or B Trigger Setup from the Trig menu + and choosing the setting from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:COUPling:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:COUPling:CH?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:EDGE:COUPling:CH value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:COUPling:CH {AC|DC|HFRej|LFRej|NOISErej} + - TRIGger:A:EDGE:COUPling:CH? + + **Info:** + - ``AC`` selects AC trigger coupling. + - ``DC`` selects DC trigger coupling. + - ``HFRej`` selects high frequency low sensitivity. + - ``LFRej`` selects low frequency low sensitivity. + - ``NOISErej`` selects DC low sensitivity. + """ + + +class TriggerAEdgeCoupling(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:EDGE:COUPling`` command. + + **Description:** + - This command sets or queries the type of coupling for the edge trigger. This command is + equivalent to selecting Event Trigger Setup from the Trig menu, selecting Edge Trigger, + and choosing from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:COUPling?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:COUPling?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:EDGE:COUPling value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:COUPling {AC|DC|HFRej|LFRej|NOISErej|ATRIGger} + - TRIGger:A:EDGE:COUPling? + + **Info:** + - ``AC`` selects AC trigger coupling, which passes the input signals above 60 Hz to the + trigger circuitry. + - ``DC`` selects DC trigger coupling, which passes all input signals to the trigger + circuitry. + - ``HFRej`` coupling attenuates signals above 50 kHz before passing the signals to the + trigger circuitry. + - ``LFRej`` coupling attenuates signals below 80 kHz before passing the signals to the + trigger circuitry. + - ``NOISErej`` coupling provides stable triggering by increasing the trigger hysteresis. + Increased hysteresis reduces the trigger sensitivity to noise but can require greater + trigger signal amplitude. + - ``ATRIGger`` this B trigger command sets the B trigger coupling to match the setting on + the A trigger. + + Properties: + - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._ch: Dict[int, TriggerAEdgeCouplingChannel] = DefaultDictPassKeyToFactory( + lambda x: TriggerAEdgeCouplingChannel(device, f"{self._cmd_syntax}:CH{x}") + ) + + @property + def ch(self) -> Dict[int, TriggerAEdgeCouplingChannel]: + """Return the ``TRIGger:A:EDGE:COUPling:CH`` command. + + **Description:** + - This command sets or queries the type of coupling for the A or B trigger for the + specified channel. This command is equivalent to selecting A or B Trigger Setup from + the Trig menu and choosing the setting from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:COUPling:CH?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:COUPling:CH?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:EDGE:COUPling:CH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:COUPling:CH {AC|DC|HFRej|LFRej|NOISErej} + - TRIGger:A:EDGE:COUPling:CH? + + **Info:** + - ``AC`` selects AC trigger coupling. + - ``DC`` selects DC trigger coupling. + - ``HFRej`` selects high frequency low sensitivity. + - ``LFRej`` selects low frequency low sensitivity. + - ``NOISErej`` selects DC low sensitivity. + """ + return self._ch + + +class TriggerAEdge(SCPICmdRead): + """The ``TRIGger:A:EDGE`` command. + + **Description:** + - This query-only command returns the trigger source, coupling, and slope for the specified + edge trigger. This command is equivalent to selecting Edge Setup from the Trig menu and + viewing the current setups, or selecting B Event (Delayed) Trigger Setup from the Trig + menu and viewing the current Source, Slope, and Coupling settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE? + + Properties: + - ``.coupling``: The ``TRIGger:A:EDGE:COUPling`` command. + - ``.slope``: The ``TRIGger:A:EDGE:SLOpe`` command. + - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._coupling = TriggerAEdgeCoupling(device, f"{self._cmd_syntax}:COUPling") + self._slope = TriggerAEdgeSlope(device, f"{self._cmd_syntax}:SLOpe") + self._source = TriggerAEdgeSource(device, f"{self._cmd_syntax}:SOUrce") + + @property + def coupling(self) -> TriggerAEdgeCoupling: + """Return the ``TRIGger:A:EDGE:COUPling`` command. + + **Description:** + - This command sets or queries the type of coupling for the edge trigger. This command + is equivalent to selecting Event Trigger Setup from the Trig menu, selecting Edge + Trigger, and choosing from the Coupling drop-down list. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:COUPling?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:COUPling?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:EDGE:COUPling value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:COUPling {AC|DC|HFRej|LFRej|NOISErej|ATRIGger} + - TRIGger:A:EDGE:COUPling? + + **Info:** + - ``AC`` selects AC trigger coupling, which passes the input signals above 60 Hz to the + trigger circuitry. + - ``DC`` selects DC trigger coupling, which passes all input signals to the trigger + circuitry. + - ``HFRej`` coupling attenuates signals above 50 kHz before passing the signals to the + trigger circuitry. + - ``LFRej`` coupling attenuates signals below 80 kHz before passing the signals to the + trigger circuitry. + - ``NOISErej`` coupling provides stable triggering by increasing the trigger hysteresis. + Increased hysteresis reduces the trigger sensitivity to noise but can require greater + trigger signal amplitude. + - ``ATRIGger`` this B trigger command sets the B trigger coupling to match the setting + on the A trigger. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:EDGE:COUPling:CH`` command. + """ + return self._coupling + + @property + def slope(self) -> TriggerAEdgeSlope: + """Return the ``TRIGger:A:EDGE:SLOpe`` command. + + **Description:** + - This command sets or queries the slope for the edge trigger. This command is + equivalent to selecting Edge from the Trigger Type drop-down in the Trigger setup + context menu, and then choosing the desired Slope. This command is also equivalent to + pressing the front-panel Slope button. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:SLOpe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:SLOpe?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:EDGE:SLOpe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:SLOpe {RISe|FALL|EITher} + - TRIGger:A:EDGE:SLOpe? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._slope + + @property + def source(self) -> TriggerAEdgeSource: + """Return the ``TRIGger:A:EDGE:SOUrce`` command. + + **Description:** + - This command sets or queries the source for the edge trigger. This command is + equivalent to selecting Event Trigger Setup from the Trig menu and then choosing from + the Source drop-down list. When an UltraSync stack is in use, the mapped channels are + used to both acquire waveform data and to trigger the oscilloscope. In the special + case of an UltraSync stack master, additional channels are available for triggering. + These are the unmapped channels. For an ATI UltraSync Sstack master, CH2, MCH1, and + MCH3 can be used for triggering. For a 4-Channel UltraSync stack master, CH1, MCH2, + MCH3, and MCH4 are available for triggering. The vertical min/max amplitude for these + signals must be setup. See for more details. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:EDGE:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE:SOUrce {AUXiliary|CH|MCH|LINE|D} + - TRIGger:A:EDGE:SOUrce? + + **Info:** + - ``AUXiliary`` specifies an external trigger using the Auxiliary Trigger Input. x can + be 1, 2, 3, or 4. + - ``CH`` specifies one input channel as the edge trigger source. + - ``MCH`` specifies an unmapped channel on an UltraSync stack master. For more + details see. + - ``LINE`` specifies AC line voltage, and is for A Trigger only. + - ``D`` specifies a digital input as the edge trigger source. x can be 0 through 15. + """ + return self._source + + +class TriggerACommunicationStandard(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:STANdard`` command. + + **Description:** + - This command sets or queries the standard that identifies the code and bit rate. The bit + rate is used to compute the Unit Interval, which is the inverse of the bit rate. The Unit + Interval influences time skew in an Eye Diagram, where you perform post processing on AMI + isolated pulses, and pulse width settings if CMI. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:STANdard?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:STANdard?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:STANdard value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:STANdard {ATAG|CLOCKCoax| CLOCKSymmetrical|Custom|D|DS0Contra| DS0Double| DS0Single|DS0Timing|DS1|DS1A| DS1C|DS2| DS2RATECoax|DS2RATESymmetrical| DS3|DS4NA|E1|E2|E3|E4|ENET100|ENET1250| ENETXAUI| FC133|FC266|FC531|FC1063|FC2125|FC4250| FST|FW1394BS400B|FW1394BS1600B|HST|INF2_5G| OC1|OC3| OC12|OC48|OC48_FEC|PCIEXPRESS|RATE32Mbit| RATE97Mbit|RIO_500M|RIO_750M| RIO_1G|RIO_2G|RIO_1_5G|RIO_SERIAL_1G| RIO_SERIAL_2G|RIO_SERIAL_3G|SAS1_5|SAS3_?| SFI5_2|SFI5_3|STM0_CMI|STM0_HDBX|STM1E|STS1| STS3| TFI5_2|TFI5_3|VIDEO270|VIDEO292M|VIDEO360|VSROC192} + - TRIGger:A:COMMunication:STANdard? + """ # noqa: E501 + + +class TriggerACommunicationSourceType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. + + **Description:** + - This command sets or queries the source type. This command works only when the Eye Diagram + pulseform is selected. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:SOUrce:TYPe?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:SOUrce:TYPe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:SOUrce:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:SOUrce:TYPe {DATa|CLOCk|RECOVered} + - TRIGger:A:COMMunication:SOUrce:TYPe? + + **Info:** + - ``DATa`` causes the instrument to trigger and shift five unit intervals to form the + expected eye pattern. + - ``CLOCk`` causes the instrument to trigger but no shift occurs. The clock type causes + random triggers with respect to the data channel, which must be one of the other three + channels. + - ``RECOVered`` causes the instrument to trigger on the recovered clock from the data signal + attached to communication source forming an eye pattern on the source. + """ + + +class TriggerACommunicationSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:SOUrce`` command. + + **Description:** + - This command sets or queries the source channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:COMMunication:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:SOUrce {CH} + - TRIGger:A:COMMunication:SOUrce? + + **Info:** + - ``CH1`` argument selects CH 1 as the source channel. + - ``CH2`` argument selects CH 2 as the source channel. + - ``CH3`` argument selects CH 3 as the source channel. + - ``CH4`` argument selects CH 4 as the source channel. + + Properties: + - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._type = TriggerACommunicationSourceType(device, f"{self._cmd_syntax}:TYPe") + + @property + def type(self) -> TriggerACommunicationSourceType: + """Return the ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. + + **Description:** + - This command sets or queries the source type. This command works only when the Eye + Diagram pulseform is selected. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:SOUrce:TYPe?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:SOUrce:TYPe?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:SOUrce:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:SOUrce:TYPe {DATa|CLOCk|RECOVered} + - TRIGger:A:COMMunication:SOUrce:TYPe? + + **Info:** + - ``DATa`` causes the instrument to trigger and shift five unit intervals to form the + expected eye pattern. + - ``CLOCk`` causes the instrument to trigger but no shift occurs. The clock type causes + random triggers with respect to the data channel, which must be one of the other three + channels. + - ``RECOVered`` causes the instrument to trigger on the recovered clock from the data + signal attached to communication source forming an eye pattern on the source. + """ + return self._type + + +class TriggerACommunicationHdb3ThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:HDB3:THReshold:LOW + - TRIGger:A:COMMunication:HDB3:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + + +class TriggerACommunicationHdb3ThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:HDB3:THReshold:HIGH + - TRIGger:A:COMMunication:HDB3:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + + +class TriggerACommunicationHdb3Threshold(SCPICmdRead): + """The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:HDB3:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.high``: The ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._high = TriggerACommunicationHdb3ThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerACommunicationHdb3ThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def high(self) -> TriggerACommunicationHdb3ThresholdHigh: + """Return the ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:HDB3:THReshold:HIGH + - TRIGger:A:COMMunication:HDB3:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + return self._high + + @property + def low(self) -> TriggerACommunicationHdb3ThresholdLow: + """Return the ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:LOW?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:HDB3:THReshold:LOW + - TRIGger:A:COMMunication:HDB3:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + return self._low + + +class TriggerACommunicationHdb3Pulseform(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:HDB3:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The commands + set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:HDB3:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:HDB3:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:HDB3:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + + +class TriggerACommunicationHdb3(SCPICmdRead): + """The ``TRIGger:A:COMMunication:HDB3`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:HDB3?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:HDB3?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:HDB3:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._pulseform = TriggerACommunicationHdb3Pulseform( + device, f"{self._cmd_syntax}:PULSEForm" + ) + self._threshold = TriggerACommunicationHdb3Threshold( + device, f"{self._cmd_syntax}:THReshold" + ) + + @property + def pulseform(self) -> TriggerACommunicationHdb3Pulseform: + """Return the ``TRIGger:A:COMMunication:HDB3:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The + commands set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:HDB3:PULSEForm?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:HDB3:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:HDB3:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + return self._pulseform + + @property + def threshold(self) -> TriggerACommunicationHdb3Threshold: + """Return the ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:HDB3:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.high``: The ``TRIGger:A:COMMunication:HDB3:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:HDB3:THReshold:LOW`` command. + """ + return self._threshold + + +class TriggerACommunicationCode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:CODe`` command. + + **Description:** + - This command sets or queries the signal code that the communications trigger should expect + on the incoming signal. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:CODe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:COMMunication:CODe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:CODe {AMI|HDB3|B3ZS|B6ZS|B8ZS|CMI|NRZ|MLT3|MANChester} + - TRIGger:A:COMMunication:CODe? + + **Info:** + - ``AMI`` + - ``HDB3`` + - ``B3ZS`` + - ``B6ZS`` + - ``B8ZS`` + - ``CMI`` + - ``NRZ`` + - ``MLT3`` + - ``MANChester`` + """ + + +class TriggerACommunicationCmiPulseform(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. + + **Description:** + - This command sets or queries the CMI pulse form. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CMI:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:CMI:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:CMI:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:CMI:PULSEForm {PLUSOne|MINUSOne|ZERO|EYEdiagram} + - TRIGger:A:COMMunication:CMI:PULSEForm? + + **Info:** + - ``PLUSOne`` triggers on a positive mark. + - ``MINUSOne`` triggers on a negative mark. + - ``ZERO`` triggers on the bit representing zero. + - ``EYEdiagram`` positions the trigger point off screen to display the eye. + """ + + +class TriggerACommunicationCmi(SCPICmdRead): + """The ``TRIGger:A:COMMunication:CMI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CMI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:CMI?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._pulseform = TriggerACommunicationCmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") + + @property + def pulseform(self) -> TriggerACommunicationCmiPulseform: + """Return the ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. + + **Description:** + - This command sets or queries the CMI pulse form. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CMI:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:CMI:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:CMI:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:CMI:PULSEForm {PLUSOne|MINUSOne|ZERO|EYEdiagram} + - TRIGger:A:COMMunication:CMI:PULSEForm? + + **Info:** + - ``PLUSOne`` triggers on a positive mark. + - ``MINUSOne`` triggers on a negative mark. + - ``ZERO`` triggers on the bit representing zero. + - ``EYEdiagram`` positions the trigger point off screen to display the eye. + """ + return self._pulseform + + +class TriggerACommunicationClockPolarity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. + + **Description:** + - This command sets or queries the communication clock polarity + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CLOCk:POLarity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:CLOCk:POLarity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:CLOCk:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:CLOCk:POLarity {RISe|FALL} + - TRIGger:A:COMMunication:CLOCk:POLarity? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + + +class TriggerACommunicationClock(SCPICmdRead): + """The ``TRIGger:A:COMMunication:CLOCk`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:CLOCk?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._polarity = TriggerACommunicationClockPolarity(device, f"{self._cmd_syntax}:POLarity") + + @property + def polarity(self) -> TriggerACommunicationClockPolarity: + """Return the ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. + + **Description:** + - This command sets or queries the communication clock polarity + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:CLOCk:POLarity?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:CLOCk:POLarity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:CLOCk:POLarity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:CLOCk:POLarity {RISe|FALL} + - TRIGger:A:COMMunication:CLOCk:POLarity? + + **Info:** + - ``RISe`` specifies to trigger on the rising or positive edge of a signal. + - ``FALL`` specifies to trigger on the falling or negative edge of a signal. + """ + return self._polarity + + +class TriggerACommunicationBitrate(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:BITRate`` command. + + **Description:** + - This command sets or queries the bit rate. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:BITRate?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:BITRate?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:COMMunication:BITRate value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:BITRate + - TRIGger:A:COMMunication:BITRate? + + **Info:** + - ```` is a non-negative number greater than one and expressed as bits per second. + """ + + +class TriggerACommunicationB8zsThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B8ZS:THReshold:LOW + - TRIGger:A:COMMunication:B8ZS:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + + +class TriggerACommunicationB8zsThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B8ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B8ZS:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + + +class TriggerACommunicationB8zsThreshold(SCPICmdRead): + """The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B8ZS:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.high``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._high = TriggerACommunicationB8zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerACommunicationB8zsThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def high(self) -> TriggerACommunicationB8zsThresholdHigh: + """Return the ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B8ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B8ZS:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + return self._high + + @property + def low(self) -> TriggerACommunicationB8zsThresholdLow: + """Return the ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B8ZS:THReshold:LOW + - TRIGger:A:COMMunication:B8ZS:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + return self._low + + +class TriggerACommunicationB8zsPulseform(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B8ZS:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The commands + set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B8ZS:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B8ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B8ZS:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + + +class TriggerACommunicationB8zs(SCPICmdRead): + """The ``TRIGger:A:COMMunication:B8ZS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B8ZS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:B8ZS?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:B8ZS:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._pulseform = TriggerACommunicationB8zsPulseform( + device, f"{self._cmd_syntax}:PULSEForm" + ) + self._threshold = TriggerACommunicationB8zsThreshold( + device, f"{self._cmd_syntax}:THReshold" + ) + + @property + def pulseform(self) -> TriggerACommunicationB8zsPulseform: + """Return the ``TRIGger:A:COMMunication:B8ZS:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The + commands set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B8ZS:PULSEForm?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B8ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B8ZS:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + return self._pulseform + + @property + def threshold(self) -> TriggerACommunicationB8zsThreshold: + """Return the ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B8ZS:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.high``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:B8ZS:THReshold:LOW`` command. + """ + return self._threshold + + +class TriggerACommunicationB6zsThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B6ZS:THReshold:LOW + - TRIGger:A:COMMunication:B6ZS:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + + +class TriggerACommunicationB6zsThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B6ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B6ZS:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + + +class TriggerACommunicationB6zsThreshold(SCPICmdRead): + """The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B6ZS:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.high``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._high = TriggerACommunicationB6zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerACommunicationB6zsThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def high(self) -> TriggerACommunicationB6zsThresholdHigh: + """Return the ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B6ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B6ZS:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + return self._high + + @property + def low(self) -> TriggerACommunicationB6zsThresholdLow: + """Return the ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B6ZS:THReshold:LOW + - TRIGger:A:COMMunication:B6ZS:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + return self._low + + +class TriggerACommunicationB6zsPulseform(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B6ZS:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The commands + set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B6ZS:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B6ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B6ZS:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + + +class TriggerACommunicationB6zs(SCPICmdRead): + """The ``TRIGger:A:COMMunication:B6ZS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B6ZS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:B6ZS?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:B6ZS:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._pulseform = TriggerACommunicationB6zsPulseform( + device, f"{self._cmd_syntax}:PULSEForm" + ) + self._threshold = TriggerACommunicationB6zsThreshold( + device, f"{self._cmd_syntax}:THReshold" + ) + + @property + def pulseform(self) -> TriggerACommunicationB6zsPulseform: + """Return the ``TRIGger:A:COMMunication:B6ZS:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The + commands set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B6ZS:PULSEForm?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B6ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B6ZS:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + return self._pulseform + + @property + def threshold(self) -> TriggerACommunicationB6zsThreshold: + """Return the ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B6ZS:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.high``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:B6ZS:THReshold:LOW`` command. + """ + return self._threshold + + +class TriggerACommunicationB3zsThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B3ZS:THReshold:LOW + - TRIGger:A:COMMunication:B3ZS:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + + +class TriggerACommunicationB3zsThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B3ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B3ZS:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + + +class TriggerACommunicationB3zsThreshold(SCPICmdRead): + """The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B3ZS:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.high``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._high = TriggerACommunicationB3zsThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerACommunicationB3zsThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def high(self) -> TriggerACommunicationB3zsThresholdHigh: + """Return the ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B3ZS:THReshold:HIGH + - TRIGger:A:COMMunication:B3ZS:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + return self._high + + @property + def low(self) -> TriggerACommunicationB3zsThresholdLow: + """Return the ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B3ZS:THReshold:LOW + - TRIGger:A:COMMunication:B3ZS:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + return self._low + + +class TriggerACommunicationB3zsPulseform(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:B3ZS:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The commands + set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B3ZS:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B3ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B3ZS:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + + +class TriggerACommunicationB3zs(SCPICmdRead): + """The ``TRIGger:A:COMMunication:B3ZS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B3ZS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:B3ZS?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:B3ZS:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._pulseform = TriggerACommunicationB3zsPulseform( + device, f"{self._cmd_syntax}:PULSEForm" + ) + self._threshold = TriggerACommunicationB3zsThreshold( + device, f"{self._cmd_syntax}:THReshold" + ) + + @property + def pulseform(self) -> TriggerACommunicationB3zsPulseform: + """Return the ``TRIGger:A:COMMunication:B3ZS:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The + commands set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B3ZS:PULSEForm?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:B3ZS:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:B3ZS:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + return self._pulseform + + @property + def threshold(self) -> TriggerACommunicationB3zsThreshold: + """Return the ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:B3ZS:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.high``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:B3ZS:THReshold:LOW`` command. + """ + return self._threshold + + +class TriggerACommunicationAmiThresholdLow(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:AMI:THReshold:LOW?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:LOW?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:AMI:THReshold:LOW + - TRIGger:A:COMMunication:AMI:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + + +class TriggerACommunicationAmiThresholdHigh(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:AMI:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This command + sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:HIGH?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:AMI:THReshold:HIGH + - TRIGger:A:COMMunication:AMI:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + + +class TriggerACommunicationAmiThreshold(SCPICmdRead): + """The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:AMI:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.high``: The ``TRIGger:A:COMMunication:AMI:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._high = TriggerACommunicationAmiThresholdHigh(device, f"{self._cmd_syntax}:HIGH") + self._low = TriggerACommunicationAmiThresholdLow(device, f"{self._cmd_syntax}:LOW") + + @property + def high(self) -> TriggerACommunicationAmiThresholdHigh: + """Return the ``TRIGger:A:COMMunication:AMI:THReshold:HIGH`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold high level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:HIGH?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:HIGH?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:HIGH value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:AMI:THReshold:HIGH + - TRIGger:A:COMMunication:AMI:THReshold:HIGH? + + **Info:** + - ```` is the high threshold parameter expressed in volts. + """ + return self._high + + @property + def low(self) -> TriggerACommunicationAmiThresholdLow: + """Return the ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. This + command sets or queries the threshold low level. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:LOW?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:LOW?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold:LOW value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:AMI:THReshold:LOW + - TRIGger:A:COMMunication:AMI:THReshold:LOW? + + **Info:** + - ```` specifies the high threshold parameter, expressed in volts. + """ + return self._low + + +class TriggerACommunicationAmiPulseform(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:COMMunication:AMI:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The commands + set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:AMI:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:AMI:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:AMI:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + + +class TriggerACommunicationAmi(SCPICmdRead): + """The ``TRIGger:A:COMMunication:AMI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:AMI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:AMI?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:AMI:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._pulseform = TriggerACommunicationAmiPulseform(device, f"{self._cmd_syntax}:PULSEForm") + self._threshold = TriggerACommunicationAmiThreshold(device, f"{self._cmd_syntax}:THReshold") + + @property + def pulseform(self) -> TriggerACommunicationAmiPulseform: + """Return the ``TRIGger:A:COMMunication:AMI:PULSEForm`` command. + + **Description:** + - This entry covers five separate commands, one each for AMI and AMI subtypes. The + commands set or query the AMI pulse form to one of three possibilities. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:AMI:PULSEForm?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:PULSEForm?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:PULSEForm value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:AMI:PULSEForm {PLUSOne|MINUSOne| EYEdiagram} + - TRIGger:A:COMMunication:AMI:PULSEForm? + + **Info:** + - ``PLUSOne`` corresponds to the Isolated +1 on the front panel menu. + - ``MINUSOne`` corresponds to the Isolated -1 on the front panel menu. + """ + return self._pulseform + + @property + def threshold(self) -> TriggerACommunicationAmiThreshold: + """Return the ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:AMI:THReshold?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:AMI:THReshold?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.high``: The ``TRIGger:A:COMMunication:AMI:THReshold:HIGH`` command. + - ``.low``: The ``TRIGger:A:COMMunication:AMI:THReshold:LOW`` command. + """ + return self._threshold + + +# pylint: disable=too-many-instance-attributes +class TriggerACommunication(SCPICmdRead): + """The ``TRIGger:A:COMMunication`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.bitrate``: The ``TRIGger:A:COMMunication:BITRate`` command. + - ``.clock``: The ``TRIGger:A:COMMunication:CLOCk`` command tree. + - ``.cmi``: The ``TRIGger:A:COMMunication:CMI`` command tree. + - ``.code``: The ``TRIGger:A:COMMunication:CODe`` command. + - ``.source``: The ``TRIGger:A:COMMunication:SOUrce`` command. + - ``.standard``: The ``TRIGger:A:COMMunication:STANdard`` command. + - ``.ami``: The ``TRIGger:A:COMMunication:AMI`` command tree. + - ``.hdb3``: The ``TRIGger:A:COMMunication:HDB3`` command tree. + - ``.b3zs``: The ``TRIGger:A:COMMunication:B3ZS`` command tree. + - ``.b6zs``: The ``TRIGger:A:COMMunication:B6ZS`` command tree. + - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._bitrate = TriggerACommunicationBitrate(device, f"{self._cmd_syntax}:BITRate") + self._clock = TriggerACommunicationClock(device, f"{self._cmd_syntax}:CLOCk") + self._cmi = TriggerACommunicationCmi(device, f"{self._cmd_syntax}:CMI") + self._code = TriggerACommunicationCode(device, f"{self._cmd_syntax}:CODe") + self._source = TriggerACommunicationSource(device, f"{self._cmd_syntax}:SOUrce") + self._standard = TriggerACommunicationStandard(device, f"{self._cmd_syntax}:STANdard") + self._ami = TriggerACommunicationAmi(device, f"{self._cmd_syntax}:AMI") + self._hdb3 = TriggerACommunicationHdb3(device, f"{self._cmd_syntax}:HDB3") + self._b3zs = TriggerACommunicationB3zs(device, f"{self._cmd_syntax}:B3ZS") + self._b6zs = TriggerACommunicationB6zs(device, f"{self._cmd_syntax}:B6ZS") + self._b8zs = TriggerACommunicationB8zs(device, f"{self._cmd_syntax}:B8ZS") + + @property + def bitrate(self) -> TriggerACommunicationBitrate: + """Return the ``TRIGger:A:COMMunication:BITRate`` command. + + **Description:** + - This command sets or queries the bit rate. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:BITRate?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:BITRate?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:BITRate value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:BITRate + - TRIGger:A:COMMunication:BITRate? + + **Info:** + - ```` is a non-negative number greater than one and expressed as bits per second. + """ + return self._bitrate + + @property + def clock(self) -> TriggerACommunicationClock: + """Return the ``TRIGger:A:COMMunication:CLOCk`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CLOCk?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:CLOCk?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.polarity``: The ``TRIGger:A:COMMunication:CLOCk:POLarity`` command. + """ + return self._clock + + @property + def cmi(self) -> TriggerACommunicationCmi: + """Return the ``TRIGger:A:COMMunication:CMI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CMI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:CMI?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:CMI:PULSEForm`` command. + """ + return self._cmi + + @property + def code(self) -> TriggerACommunicationCode: + """Return the ``TRIGger:A:COMMunication:CODe`` command. + + **Description:** + - This command sets or queries the signal code that the communications trigger should + expect on the incoming signal. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:CODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:CODe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:CODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:CODe {AMI|HDB3|B3ZS|B6ZS|B8ZS|CMI|NRZ|MLT3|MANChester} + - TRIGger:A:COMMunication:CODe? + + **Info:** + - ``AMI`` + - ``HDB3`` + - ``B3ZS`` + - ``B6ZS`` + - ``B8ZS`` + - ``CMI`` + - ``NRZ`` + - ``MLT3`` + - ``MANChester`` + """ + return self._code + + @property + def source(self) -> TriggerACommunicationSource: + """Return the ``TRIGger:A:COMMunication:SOUrce`` command. + + **Description:** + - This command sets or queries the source channel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:SOUrce?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:SOUrce {CH} + - TRIGger:A:COMMunication:SOUrce? + + **Info:** + - ``CH1`` argument selects CH 1 as the source channel. + - ``CH2`` argument selects CH 2 as the source channel. + - ``CH3`` argument selects CH 3 as the source channel. + - ``CH4`` argument selects CH 4 as the source channel. + + Sub-properties: + - ``.type``: The ``TRIGger:A:COMMunication:SOUrce:TYPe`` command. + """ + return self._source + + @property + def standard(self) -> TriggerACommunicationStandard: + """Return the ``TRIGger:A:COMMunication:STANdard`` command. + + **Description:** + - This command sets or queries the standard that identifies the code and bit rate. The + bit rate is used to compute the Unit Interval, which is the inverse of the bit rate. + The Unit Interval influences time skew in an Eye Diagram, where you perform post + processing on AMI isolated pulses, and pulse width settings if CMI. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:STANdard?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:COMMunication:STANdard?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:COMMunication:STANdard value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:COMMunication:STANdard {ATAG|CLOCKCoax| CLOCKSymmetrical|Custom|D|DS0Contra| DS0Double| DS0Single|DS0Timing|DS1|DS1A| DS1C|DS2| DS2RATECoax|DS2RATESymmetrical| DS3|DS4NA|E1|E2|E3|E4|ENET100|ENET1250| ENETXAUI| FC133|FC266|FC531|FC1063|FC2125|FC4250| FST|FW1394BS400B|FW1394BS1600B|HST|INF2_5G| OC1|OC3| OC12|OC48|OC48_FEC|PCIEXPRESS|RATE32Mbit| RATE97Mbit|RIO_500M|RIO_750M| RIO_1G|RIO_2G|RIO_1_5G|RIO_SERIAL_1G| RIO_SERIAL_2G|RIO_SERIAL_3G|SAS1_5|SAS3_?| SFI5_2|SFI5_3|STM0_CMI|STM0_HDBX|STM1E|STS1| STS3| TFI5_2|TFI5_3|VIDEO270|VIDEO292M|VIDEO360|VSROC192} + - TRIGger:A:COMMunication:STANdard? + """ # noqa: E501 + return self._standard + + @property + def ami(self) -> TriggerACommunicationAmi: + """Return the ``TRIGger:A:COMMunication:AMI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:AMI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:AMI?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:AMI:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:AMI:THReshold`` command tree. + """ + return self._ami + + @property + def hdb3(self) -> TriggerACommunicationHdb3: + """Return the ``TRIGger:A:COMMunication:HDB3`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:HDB3?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:HDB3?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:HDB3:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:HDB3:THReshold`` command tree. + """ + return self._hdb3 + + @property + def b3zs(self) -> TriggerACommunicationB3zs: + """Return the ``TRIGger:A:COMMunication:B3ZS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B3ZS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:B3ZS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:B3ZS:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:B3ZS:THReshold`` command tree. + """ + return self._b3zs + + @property + def b6zs(self) -> TriggerACommunicationB6zs: + """Return the ``TRIGger:A:COMMunication:B6ZS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B6ZS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:B6ZS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:B6ZS:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:B6ZS:THReshold`` command tree. + """ + return self._b6zs + + @property + def b8zs(self) -> TriggerACommunicationB8zs: + """Return the ``TRIGger:A:COMMunication:B8ZS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication:B8ZS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication:B8ZS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.pulseform``: The ``TRIGger:A:COMMunication:B8ZS:PULSEForm`` command. + - ``.threshold``: The ``TRIGger:A:COMMunication:B8ZS:THReshold`` command tree. + """ + return self._b8zs + + +class TriggerACanSpeed(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:SPEed`` command. + + **Description:** + - CAN option only: This command sets or queries the bit rate of the CAN system. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:SPEed?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:SPEed?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:SPEed value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:SPEed + - TRIGger:A:CAN:SPEed? + + **Info:** + - ```` specifies the bit rate of the CAN system. Possible values are 1M, 800K, 500K, + 250K, 125K, 100K, 83.3K, 62,5K, 50K, 33K, 20K, and 10K. + """ + + +class TriggerACanProbe(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:PROBE`` command. + + **Description:** + - CAN option only: This command sets or queries the probing method used to probe the CAN + signal. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:PROBE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:PROBE?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:PROBE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:PROBE {CANL|CANH|DIFFerential|TX|RX} + - TRIGger:A:CAN:PROBE? + + **Info:** + - ``CANL`` specifies that the probing method is CANL. + - ``CANH`` specifies that the probing method is CANH. + - ``DIFFerential`` specifies that the probing method used is differential. + - ``TX`` specifies that the probing method is TX. + - ``RX`` specifies that the probing method is RX. + """ + + +class TriggerACanIdentifierValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:IDENTifier:VALue`` command. + + **Description:** + - CAN option only: This command sets or queries the binary address string used for the CAN + trigger if the trigger condition is ID or IDANDDATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:IDENTifier:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:IDENTifier:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:IDENTifier:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:IDENTifier:VALue + - TRIGger:A:CAN:IDENTifier:VALue? + + **Info:** + - ```` is up to 29 bits specifying the CAN identifier value. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerACanIdentifierMode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:IDENTifier:MODe`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN trigger identifier mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:IDENTifier:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:IDENTifier:MODe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:IDENTifier:MODe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:IDENTifier:MODe {STANdard|EXTENded} + - TRIGger:A:CAN:IDENTifier:MODe? + + **Info:** + - ``STANdard`` sets the CAN trigger identifier mode to standard mode. + - ``EXTENded`` sets the CAN trigger identifier mode to extended mode. + """ + + +class TriggerACanIdentifier(SCPICmdRead): + """The ``TRIGger:A:CAN:IDENTifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:IDENTifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:IDENTifier?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.mode``: The ``TRIGger:A:CAN:IDENTifier:MODe`` command. + - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._mode = TriggerACanIdentifierMode(device, f"{self._cmd_syntax}:MODe") + self._value = TriggerACanIdentifierValue(device, f"{self._cmd_syntax}:VALue") + + @property + def mode(self) -> TriggerACanIdentifierMode: + """Return the ``TRIGger:A:CAN:IDENTifier:MODe`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN trigger identifier mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:IDENTifier:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:IDENTifier:MODe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:CAN:IDENTifier:MODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:IDENTifier:MODe {STANdard|EXTENded} + - TRIGger:A:CAN:IDENTifier:MODe? + + **Info:** + - ``STANdard`` sets the CAN trigger identifier mode to standard mode. + - ``EXTENded`` sets the CAN trigger identifier mode to extended mode. + """ + return self._mode + + @property + def value(self) -> TriggerACanIdentifierValue: + """Return the ``TRIGger:A:CAN:IDENTifier:VALue`` command. + + **Description:** + - CAN option only: This command sets or queries the binary address string used for the + CAN trigger if the trigger condition is ID or IDANDDATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:IDENTifier:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:IDENTifier:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:CAN:IDENTifier:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:IDENTifier:VALue + - TRIGger:A:CAN:IDENTifier:VALue? + + **Info:** + - ```` is up to 29 bits specifying the CAN identifier value. + """ + return self._value + + +class TriggerACanFrametype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:FRAMEtype`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN trigger frame type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:FRAMEtype?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:FRAMEtype?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:FRAMEtype value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:FRAMEtype {DATA|REMote|ERROR|OVERLOAD} + - TRIGger:A:CAN:FRAMEtype? + + **Info:** + - ``DATA`` specifies a data frame type. + - ``REMote`` specifies a remote frame type. + - ``ERROR`` specifies an error frame type. + - ``OVERLOAD`` specifies an overload frame type. + """ + + +class TriggerACanFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:FORMat`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:FORMat {BINary|HEX} + - TRIGger:A:CAN:FORMat? + + **Info:** + - ``BINary`` specifies binary as the CAN data format. + - ``HEX`` specifies hexadecimal as the CAN data format. + """ + + +class TriggerACanDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:DATa:VALue`` command. + + **Description:** + - CAN option only: This command sets or quires the binary data string used for CAN Trigger + if the trigger condition is ID or IDANDDATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:VALue?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:VALue + - TRIGger:A:CAN:DATa:VALue? + + **Info:** + - ```` is up to 32 bits specifying the CAN data value. + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerACanDataSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:DATa:SOUrce`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN data source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:DATa:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:SOUrce CH + - TRIGger:A:CAN:DATa:SOUrce? + + **Info:** + - ``CH`` specifies the source for the CAN trigger. x can be 1, 2, 3, or 4. + """ + + +class TriggerACanDataLevel(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:DATa:LEVel`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN Trigger threshold for the CAN data + source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:LEVel?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:DATa:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:LEVel + - TRIGger:A:CAN:DATa:LEVel? + + **Info:** + - ```` specifies the CAN trigger data level. The level can be ±12.0 divisions. + """ + + +class TriggerACanDataDirection(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:DATa:DIRection`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN trigger condition to be valid on a + READ, WRITE, or either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:DIRection?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:DIRection?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:DATa:DIRection value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:DIRection {READ|WRITE|NOCARE} + - TRIGger:A:CAN:DATa:DIRection? + + **Info:** + - ``READ`` sets the CAN data direction to Read. + - ``WRITE`` sets the CAN data direction to Write. + - ``NOCARE`` sets the CAN data direction to either. + """ + + +class TriggerACanData(SCPICmdRead): + """The ``TRIGger:A:CAN:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.direction``: The ``TRIGger:A:CAN:DATa:DIRection`` command. + - ``.level``: The ``TRIGger:A:CAN:DATa:LEVel`` command. + - ``.source``: The ``TRIGger:A:CAN:DATa:SOUrce`` command. + - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._direction = TriggerACanDataDirection(device, f"{self._cmd_syntax}:DIRection") + self._level = TriggerACanDataLevel(device, f"{self._cmd_syntax}:LEVel") + self._source = TriggerACanDataSource(device, f"{self._cmd_syntax}:SOUrce") + self._value = TriggerACanDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def direction(self) -> TriggerACanDataDirection: + """Return the ``TRIGger:A:CAN:DATa:DIRection`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN trigger condition to be valid on + a READ, WRITE, or either. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:DIRection?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:DIRection?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:CAN:DATa:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:DIRection {READ|WRITE|NOCARE} + - TRIGger:A:CAN:DATa:DIRection? + + **Info:** + - ``READ`` sets the CAN data direction to Read. + - ``WRITE`` sets the CAN data direction to Write. + - ``NOCARE`` sets the CAN data direction to either. + """ + return self._direction + + @property + def level(self) -> TriggerACanDataLevel: + """Return the ``TRIGger:A:CAN:DATa:LEVel`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN Trigger threshold for the CAN + data source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:LEVel?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:DATa:LEVel value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:LEVel + - TRIGger:A:CAN:DATa:LEVel? + + **Info:** + - ```` specifies the CAN trigger data level. The level can be ±12.0 divisions. + """ + return self._level + + @property + def source(self) -> TriggerACanDataSource: + """Return the ``TRIGger:A:CAN:DATa:SOUrce`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN data source. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:SOUrce?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:DATa:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:SOUrce CH + - TRIGger:A:CAN:DATa:SOUrce? + + **Info:** + - ``CH`` specifies the source for the CAN trigger. x can be 1, 2, 3, or 4. + """ + return self._source + + @property + def value(self) -> TriggerACanDataValue: + """Return the ``TRIGger:A:CAN:DATa:VALue`` command. + + **Description:** + - CAN option only: This command sets or quires the binary data string used for CAN + Trigger if the trigger condition is ID or IDANDDATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:DATa:VALue + - TRIGger:A:CAN:DATa:VALue? + + **Info:** + - ```` is up to 32 bits specifying the CAN data value. + """ + return self._value + + +class TriggerACanCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:CAN:CONDition`` command. + + **Description:** + - CAN option only: This command sets or returns the CAN condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:CONDition?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:CONDition {SOF|FRAMEtype|IDENTifier|DATA|IDANDDATA|EOF|ACKMISS} + - TRIGger:A:CAN:CONDition? + + **Info:** + - ``SOF`` enables triggering on the start of frame. + - ``FRAMEtype`` enables triggering on the type of frame. + - ``IDENTifier`` enables triggering on a matching identifier. + - ``DATA`` enables triggering on matching data. + - ``IDANDDATA`` enables triggering on a matching identifier and matching data. + - ``EOF`` enables triggering on the end of frame. + - ``ACKMISS`` enables triggering on a missing acknowledge. + - ``ERROR`` enables triggering on an error within a frame. + """ + + +class TriggerACan(SCPICmdRead): + """The ``TRIGger:A:CAN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.condition``: The ``TRIGger:A:CAN:CONDition`` command. + - ``.data``: The ``TRIGger:A:CAN:DATa`` command tree. + - ``.format``: The ``TRIGger:A:CAN:FORMat`` command. + - ``.frametype``: The ``TRIGger:A:CAN:FRAMEtype`` command. + - ``.identifier``: The ``TRIGger:A:CAN:IDENTifier`` command tree. + - ``.probe``: The ``TRIGger:A:CAN:PROBE`` command. + - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._condition = TriggerACanCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerACanData(device, f"{self._cmd_syntax}:DATa") + self._format = TriggerACanFormat(device, f"{self._cmd_syntax}:FORMat") + self._frametype = TriggerACanFrametype(device, f"{self._cmd_syntax}:FRAMEtype") + self._identifier = TriggerACanIdentifier(device, f"{self._cmd_syntax}:IDENTifier") + self._probe = TriggerACanProbe(device, f"{self._cmd_syntax}:PROBE") + self._speed = TriggerACanSpeed(device, f"{self._cmd_syntax}:SPEed") + + @property + def condition(self) -> TriggerACanCondition: + """Return the ``TRIGger:A:CAN:CONDition`` command. + + **Description:** + - CAN option only: This command sets or returns the CAN condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:CONDition {SOF|FRAMEtype|IDENTifier|DATA|IDANDDATA|EOF|ACKMISS} + - TRIGger:A:CAN:CONDition? + + **Info:** + - ``SOF`` enables triggering on the start of frame. + - ``FRAMEtype`` enables triggering on the type of frame. + - ``IDENTifier`` enables triggering on a matching identifier. + - ``DATA`` enables triggering on matching data. + - ``IDANDDATA`` enables triggering on a matching identifier and matching data. + - ``EOF`` enables triggering on the end of frame. + - ``ACKMISS`` enables triggering on a missing acknowledge. + - ``ERROR`` enables triggering on an error within a frame. + """ + return self._condition + + @property + def data(self) -> TriggerACanData: + """Return the ``TRIGger:A:CAN:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.direction``: The ``TRIGger:A:CAN:DATa:DIRection`` command. + - ``.level``: The ``TRIGger:A:CAN:DATa:LEVel`` command. + - ``.source``: The ``TRIGger:A:CAN:DATa:SOUrce`` command. + - ``.value``: The ``TRIGger:A:CAN:DATa:VALue`` command. + """ + return self._data + + @property + def format(self) -> TriggerACanFormat: + """Return the ``TRIGger:A:CAN:FORMat`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:FORMat {BINary|HEX} + - TRIGger:A:CAN:FORMat? + + **Info:** + - ``BINary`` specifies binary as the CAN data format. + - ``HEX`` specifies hexadecimal as the CAN data format. + """ + return self._format + + @property + def frametype(self) -> TriggerACanFrametype: + """Return the ``TRIGger:A:CAN:FRAMEtype`` command. + + **Description:** + - CAN option only: This command sets or queries the CAN trigger frame type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:FRAMEtype?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:FRAMEtype?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:FRAMEtype value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:FRAMEtype {DATA|REMote|ERROR|OVERLOAD} + - TRIGger:A:CAN:FRAMEtype? + + **Info:** + - ``DATA`` specifies a data frame type. + - ``REMote`` specifies a remote frame type. + - ``ERROR`` specifies an error frame type. + - ``OVERLOAD`` specifies an overload frame type. + """ + return self._frametype + + @property + def identifier(self) -> TriggerACanIdentifier: + """Return the ``TRIGger:A:CAN:IDENTifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:IDENTifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:IDENTifier?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.mode``: The ``TRIGger:A:CAN:IDENTifier:MODe`` command. + - ``.value``: The ``TRIGger:A:CAN:IDENTifier:VALue`` command. + """ + return self._identifier + + @property + def probe(self) -> TriggerACanProbe: + """Return the ``TRIGger:A:CAN:PROBE`` command. + + **Description:** + - CAN option only: This command sets or queries the probing method used to probe the CAN + signal. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:PROBE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:PROBE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:PROBE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:PROBE {CANL|CANH|DIFFerential|TX|RX} + - TRIGger:A:CAN:PROBE? + + **Info:** + - ``CANL`` specifies that the probing method is CANL. + - ``CANH`` specifies that the probing method is CANH. + - ``DIFFerential`` specifies that the probing method used is differential. + - ``TX`` specifies that the probing method is TX. + - ``RX`` specifies that the probing method is RX. + """ + return self._probe + + @property + def speed(self) -> TriggerACanSpeed: + """Return the ``TRIGger:A:CAN:SPEed`` command. + + **Description:** + - CAN option only: This command sets or queries the bit rate of the CAN system. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN:SPEed?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN:SPEed?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:CAN:SPEed value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:CAN:SPEed + - TRIGger:A:CAN:SPEed? + + **Info:** + - ```` specifies the bit rate of the CAN system. Possible values are 1M, 800K, + 500K, 250K, 125K, 100K, 83.3K, 62,5K, 50K, 33K, 20K, and 10K. + """ + return self._speed + + +class TriggerABusUsbTokentype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:TOKENType`` command. + + **Description:** + - This command sets or queries the Token Type when USB Trigger condition is set to Token + (Address) Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:TOKENType?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:TOKENType?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:TOKENType value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:TOKENType {ANY|IN|OUT|SOF|SETUP} + - TRIGger:A:BUS:USB:TOKENType? + + **Info:** + - ``ANY`` specifies ANY (XX01) token type. + - ``IN`` specifies IN (1001) token type. + - ``OUT`` specifies OUT (0001) token type. + - ``SOF`` specifies SOF (0101) token type. + - ``SETUP`` specifies SETUP (1101) token type. + """ + + +class TriggerABusUsbSplitSeValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. + + **Description:** + - This command sets or queries the Start/End value for the USB bus trigger on split token + field. The USB Speed is set to High (480 Mbps) and the Trigger condition is set to Special + Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SE:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SE:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:SE:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:SE:VALue {DONTCare|FULLSPeed|LOWSPeed|ISOMID|ISOEND|ISOSTART|ISOALL} + - TRIGger:A:BUS:USB:SPLIT:SE:VALue? + + **Info:** + - ``DONTCARE`` specifies the Start/End bit value as don't care (X). + - ``FULLSPeed`` specifies the Start/End bit value as Control/Bulk/Interrupt Full Speed + device (0X). + - ``LOWSPeed`` specifies the Start/End bit value as Control/Bulk/Interrupt Low Speed device + (1X). + - ``ISOMID`` specifies the Start/End bit value as Isochronous Data is Middle (00). + - ``ISOEND`` specifies the Start/End bit value as Isochronous Data is End (01). + - ``ISOSTART`` specifies the Start/End bit value as Isochronous Data is Start (10). + - ``ISOALL`` specifies the Start/End bit value as Isochronous Data is All (11). + """ # noqa: E501 + + +class TriggerABusUsbSplitSe(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SE?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._value = TriggerABusUsbSplitSeValue(device, f"{self._cmd_syntax}:VALue") + + @property + def value(self) -> TriggerABusUsbSplitSeValue: + """Return the ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. + + **Description:** + - This command sets or queries the Start/End value for the USB bus trigger on split + token field. The USB Speed is set to High (480 Mbps) and the Trigger condition is set + to Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SE:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:SE:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:SE:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:SE:VALue {DONTCare|FULLSPeed|LOWSPeed|ISOMID|ISOEND|ISOSTART|ISOALL} + - TRIGger:A:BUS:USB:SPLIT:SE:VALue? + + **Info:** + - ``DONTCARE`` specifies the Start/End bit value as don't care (X). + - ``FULLSPeed`` specifies the Start/End bit value as Control/Bulk/Interrupt Full Speed + device (0X). + - ``LOWSPeed`` specifies the Start/End bit value as Control/Bulk/Interrupt Low Speed + device (1X). + - ``ISOMID`` specifies the Start/End bit value as Isochronous Data is Middle (00). + - ``ISOEND`` specifies the Start/End bit value as Isochronous Data is End (01). + - ``ISOSTART`` specifies the Start/End bit value as Isochronous Data is Start (10). + - ``ISOALL`` specifies the Start/End bit value as Isochronous Data is All (11). + """ # noqa: E501 + return self._value + + +class TriggerABusUsbSplitScValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. + + **Description:** + - This command sets or queries the Start/Complete value for the USB bus trigger on split + token field. The USB Speed is set to High (480 Mbps) and the Trigger condition is set to + Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SC:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SC:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:SC:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:SC:VALue {CSPLIT|SSPLIT|DONTcare} + - TRIGger:A:BUS:USB:SPLIT:SC:VALue? + + **Info:** + - ``DONTcare`` specifies the Start/Complete value as don't care (X). + - ``SSPLIT`` specifies the Start/Complete value as Start (SSPLIT) (0). + - ``CSPLIT`` specifies the Start/Complete value as Complete (CSPLIT)(1). + """ + + +class TriggerABusUsbSplitSc(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:SC`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SC?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SC?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._value = TriggerABusUsbSplitScValue(device, f"{self._cmd_syntax}:VALue") + + @property + def value(self) -> TriggerABusUsbSplitScValue: + """Return the ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. + + **Description:** + - This command sets or queries the Start/Complete value for the USB bus trigger on split + token field. The USB Speed is set to High (480 Mbps) and the Trigger condition is set + to Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SC:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:SC:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:SC:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:SC:VALue {CSPLIT|SSPLIT|DONTcare} + - TRIGger:A:BUS:USB:SPLIT:SC:VALue? + + **Info:** + - ``DONTcare`` specifies the Start/Complete value as don't care (X). + - ``SSPLIT`` specifies the Start/Complete value as Start (SSPLIT) (0). + - ``CSPLIT`` specifies the Start/Complete value as Complete (CSPLIT)(1). + """ + return self._value + + +class TriggerABusUsbSplitPortValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. + + **Description:** + - This command sets or queries the port address for the USB bus trigger on split token + field. The USB Speed is set to High (480 Mbps) and the Trigger condition is set to Special + Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:PORT:VALue + - TRIGger:A:BUS:USB:SPLIT:PORT:VALue? + + **Info:** + - ```` specifies the port address in the specified valid format. + """ + + +class TriggerABusUsbSplitPortFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat`` command. + + **Description:** + - This command sets the port address format for the USB bus trigger on split token field. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:PORT:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:SPLIT:PORT:FORMat? + + **Info:** + - ``BINary`` sets the port address format to Binary. + - ``HEXadecimal`` sets the port address format to Hexadecimal. + """ + + +class TriggerABusUsbSplitPort(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:PORT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusUsbSplitPortFormat(device, f"{self._cmd_syntax}:FORMat") + self._value = TriggerABusUsbSplitPortValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusUsbSplitPortFormat: + """Return the ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat`` command. + + **Description:** + - This command sets the port address format for the USB bus trigger on split token + field. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:PORT:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:SPLIT:PORT:FORMat? + + **Info:** + - ``BINary`` sets the port address format to Binary. + - ``HEXadecimal`` sets the port address format to Hexadecimal. + """ + return self._format + + @property + def value(self) -> TriggerABusUsbSplitPortValue: + """Return the ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. + + **Description:** + - This command sets or queries the port address for the USB bus trigger on split token + field. The USB Speed is set to High (480 Mbps) and the Trigger condition is set to + Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:PORT:VALue + - TRIGger:A:BUS:USB:SPLIT:PORT:VALue? + + **Info:** + - ```` specifies the port address in the specified valid format. + """ + return self._value + + +class TriggerABusUsbSplitHubValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. + + **Description:** + - This command sets or queries the hub address of the USB bus trigger on split token field. + The USB Speed is set to High (480 Mbps) and the Trigger condition is set to Special + Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:HUB:VALue + - TRIGger:A:BUS:USB:SPLIT:HUB:VALue? + + **Info:** + - ```` specifies the hub address in the specified valid format. + """ + + +class TriggerABusUsbSplitHubFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat`` command. + + **Description:** + - This command sets or queries the format for the hub address of the USB bus trigger on + split token field. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:HUB:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:SPLIT:HUB:FORMat? + + **Info:** + - ``BINary`` specifies hub address format as Binary. + - ``HEXadecimal`` specifies hub address format as Hexadecimal. + """ + + +class TriggerABusUsbSplitHub(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:HUB`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusUsbSplitHubFormat(device, f"{self._cmd_syntax}:FORMat") + self._value = TriggerABusUsbSplitHubValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusUsbSplitHubFormat: + """Return the ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat`` command. + + **Description:** + - This command sets or queries the format for the hub address of the USB bus trigger on + split token field. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:HUB:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:SPLIT:HUB:FORMat? + + **Info:** + - ``BINary`` specifies hub address format as Binary. + - ``HEXadecimal`` specifies hub address format as Hexadecimal. + """ + return self._format + + @property + def value(self) -> TriggerABusUsbSplitHubValue: + """Return the ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. + + **Description:** + - This command sets or queries the hub address of the USB bus trigger on split token + field. The USB Speed is set to High (480 Mbps) and the Trigger condition is set to + Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:HUB:VALue + - TRIGger:A:BUS:USB:SPLIT:HUB:VALue? + + **Info:** + - ```` specifies the hub address in the specified valid format. + """ + return self._value + + +class TriggerABusUsbSplitEtValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. + + **Description:** + - This command sets or queries the Endpoint Type value for SPLIT token. The USB Speed is set + to High (480 Mbps) and the Trigger condition is set to Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:ET:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:ET:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:ET:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:ET:VALue {DONTcare|CONTRol|ISOchronous|BULK|INTERRUPT} + - TRIGger:A:BUS:USB:SPLIT:ET:VALue? + + **Info:** + - ``DONTCare`` specifies the End Point Type value as don't care (XX). + - ``CONTRol`` specifies the End Point Type value as Control (00). + - ``ISOchronous`` specifies the End Point Type value as Isochronous (01). + - ``BULK`` specifies the End Point Type value as Bulk (10). + - ``INTERRUPT`` specifies the End Point Type value as Interrupt (11). + """ + + +class TriggerABusUsbSplitEt(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT:ET`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:ET?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:ET?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._value = TriggerABusUsbSplitEtValue(device, f"{self._cmd_syntax}:VALue") + + @property + def value(self) -> TriggerABusUsbSplitEtValue: + """Return the ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. + + **Description:** + - This command sets or queries the Endpoint Type value for SPLIT token. The USB Speed is + set to High (480 Mbps) and the Trigger condition is set to Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:ET:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:ET:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPLIT:ET:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPLIT:ET:VALue {DONTcare|CONTRol|ISOchronous|BULK|INTERRUPT} + - TRIGger:A:BUS:USB:SPLIT:ET:VALue? + + **Info:** + - ``DONTCare`` specifies the End Point Type value as don't care (XX). + - ``CONTRol`` specifies the End Point Type value as Control (00). + - ``ISOchronous`` specifies the End Point Type value as Isochronous (01). + - ``BULK`` specifies the End Point Type value as Bulk (10). + - ``INTERRUPT`` specifies the End Point Type value as Interrupt (11). + """ + return self._value + + +class TriggerABusUsbSplit(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPLIT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.et``: The ``TRIGger:A:BUS:USB:SPLIT:ET`` command tree. + - ``.hub``: The ``TRIGger:A:BUS:USB:SPLIT:HUB`` command tree. + - ``.port``: The ``TRIGger:A:BUS:USB:SPLIT:PORT`` command tree. + - ``.sc``: The ``TRIGger:A:BUS:USB:SPLIT:SC`` command tree. + - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._et = TriggerABusUsbSplitEt(device, f"{self._cmd_syntax}:ET") + self._hub = TriggerABusUsbSplitHub(device, f"{self._cmd_syntax}:HUB") + self._port = TriggerABusUsbSplitPort(device, f"{self._cmd_syntax}:PORT") + self._sc = TriggerABusUsbSplitSc(device, f"{self._cmd_syntax}:SC") + self._se = TriggerABusUsbSplitSe(device, f"{self._cmd_syntax}:SE") + + @property + def et(self) -> TriggerABusUsbSplitEt: + """Return the ``TRIGger:A:BUS:USB:SPLIT:ET`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:ET?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:ET?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:ET:VALue`` command. + """ + return self._et + + @property + def hub(self) -> TriggerABusUsbSplitHub: + """Return the ``TRIGger:A:BUS:USB:SPLIT:HUB`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:HUB?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:HUB:VALue`` command. + """ + return self._hub + + @property + def port(self) -> TriggerABusUsbSplitPort: + """Return the ``TRIGger:A:BUS:USB:SPLIT:PORT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:PORT?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:PORT:VALue`` command. + """ + return self._port + + @property + def sc(self) -> TriggerABusUsbSplitSc: + """Return the ``TRIGger:A:BUS:USB:SPLIT:SC`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SC?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SC?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SC:VALue`` command. + """ + return self._sc + + @property + def se(self) -> TriggerABusUsbSplitSe: + """Return the ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT:SE?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.value``: The ``TRIGger:A:BUS:USB:SPLIT:SE:VALue`` command. + """ + return self._se + + +class TriggerABusUsbSpecialtype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SPECIALType`` command. + + **Description:** + - This command sets or queries the PID value when USB bus Trigger on condition is set to + Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPECIALType?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPECIALType?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:SPECIALType value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPECIALType {ANY|ERR|PING|PRE|RESERVED|SPLIT} + - TRIGger:A:BUS:USB:SPECIALType? + + **Info:** + - ``ANY`` specifies Any (XX00) PID value. + - ``ERR`` specifies ERR (1100) PID value. + - ``PING`` specifies PING (0100) PID value. + - ``PRE`` specifies PRE (1100) PID value. + - ``RESERVED`` specifies Reserved (0000) PID value. + - ``SPLIT`` specifies Split (1000) PID value. + """ + + +class TriggerABusUsbSofFramenumber(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. + + **Description:** + - This command sets frame number for the USB bus trigger when the condition is Start of + Frame (SOF). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SOF:FRAMENUMber?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SOF:FRAMENUMber?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SOF:FRAMENUMber value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SOF:FRAMENUMber + - TRIGger:A:BUS:USB:SOF:FRAMENUMber? + + **Info:** + - ```` specifies the frame number for the SOF in the specified valid format. + """ + + +class TriggerABusUsbSofFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SOF:FORMat`` command. + + **Description:** + - This command sets or queries the format for the Start of Frame frame number. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SOF:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SOF:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:SOF:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SOF:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:USB:SOF:FORMat? + + **Info:** + - ``BINary`` specifies the Start of Frame frame number format as Binary. + - ``HEXadecimal`` specifies the Start of Frame frame number format as Hexadecimal. + - ``SYMBolic`` specifies the Start of Frame frame number format as Symbolic. + """ + + +class TriggerABusUsbSof(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:SOF`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SOF?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SOF?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:USB:SOF:FORMat`` command. + - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusUsbSofFormat(device, f"{self._cmd_syntax}:FORMat") + self._framenumber = TriggerABusUsbSofFramenumber(device, f"{self._cmd_syntax}:FRAMENUMber") + + @property + def format(self) -> TriggerABusUsbSofFormat: + """Return the ``TRIGger:A:BUS:USB:SOF:FORMat`` command. + + **Description:** + - This command sets or queries the format for the Start of Frame frame number. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SOF:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SOF:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SOF:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SOF:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:USB:SOF:FORMat? + + **Info:** + - ``BINary`` specifies the Start of Frame frame number format as Binary. + - ``HEXadecimal`` specifies the Start of Frame frame number format as Hexadecimal. + - ``SYMBolic`` specifies the Start of Frame frame number format as Symbolic. + """ + return self._format + + @property + def framenumber(self) -> TriggerABusUsbSofFramenumber: + """Return the ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. + + **Description:** + - This command sets frame number for the USB bus trigger when the condition is Start of + Frame (SOF). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SOF:FRAMENUMber?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:SOF:FRAMENUMber?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SOF:FRAMENUMber value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SOF:FRAMENUMber + - TRIGger:A:BUS:USB:SOF:FRAMENUMber? + + **Info:** + - ```` specifies the frame number for the SOF in the specified valid format. + """ + return self._framenumber + + +class TriggerABusUsbQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:QUAlifier`` command. + + **Description:** + - This command sets or queries the USB bus trigger qualifier for address, endpoint, and + data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:QUAlifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:QUAlifier?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:QUAlifier value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:QUAlifier {EQUal|INrange|LESSEQual|MOREEQual|OUTrange|UNEQual| LESSThan|MOREThan} + - TRIGger:A:BUS:USB:QUAlifier? + + **Info:** + - ``EQUal`` specifies = trigger qualifier. + - ``INrange`` specifies Inside Range trigger qualifier. + - ``LESSEQual`` specifies <= trigger qualifier. + - ``MOREEQual`` specifies >= trigger qualifier. + - ``OUTrange`` specifies = trigger qualifier. + - ``UNEQual`` specifies != trigger qualifier. + - ``LESSThan`` specifies < trigger qualifier. + - ``MOREThan`` specifies > trigger qualifier. + """ # noqa: E501 + + +class TriggerABusUsbPatternSymbolPlusItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the specified character bit pattern (positive disparity) when the Trigger + Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS? + + **Info:** + - ```` is the specified character bit pattern. + """ + + +class TriggerABusUsbPatternSymbolMinusItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the specified character bit pattern (negative disparity) when the Trigger + Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:SYMbol:MINus + - TRIGger:A:BUS:USB:PATtern:SYMbol:MINus? + + **Info:** + - ```` is the specified character bit pattern. + """ + + +class TriggerABusUsbPatternSymbol(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:SYMbol?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:PATtern:SYMbol?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.minus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus: Dict[int, TriggerABusUsbPatternSymbolMinusItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusUsbPatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") + ) + self._plus: Dict[int, TriggerABusUsbPatternSymbolPlusItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusUsbPatternSymbolPlusItem(device, f"{self._cmd_syntax}:PLUS{x}") + ) + + @property + def minus(self) -> Dict[int, TriggerABusUsbPatternSymbolMinusItem]: + """Return the ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the specified character bit pattern (negative disparity) when the + Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:SYMbol:MINus + - TRIGger:A:BUS:USB:PATtern:SYMbol:MINus? + + **Info:** + - ```` is the specified character bit pattern. + """ + return self._minus + + @property + def plus(self) -> Dict[int, TriggerABusUsbPatternSymbolPlusItem]: + """Return the ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the specified character bit pattern (positive disparity) when the + Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS? + + **Info:** + - ```` is the specified character bit pattern. + """ + return self._plus + + +class TriggerABusUsbPatternOrderedset(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:PATtern:ORDERedset`` command. + + **Description:** + - This command sets or queries the state of triggering on an ordered set. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:ORDERedset?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:ORDERedset?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:ORDERedset value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:ORDERedset {OFF|ON|0|1} + - TRIGger:A:BUS:USB:PATtern:ORDERedset? + + **Info:** + - ``OFF`` disables triggering on an ordered set. + - ``ON`` enables triggering on an ordered set. + - ``0`` disables triggering on an ordered set. + - ``1`` enables triggering on an ordered set. + """ + + +class TriggerABusUsbPatternNumsymbols(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:PATtern:NUMSymbols`` command. + + **Description:** + - Sets or queries the number of symbols to trigger on when USB trigger type is in pattern + mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:NUMSymbols?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:NUMSymbols?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:NUMSymbols value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:NUMSymbols + - TRIGger:A:BUS:USB:PATtern:NUMSymbols? + """ + + +class TriggerABusUsbPatternCharItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:PATtern:CHAR`` command. + + **Description:** + - Sets or queries the specified character when the Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:CHAR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:PATtern:CHAR?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:CHAR + - TRIGger:A:BUS:USB:PATtern:CHAR? + + **Info:** + - ```` is the specified character. + """ + + +class TriggerABusUsbPattern(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:PATtern?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.char``: The ``TRIGger:A:BUS:USB:PATtern:CHAR`` command. + - ``.numsymbols``: The ``TRIGger:A:BUS:USB:PATtern:NUMSymbols`` command. + - ``.orderedset``: The ``TRIGger:A:BUS:USB:PATtern:ORDERedset`` command. + - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._char: Dict[int, TriggerABusUsbPatternCharItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusUsbPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") + ) + self._numsymbols = TriggerABusUsbPatternNumsymbols(device, f"{self._cmd_syntax}:NUMSymbols") + self._orderedset = TriggerABusUsbPatternOrderedset(device, f"{self._cmd_syntax}:ORDERedset") + self._symbol = TriggerABusUsbPatternSymbol(device, f"{self._cmd_syntax}:SYMbol") + + @property + def char(self) -> Dict[int, TriggerABusUsbPatternCharItem]: + """Return the ``TRIGger:A:BUS:USB:PATtern:CHAR`` command. + + **Description:** + - Sets or queries the specified character when the Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:CHAR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:CHAR + - TRIGger:A:BUS:USB:PATtern:CHAR? + + **Info:** + - ```` is the specified character. + """ + return self._char + + @property + def numsymbols(self) -> TriggerABusUsbPatternNumsymbols: + """Return the ``TRIGger:A:BUS:USB:PATtern:NUMSymbols`` command. + + **Description:** + - Sets or queries the number of symbols to trigger on when USB trigger type is in + pattern mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:NUMSymbols?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:NUMSymbols?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:NUMSymbols value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:NUMSymbols + - TRIGger:A:BUS:USB:PATtern:NUMSymbols? + """ + return self._numsymbols + + @property + def orderedset(self) -> TriggerABusUsbPatternOrderedset: + """Return the ``TRIGger:A:BUS:USB:PATtern:ORDERedset`` command. + + **Description:** + - This command sets or queries the state of triggering on an ordered set. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:ORDERedset?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:ORDERedset?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:ORDERedset value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:PATtern:ORDERedset {OFF|ON|0|1} + - TRIGger:A:BUS:USB:PATtern:ORDERedset? + + **Info:** + - ``OFF`` disables triggering on an ordered set. + - ``ON`` enables triggering on an ordered set. + - ``0`` disables triggering on an ordered set. + - ``1`` enables triggering on an ordered set. + """ + return self._orderedset + + @property + def symbol(self) -> TriggerABusUsbPatternSymbol: + """Return the ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:PATtern:SYMbol?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.minus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol:PLUS`` command. + """ + return self._symbol + + +class TriggerABusUsbHandshaketype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:HANDShaketype`` command. + + **Description:** + - This command sets or queries the handshake type when USB bus trigger on condition is set + to Handshake Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:HANDShaketype?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:HANDShaketype?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:HANDShaketype value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:HANDShaketype {ACK|ANY|NAK|NYET|STALL} + - TRIGger:A:BUS:USB:HANDShaketype? + + **Info:** + - ``ACK`` specifies the handshake type as Acknowledge (XX10). + - ``ANY`` specifies the handshake type as Any (0010). + - ``NAK`` specifies the handshake type as Negative Acknowledge (1010). + - ``NYET`` specifies the handshake type as No response Yet (0110). + - ``STALL`` specifies the handshake type as Stall (1110). + """ + + +class TriggerABusUsbFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:FORMat`` command. + + **Description:** + - Sets or queries the pattern editing format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:FORMat {CHAR|SYMbol} + - TRIGger:A:BUS:USB:FORMat? + + **Info:** + - ``CHAR`` indicates that the pattern editing format is set to character. + - ``SYMBOL`` indicates that the pattern editing format is set to symbol. + """ + + +class TriggerABusUsbErrtype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ERRTYPE`` command. + + **Description:** + - This command sets or queries the error type when USB bus trigger on condition is set to + Error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ERRTYPE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:ERRTYPE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ERRTYPE {BITSTUFFing|CRC5|CRC16|PID} + - TRIGger:A:BUS:USB:ERRTYPE? + + **Info:** + - ``BITSTUFFing`` specifies the error type Bit Stuffing . + - ``CRC5`` specifies the error type as Token CRC5 (Cyclic Redundancy Check 5). + - ``CRC16`` specifies the error type as Data CRC16 (Cyclic Redundancy Check 16). + - ``PID`` specifies the error type as PID Check Bits. + """ + + +class TriggerABusUsbError(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ERROR`` command. + + **Description:** + - Sets or queries whether the oscilloscope will trigger on a character error or a disparity + error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ERROR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ERROR?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:ERROR value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:USB:ERROR? + + **Info:** + - ``CHARACTER`` sets the oscilloscope to trigger on a character error. + - ``DISPARITY`` sets the oscilloscope to trigger on a disparity error. + """ + + +class TriggerABusUsbEndpointValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. + + **Description:** + - This command sets or queries the endpoint value for normal token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ENDPoint:VALue + - TRIGger:A:BUS:USB:ENDPoint:VALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + symbolic). + """ + + +class TriggerABusUsbEndpointHivalue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ENDPoint:HIVALue`` command. + + **Description:** + - This command sets or queries the endpoint value for data token to be used with in range + and out of range qualifiers. The VALue and HIVALue set a range that the INrange and + OUTrange qualifiers used to decide when to trigger. For example, if the QUALIFIER is set + to INrange, and the address is within the range set by VALue and HIVALue, then a trigger + can be generated. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:HIVALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:HIVALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:HIVALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ENDPoint:HIVALue + - TRIGger:A:BUS:USB:ENDPoint:HIVALue? + + **Info:** + - ```` specifies the endpoint value in the specified valid format (binary, hex, or + symbolic). + """ + + +class TriggerABusUsbEndpointFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ENDPoint:FORMat`` command. + + **Description:** + - This command sets or queries the endpoint format for data token to be used with in range + and out of range qualifiers. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ENDPoint:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:ENDPoint:FORMat? + + **Info:** + - ``BINary`` specifies the endpoint format for data token as Binary. + - ``HEXadecimal`` specifies the endpoint format for data token as Hexadecimal. + """ + + +class TriggerABusUsbEndpoint(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ENDPoint`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ENDPoint?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:USB:ENDPoint:FORMat`` command. + - ``.hivalue``: The ``TRIGger:A:BUS:USB:ENDPoint:HIVALue`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusUsbEndpointFormat(device, f"{self._cmd_syntax}:FORMat") + self._hivalue = TriggerABusUsbEndpointHivalue(device, f"{self._cmd_syntax}:HIVALue") + self._value = TriggerABusUsbEndpointValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusUsbEndpointFormat: + """Return the ``TRIGger:A:BUS:USB:ENDPoint:FORMat`` command. + + **Description:** + - This command sets or queries the endpoint format for data token to be used with in + range and out of range qualifiers. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ENDPoint:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:ENDPoint:FORMat? + + **Info:** + - ``BINary`` specifies the endpoint format for data token as Binary. + - ``HEXadecimal`` specifies the endpoint format for data token as Hexadecimal. + """ + return self._format + + @property + def hivalue(self) -> TriggerABusUsbEndpointHivalue: + """Return the ``TRIGger:A:BUS:USB:ENDPoint:HIVALue`` command. + + **Description:** + - This command sets or queries the endpoint value for data token to be used with in + range and out of range qualifiers. The VALue and HIVALue set a range that the INrange + and OUTrange qualifiers used to decide when to trigger. For example, if the QUALIFIER + is set to INrange, and the address is within the range set by VALue and HIVALue, then + a trigger can be generated. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:HIVALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:HIVALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:HIVALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ENDPoint:HIVALue + - TRIGger:A:BUS:USB:ENDPoint:HIVALue? + + **Info:** + - ```` specifies the endpoint value in the specified valid format (binary, hex, + or symbolic). + """ + return self._hivalue + + @property + def value(self) -> TriggerABusUsbEndpointValue: + """Return the ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. + + **Description:** + - This command sets or queries the endpoint value for normal token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ENDPoint:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ENDPoint:VALue + - TRIGger:A:BUS:USB:ENDPoint:VALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + symbolic). + """ + return self._value + + +class TriggerABusUsbDisparity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DISParity`` command. + + **Description:** + - Sets or queries the type of disparity that the bus will trigger on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DISParity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DISParity?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DISParity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DISParity {NEGAtive|POSITIVe|EITher} + - TRIGger:A:BUS:USB:DISParity? + + **Info:** + - ``NEGative`` specifies negative disparity. + - ``POSITIVe`` specifies positive disparity. + - ``EITher`` specifies either disparity. + """ + + +class TriggerABusUsbDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DATa:VALue`` command. + + **Description:** + - This command sets or queries the USB bus trigger data value for data token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:VALue + - TRIGger:A:BUS:USB:DATa:VALue? + + **Info:** + - ```` specifies the data value. The valid characters are 0, 1, or X representing a + binary number. + """ + + +class TriggerABusUsbDataType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DATa:TYPe`` command. + + **Description:** + - This command sets or queries the data packet type when USB bus trigger condition is Data + Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:TYPe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:TYPe {ANY|DATA|MDATA} + - TRIGger:A:BUS:USB:DATa:TYPe? + + **Info:** + - ``ANY`` specifies the data packet type to ANY. + - ``DATA0`` specifies the data packet type to DATA0. + - ``DATA1`` specifies the data packet type to DATA1. + - ``DATA2`` specifies the data packet type to DATA2. + - ``MDATA`` specifies the data packet type to MDATA. + """ + + +class TriggerABusUsbDataSize(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the number of contiguous data bytes to USB bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:SIZe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:SIZe + - TRIGger:A:BUS:USB:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. + """ + + +class TriggerABusUsbDataOffset(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DATa:OFFSet`` command. + + **Description:** + - This command sets or queries data offset for the USB bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:OFFSet?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:OFFSet?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:OFFSet value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:OFFSet {|DONTCare} + - TRIGger:A:BUS:USB:DATa:OFFSet? + + **Info:** + - ```` specifies the data offset in bytes. + - ``DONTCare`` specifies the data offset as Don't Care. + """ + + +class TriggerABusUsbDataHivalue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DATa:HIVALue`` command. + + **Description:** + - This command sets or queries data value for data token to be used with In Range and Out of + Range qualifiers. The Trigger on Condition is set to Data Packet. The VALue and HIVALue + set a range that the INrange and OUTrange qualifiers used to decide when to trigger. For + example, if the QUALIFER is set to INrange, and the address is within the range set by + VALue and HIVALue, then a trigger can be generated. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:HIVALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:HIVALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:HIVALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:HIVALue + - TRIGger:A:BUS:USB:DATa:HIVALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + decimal). + """ + + +class TriggerABusUsbDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the data format for the USB bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format for the USB bus trigger as Binary. + - ``HEXadecimal`` specifies the data format for the USB bus trigger as Hexadecimal. + """ + + +class TriggerABusUsbData(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:USB:DATa:FORMat`` command. + - ``.hivalue``: The ``TRIGger:A:BUS:USB:DATa:HIVALue`` command. + - ``.offset``: The ``TRIGger:A:BUS:USB:DATa:OFFSet`` command. + - ``.size``: The ``TRIGger:A:BUS:USB:DATa:SIZe`` command. + - ``.type``: The ``TRIGger:A:BUS:USB:DATa:TYPe`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusUsbDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._hivalue = TriggerABusUsbDataHivalue(device, f"{self._cmd_syntax}:HIVALue") + self._offset = TriggerABusUsbDataOffset(device, f"{self._cmd_syntax}:OFFSet") + self._size = TriggerABusUsbDataSize(device, f"{self._cmd_syntax}:SIZe") + self._type = TriggerABusUsbDataType(device, f"{self._cmd_syntax}:TYPe") + self._value = TriggerABusUsbDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusUsbDataFormat: + """Return the ``TRIGger:A:BUS:USB:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the data format for the USB bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:USB:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format for the USB bus trigger as Binary. + - ``HEXadecimal`` specifies the data format for the USB bus trigger as Hexadecimal. + """ + return self._format + + @property + def hivalue(self) -> TriggerABusUsbDataHivalue: + """Return the ``TRIGger:A:BUS:USB:DATa:HIVALue`` command. + + **Description:** + - This command sets or queries data value for data token to be used with In Range and + Out of Range qualifiers. The Trigger on Condition is set to Data Packet. The VALue and + HIVALue set a range that the INrange and OUTrange qualifiers used to decide when to + trigger. For example, if the QUALIFER is set to INrange, and the address is within the + range set by VALue and HIVALue, then a trigger can be generated. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:HIVALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:HIVALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:DATa:HIVALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:HIVALue + - TRIGger:A:BUS:USB:DATa:HIVALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + decimal). + """ + return self._hivalue + + @property + def offset(self) -> TriggerABusUsbDataOffset: + """Return the ``TRIGger:A:BUS:USB:DATa:OFFSet`` command. + + **Description:** + - This command sets or queries data offset for the USB bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:OFFSet?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:OFFSet?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:DATa:OFFSet value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:OFFSet {|DONTCare} + - TRIGger:A:BUS:USB:DATa:OFFSet? + + **Info:** + - ```` specifies the data offset in bytes. + - ``DONTCare`` specifies the data offset as Don't Care. + """ + return self._offset + + @property + def size(self) -> TriggerABusUsbDataSize: + """Return the ``TRIGger:A:BUS:USB:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the number of contiguous data bytes to USB bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:SIZe + - TRIGger:A:BUS:USB:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. + """ + return self._size + + @property + def type(self) -> TriggerABusUsbDataType: + """Return the ``TRIGger:A:BUS:USB:DATa:TYPe`` command. + + **Description:** + - This command sets or queries the data packet type when USB bus trigger condition is + Data Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:TYPe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:TYPe {ANY|DATA|MDATA} + - TRIGger:A:BUS:USB:DATa:TYPe? + + **Info:** + - ``ANY`` specifies the data packet type to ANY. + - ``DATA0`` specifies the data packet type to DATA0. + - ``DATA1`` specifies the data packet type to DATA1. + - ``DATA2`` specifies the data packet type to DATA2. + - ``MDATA`` specifies the data packet type to MDATA. + """ + return self._type + + @property + def value(self) -> TriggerABusUsbDataValue: + """Return the ``TRIGger:A:BUS:USB:DATa:VALue`` command. + + **Description:** + - This command sets or queries the USB bus trigger data value for data token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DATa:VALue + - TRIGger:A:BUS:USB:DATa:VALue? + + **Info:** + - ```` specifies the data value. The valid characters are 0, 1, or X + representing a binary number. + """ + return self._value + + +class TriggerABusUsbCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:CONDition`` command. + + **Description:** + - This command sets or returns the condition for a USB trigger, where x is the Trigger on + condition.. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CONDition {DATAPacket|EOP|ERROR|HANDSHAKEPacket|RESET|RESUME| SPECIALPacket|SUSPEND|SYNC|TOKENPacket} + - TRIGger:A:BUS:USB:CONDition? + + **Info:** + - ``DATAPacket`` sets the Trigger on condition to Data Packet. + - ``EOP`` sets the Trigger on condition to End of Packet. + - ``ERROR`` sets the Trigger on condition to Error. + - ``HANDSHAKEPacket`` sets the Trigger on condition to Handshake Packet. + - ``RESET`` sets the Trigger on condition to Reset. + - ``RESUME`` sets the Trigger on condition to Resume. + - ``SPECIALPacket`` sets the Trigger on condition to Special Packet. + - ``SUSPEND`` sets the Trigger on condition to Suspend. + - ``SYNC`` sets the Trigger on condition to Sync. + - ``TOKENPacket`` sets the Trigger on condition to Token (Address) Packet. + """ # noqa: E501 + + +class TriggerABusUsbCharacterSymbolPlus(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the Character bit pattern (positive disparity view) when the Trigger + Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS? + + **Info:** + - ```` is the character bit pattern. + """ + + +class TriggerABusUsbCharacterSymbolMinus(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the character bit pattern (negative disparity) when the Trigger Condition + is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus? + """ + + +class TriggerABusUsbCharacterSymbol(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter:SYMbol?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:CHARacter:SYMbol?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.minus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus = TriggerABusUsbCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") + self._plus = TriggerABusUsbCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") + + @property + def minus(self) -> TriggerABusUsbCharacterSymbolMinus: + """Return the ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the character bit pattern (negative disparity) when the Trigger + Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus? + """ + return self._minus + + @property + def plus(self) -> TriggerABusUsbCharacterSymbolPlus: + """Return the ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the Character bit pattern (positive disparity view) when the Trigger + Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS? + + **Info:** + - ```` is the character bit pattern. + """ + return self._plus + + +class TriggerABusUsbCharacterChar(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:CHARacter:CHAR`` command. + + **Description:** + - Sets or queries the USB character when the Trigger Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter:CHAR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:CHARacter:CHAR?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CHARacter:CHAR + - TRIGger:A:BUS:USB:CHARacter:CHAR? + """ + + +class TriggerABusUsbCharacter(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:CHARacter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:CHARacter?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.char``: The ``TRIGger:A:BUS:USB:CHARacter:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._char = TriggerABusUsbCharacterChar(device, f"{self._cmd_syntax}:CHAR") + self._symbol = TriggerABusUsbCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") + + @property + def char(self) -> TriggerABusUsbCharacterChar: + """Return the ``TRIGger:A:BUS:USB:CHARacter:CHAR`` command. + + **Description:** + - Sets or queries the USB character when the Trigger Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:CHAR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CHARacter:CHAR + - TRIGger:A:BUS:USB:CHARacter:CHAR? + """ + return self._char + + @property + def symbol(self) -> TriggerABusUsbCharacterSymbol: + """Return the ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:CHARacter:SYMbol?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.minus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol:PLUS`` command. + """ + return self._symbol + + +class TriggerABusUsbAddressValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. + + **Description:** + - This command sets or queries the address value for normal token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ADDress:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:ADDress:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ADDress:VALue + - TRIGger:A:BUS:USB:ADDress:VALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + symbolic). + """ + + +class TriggerABusUsbAddressHivalue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ADDress:HIVALue`` command. + + **Description:** + - This command sets or queries the address value for normal token to be used with In Range + and Out of Range qualifiers. The Trigger on Condition is set to Token (Address) Packet. + The VALue and HIVALue set a range that the INrange and OUTrange qualifiers used to decide + when to trigger. For example, if the QUALIFER is set to INrange, and the address is within + the range set by VALue and HIVALue, then a trigger can be generated. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress:HIVALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ADDress:HIVALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ADDress:HIVALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ADDress:HIVALue + - TRIGger:A:BUS:USB:ADDress:HIVALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + decimal). + """ + + +class TriggerABusUsbAddressFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ADDress:FORMat`` command. + + **Description:** + - This command sets or queries the address format for the USB bus trigger normal token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ADDress:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ADDress:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ADDress:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:USB:ADDress:FORMat? + + **Info:** + - ``BINary`` specifies the address format for the normal token as Binary. + - ``HEXadecimal`` specifies the address format for the normal token as Hexadecimal. + - ``SYMBolic`` specifies the address format for the normal token as Symbolic. + """ + + +class TriggerABusUsbAddress(SCPICmdRead): + """The ``TRIGger:A:BUS:USB:ADDress`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ADDress?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:USB:ADDress:FORMat`` command. + - ``.hivalue``: The ``TRIGger:A:BUS:USB:ADDress:HIVALue`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusUsbAddressFormat(device, f"{self._cmd_syntax}:FORMat") + self._hivalue = TriggerABusUsbAddressHivalue(device, f"{self._cmd_syntax}:HIVALue") + self._value = TriggerABusUsbAddressValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusUsbAddressFormat: + """Return the ``TRIGger:A:BUS:USB:ADDress:FORMat`` command. + + **Description:** + - This command sets or queries the address format for the USB bus trigger normal token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:ADDress:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ADDress:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ADDress:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:USB:ADDress:FORMat? + + **Info:** + - ``BINary`` specifies the address format for the normal token as Binary. + - ``HEXadecimal`` specifies the address format for the normal token as Hexadecimal. + - ``SYMBolic`` specifies the address format for the normal token as Symbolic. + """ + return self._format + + @property + def hivalue(self) -> TriggerABusUsbAddressHivalue: + """Return the ``TRIGger:A:BUS:USB:ADDress:HIVALue`` command. + + **Description:** + - This command sets or queries the address value for normal token to be used with In + Range and Out of Range qualifiers. The Trigger on Condition is set to Token (Address) + Packet. The VALue and HIVALue set a range that the INrange and OUTrange qualifiers + used to decide when to trigger. For example, if the QUALIFER is set to INrange, and + the address is within the range set by VALue and HIVALue, then a trigger can be + generated. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress:HIVALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:USB:ADDress:HIVALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ADDress:HIVALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ADDress:HIVALue + - TRIGger:A:BUS:USB:ADDress:HIVALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + decimal). + """ + return self._hivalue + + @property + def value(self) -> TriggerABusUsbAddressValue: + """Return the ``TRIGger:A:BUS:USB:ADDress:VALue`` command. + + **Description:** + - This command sets or queries the address value for normal token. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress:VALue?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ADDress:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:ADDress:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ADDress:VALue + - TRIGger:A:BUS:USB:ADDress:VALue? + + **Info:** + - ```` specifies the data value in the specified valid format (binary, hex, or + symbolic). + """ + return self._value + + +# pylint: disable=too-many-instance-attributes +class TriggerABusUsb(SCPICmdRead): + """The ``TRIGger:A:BUS:USB`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.address``: The ``TRIGger:A:BUS:USB:ADDress`` command tree. + - ``.character``: The ``TRIGger:A:BUS:USB:CHARacter`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:USB:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:USB:DATa`` command tree. + - ``.disparity``: The ``TRIGger:A:BUS:USB:DISParity`` command. + - ``.endpoint``: The ``TRIGger:A:BUS:USB:ENDPoint`` command tree. + - ``.error``: The ``TRIGger:A:BUS:USB:ERROR`` command. + - ``.errtype``: The ``TRIGger:A:BUS:USB:ERRTYPE`` command. + - ``.format``: The ``TRIGger:A:BUS:USB:FORMat`` command. + - ``.handshaketype``: The ``TRIGger:A:BUS:USB:HANDShaketype`` command. + - ``.pattern``: The ``TRIGger:A:BUS:USB:PATtern`` command tree. + - ``.qualifier``: The ``TRIGger:A:BUS:USB:QUAlifier`` command. + - ``.sof``: The ``TRIGger:A:BUS:USB:SOF`` command tree. + - ``.specialtype``: The ``TRIGger:A:BUS:USB:SPECIALType`` command. + - ``.split``: The ``TRIGger:A:BUS:USB:SPLIT`` command tree. + - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._address = TriggerABusUsbAddress(device, f"{self._cmd_syntax}:ADDress") + self._character = TriggerABusUsbCharacter(device, f"{self._cmd_syntax}:CHARacter") + self._condition = TriggerABusUsbCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerABusUsbData(device, f"{self._cmd_syntax}:DATa") + self._disparity = TriggerABusUsbDisparity(device, f"{self._cmd_syntax}:DISParity") + self._endpoint = TriggerABusUsbEndpoint(device, f"{self._cmd_syntax}:ENDPoint") + self._error = TriggerABusUsbError(device, f"{self._cmd_syntax}:ERROR") + self._errtype = TriggerABusUsbErrtype(device, f"{self._cmd_syntax}:ERRTYPE") + self._format = TriggerABusUsbFormat(device, f"{self._cmd_syntax}:FORMat") + self._handshaketype = TriggerABusUsbHandshaketype( + device, f"{self._cmd_syntax}:HANDShaketype" + ) + self._pattern = TriggerABusUsbPattern(device, f"{self._cmd_syntax}:PATtern") + self._qualifier = TriggerABusUsbQualifier(device, f"{self._cmd_syntax}:QUAlifier") + self._sof = TriggerABusUsbSof(device, f"{self._cmd_syntax}:SOF") + self._specialtype = TriggerABusUsbSpecialtype(device, f"{self._cmd_syntax}:SPECIALType") + self._split = TriggerABusUsbSplit(device, f"{self._cmd_syntax}:SPLIT") + self._tokentype = TriggerABusUsbTokentype(device, f"{self._cmd_syntax}:TOKENType") + + @property + def address(self) -> TriggerABusUsbAddress: + """Return the ``TRIGger:A:BUS:USB:ADDress`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ADDress?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ADDress?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:USB:ADDress:FORMat`` command. + - ``.hivalue``: The ``TRIGger:A:BUS:USB:ADDress:HIVALue`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:ADDress:VALue`` command. + """ + return self._address + + @property + def character(self) -> TriggerABusUsbCharacter: + """Return the ``TRIGger:A:BUS:USB:CHARacter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:CHARacter?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.char``: The ``TRIGger:A:BUS:USB:CHARacter:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:USB:CHARacter:SYMbol`` command tree. + """ + return self._character + + @property + def condition(self) -> TriggerABusUsbCondition: + """Return the ``TRIGger:A:BUS:USB:CONDition`` command. + + **Description:** + - This command sets or returns the condition for a USB trigger, where x is the Trigger + on condition.. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:CONDition {DATAPacket|EOP|ERROR|HANDSHAKEPacket|RESET|RESUME| SPECIALPacket|SUSPEND|SYNC|TOKENPacket} + - TRIGger:A:BUS:USB:CONDition? + + **Info:** + - ``DATAPacket`` sets the Trigger on condition to Data Packet. + - ``EOP`` sets the Trigger on condition to End of Packet. + - ``ERROR`` sets the Trigger on condition to Error. + - ``HANDSHAKEPacket`` sets the Trigger on condition to Handshake Packet. + - ``RESET`` sets the Trigger on condition to Reset. + - ``RESUME`` sets the Trigger on condition to Resume. + - ``SPECIALPacket`` sets the Trigger on condition to Special Packet. + - ``SUSPEND`` sets the Trigger on condition to Suspend. + - ``SYNC`` sets the Trigger on condition to Sync. + - ``TOKENPacket`` sets the Trigger on condition to Token (Address) Packet. + """ # noqa: E501 + return self._condition + + @property + def data(self) -> TriggerABusUsbData: + """Return the ``TRIGger:A:BUS:USB:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:USB:DATa:FORMat`` command. + - ``.hivalue``: The ``TRIGger:A:BUS:USB:DATa:HIVALue`` command. + - ``.offset``: The ``TRIGger:A:BUS:USB:DATa:OFFSet`` command. + - ``.size``: The ``TRIGger:A:BUS:USB:DATa:SIZe`` command. + - ``.type``: The ``TRIGger:A:BUS:USB:DATa:TYPe`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:DATa:VALue`` command. + """ + return self._data + + @property + def disparity(self) -> TriggerABusUsbDisparity: + """Return the ``TRIGger:A:BUS:USB:DISParity`` command. + + **Description:** + - Sets or queries the type of disparity that the bus will trigger on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:DISParity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:DISParity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:DISParity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:DISParity {NEGAtive|POSITIVe|EITher} + - TRIGger:A:BUS:USB:DISParity? + + **Info:** + - ``NEGative`` specifies negative disparity. + - ``POSITIVe`` specifies positive disparity. + - ``EITher`` specifies either disparity. + """ + return self._disparity + + @property + def endpoint(self) -> TriggerABusUsbEndpoint: + """Return the ``TRIGger:A:BUS:USB:ENDPoint`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ENDPoint?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ENDPoint?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:USB:ENDPoint:FORMat`` command. + - ``.hivalue``: The ``TRIGger:A:BUS:USB:ENDPoint:HIVALue`` command. + - ``.value``: The ``TRIGger:A:BUS:USB:ENDPoint:VALue`` command. + """ + return self._endpoint + + @property + def error(self) -> TriggerABusUsbError: + """Return the ``TRIGger:A:BUS:USB:ERROR`` command. + + **Description:** + - Sets or queries whether the oscilloscope will trigger on a character error or a + disparity error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ERROR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ERROR?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:ERROR value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:USB:ERROR? + + **Info:** + - ``CHARACTER`` sets the oscilloscope to trigger on a character error. + - ``DISPARITY`` sets the oscilloscope to trigger on a disparity error. + """ + return self._error + + @property + def errtype(self) -> TriggerABusUsbErrtype: + """Return the ``TRIGger:A:BUS:USB:ERRTYPE`` command. + + **Description:** + - This command sets or queries the error type when USB bus trigger on condition is set + to Error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:ERRTYPE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:ERRTYPE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:ERRTYPE {BITSTUFFing|CRC5|CRC16|PID} + - TRIGger:A:BUS:USB:ERRTYPE? + + **Info:** + - ``BITSTUFFing`` specifies the error type Bit Stuffing . + - ``CRC5`` specifies the error type as Token CRC5 (Cyclic Redundancy Check 5). + - ``CRC16`` specifies the error type as Data CRC16 (Cyclic Redundancy Check 16). + - ``PID`` specifies the error type as PID Check Bits. + """ + return self._errtype + + @property + def format(self) -> TriggerABusUsbFormat: + """Return the ``TRIGger:A:BUS:USB:FORMat`` command. + + **Description:** + - Sets or queries the pattern editing format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:FORMat {CHAR|SYMbol} + - TRIGger:A:BUS:USB:FORMat? + + **Info:** + - ``CHAR`` indicates that the pattern editing format is set to character. + - ``SYMBOL`` indicates that the pattern editing format is set to symbol. + """ + return self._format + + @property + def handshaketype(self) -> TriggerABusUsbHandshaketype: + """Return the ``TRIGger:A:BUS:USB:HANDShaketype`` command. + + **Description:** + - This command sets or queries the handshake type when USB bus trigger on condition is + set to Handshake Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:HANDShaketype?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:HANDShaketype?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:HANDShaketype value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:HANDShaketype {ACK|ANY|NAK|NYET|STALL} + - TRIGger:A:BUS:USB:HANDShaketype? + + **Info:** + - ``ACK`` specifies the handshake type as Acknowledge (XX10). + - ``ANY`` specifies the handshake type as Any (0010). + - ``NAK`` specifies the handshake type as Negative Acknowledge (1010). + - ``NYET`` specifies the handshake type as No response Yet (0110). + - ``STALL`` specifies the handshake type as Stall (1110). + """ + return self._handshaketype + + @property + def pattern(self) -> TriggerABusUsbPattern: + """Return the ``TRIGger:A:BUS:USB:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:PATtern?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.char``: The ``TRIGger:A:BUS:USB:PATtern:CHAR`` command. + - ``.numsymbols``: The ``TRIGger:A:BUS:USB:PATtern:NUMSymbols`` command. + - ``.orderedset``: The ``TRIGger:A:BUS:USB:PATtern:ORDERedset`` command. + - ``.symbol``: The ``TRIGger:A:BUS:USB:PATtern:SYMbol`` command tree. + """ + return self._pattern + + @property + def qualifier(self) -> TriggerABusUsbQualifier: + """Return the ``TRIGger:A:BUS:USB:QUAlifier`` command. + + **Description:** + - This command sets or queries the USB bus trigger qualifier for address, endpoint, and + data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:QUAlifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:QUAlifier?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:QUAlifier value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:QUAlifier {EQUal|INrange|LESSEQual|MOREEQual|OUTrange|UNEQual| LESSThan|MOREThan} + - TRIGger:A:BUS:USB:QUAlifier? + + **Info:** + - ``EQUal`` specifies = trigger qualifier. + - ``INrange`` specifies Inside Range trigger qualifier. + - ``LESSEQual`` specifies <= trigger qualifier. + - ``MOREEQual`` specifies >= trigger qualifier. + - ``OUTrange`` specifies = trigger qualifier. + - ``UNEQual`` specifies != trigger qualifier. + - ``LESSThan`` specifies < trigger qualifier. + - ``MOREThan`` specifies > trigger qualifier. + """ # noqa: E501 + return self._qualifier + + @property + def sof(self) -> TriggerABusUsbSof: + """Return the ``TRIGger:A:BUS:USB:SOF`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SOF?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SOF?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:USB:SOF:FORMat`` command. + - ``.framenumber``: The ``TRIGger:A:BUS:USB:SOF:FRAMENUMber`` command. + """ + return self._sof + + @property + def specialtype(self) -> TriggerABusUsbSpecialtype: + """Return the ``TRIGger:A:BUS:USB:SPECIALType`` command. + + **Description:** + - This command sets or queries the PID value when USB bus Trigger on condition is set to + Special Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPECIALType?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPECIALType?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:USB:SPECIALType value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:SPECIALType {ANY|ERR|PING|PRE|RESERVED|SPLIT} + - TRIGger:A:BUS:USB:SPECIALType? + + **Info:** + - ``ANY`` specifies Any (XX00) PID value. + - ``ERR`` specifies ERR (1100) PID value. + - ``PING`` specifies PING (0100) PID value. + - ``PRE`` specifies PRE (1100) PID value. + - ``RESERVED`` specifies Reserved (0000) PID value. + - ``SPLIT`` specifies Split (1000) PID value. + """ + return self._specialtype + + @property + def split(self) -> TriggerABusUsbSplit: + """Return the ``TRIGger:A:BUS:USB:SPLIT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:SPLIT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:SPLIT?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.et``: The ``TRIGger:A:BUS:USB:SPLIT:ET`` command tree. + - ``.hub``: The ``TRIGger:A:BUS:USB:SPLIT:HUB`` command tree. + - ``.port``: The ``TRIGger:A:BUS:USB:SPLIT:PORT`` command tree. + - ``.sc``: The ``TRIGger:A:BUS:USB:SPLIT:SC`` command tree. + - ``.se``: The ``TRIGger:A:BUS:USB:SPLIT:SE`` command tree. + """ + return self._split + + @property + def tokentype(self) -> TriggerABusUsbTokentype: + """Return the ``TRIGger:A:BUS:USB:TOKENType`` command. + + **Description:** + - This command sets or queries the Token Type when USB Trigger condition is set to Token + (Address) Packet. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB:TOKENType?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB:TOKENType?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:USB:TOKENType value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:USB:TOKENType {ANY|IN|OUT|SOF|SETUP} + - TRIGger:A:BUS:USB:TOKENType? + + **Info:** + - ``ANY`` specifies ANY (XX01) token type. + - ``IN`` specifies IN (1001) token type. + - ``OUT`` specifies OUT (0001) token type. + - ``SOF`` specifies SOF (0101) token type. + - ``SETUP`` specifies SETUP (1101) token type. + """ + return self._tokentype + + +class TriggerABusSpiDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. + + **Description:** + - This command sets or queries the data value of the data token for an SPI trigger when the + trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:DATa:VALue + - TRIGger:A:BUS:SPI:DATa:VALue? + + **Info:** + - ```` specifies the data value in the specified valid format. The valid characters + are 0-9, A-F, and X for hexadecimal format; and 0, 1, and X for a binary number. + """ + + +class TriggerABusSpiDataSize(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:SPI:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the length of the data string in bytes to be used for an SPI + trigger when the trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:SIZe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:DATa:SIZe + - TRIGger:A:BUS:SPI:DATa:SIZe? + + **Info:** + - ```` specifies the number of contiguous data bytes to trigger on. + """ + + +class TriggerABusSpiDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:SPI:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the format of the data to be used for an SPI trigger when the + trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:SPI:DATa:FORMat? + + **Info:** + - ``BINary`` specifies binary as the data format for the SPI bus. + - ``HEXadecimal`` specifies hexadecimal as the data format for the SPI bus. + """ + + +class TriggerABusSpiData(SCPICmdRead): + """The ``TRIGger:A:BUS:SPI:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:SPI:DATa:FORMat`` command. + - ``.size``: The ``TRIGger:A:BUS:SPI:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusSpiDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._size = TriggerABusSpiDataSize(device, f"{self._cmd_syntax}:SIZe") + self._value = TriggerABusSpiDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusSpiDataFormat: + """Return the ``TRIGger:A:BUS:SPI:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the format of the data to be used for an SPI trigger when + the trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:SPI:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:SPI:DATa:FORMat? + + **Info:** + - ``BINary`` specifies binary as the data format for the SPI bus. + - ``HEXadecimal`` specifies hexadecimal as the data format for the SPI bus. + """ + return self._format + + @property + def size(self) -> TriggerABusSpiDataSize: + """Return the ``TRIGger:A:BUS:SPI:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the length of the data string in bytes to be used for an + SPI trigger when the trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:DATa:SIZe + - TRIGger:A:BUS:SPI:DATa:SIZe? + + **Info:** + - ```` specifies the number of contiguous data bytes to trigger on. + """ + return self._size + + @property + def value(self) -> TriggerABusSpiDataValue: + """Return the ``TRIGger:A:BUS:SPI:DATa:VALue`` command. + + **Description:** + - This command sets or queries the data value of the data token for an SPI trigger when + the trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:SPI:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:DATa:VALue + - TRIGger:A:BUS:SPI:DATa:VALue? + + **Info:** + - ```` specifies the data value in the specified valid format. The valid + characters are 0-9, A-F, and X for hexadecimal format; and 0, 1, and X for a binary + number. + """ + return self._value + + +class TriggerABusSpiCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:SPI:CONDition`` command. + + **Description:** + - This command sets or queries the trigger condition for the SPI bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SPI:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:CONDition {DATA|SS} + - TRIGger:A:BUS:SPI:CONDition? + + **Info:** + - ``DATA`` sets the trigger condition to Master-In Slave-Out and Master-Out Slave-In. + - ``SS`` sets the trigger condition to Slave selection. + """ + + +class TriggerABusSpi(SCPICmdRead): + """The ``TRIGger:A:BUS:SPI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.condition``: The ``TRIGger:A:BUS:SPI:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._condition = TriggerABusSpiCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerABusSpiData(device, f"{self._cmd_syntax}:DATa") + + @property + def condition(self) -> TriggerABusSpiCondition: + """Return the ``TRIGger:A:BUS:SPI:CONDition`` command. + + **Description:** + - This command sets or queries the trigger condition for the SPI bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SPI:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SPI:CONDition {DATA|SS} + - TRIGger:A:BUS:SPI:CONDition? + + **Info:** + - ``DATA`` sets the trigger condition to Master-In Slave-Out and Master-Out Slave-In. + - ``SS`` sets the trigger condition to Slave selection. + """ + return self._condition + + @property + def data(self) -> TriggerABusSpiData: + """Return the ``TRIGger:A:BUS:SPI:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:SPI:DATa:FORMat`` command. + - ``.size``: The ``TRIGger:A:BUS:SPI:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:SPI:DATa:VALue`` command. + """ + return self._data + + +class TriggerABusSource(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:SOUrce`` command. + + **Description:** + - This command sets or returns the source for a bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SOUrce value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SOUrce {B1|B2|B3|B4|B5|B6|B7|B8|B9|B10|B11|B12| B13|B14|B15|B16} + - TRIGger:A:BUS:SOUrce? + + **Info:** + - ``B`` sets the selected source to the bus. x has a minimum of 1 and a maximum of 16. + """ + + +class TriggerABusS8b10bPatternSymbolPlusItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the specified 8B10B character bit pattern (positive disparity) when the + Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS? + + **Info:** + - ```` is the character bit pattern. + """ + + +class TriggerABusS8b10bPatternSymbolMinusItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the specified 8B10B character bit pattern (negative disparity) when the + Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus? + + **Info:** + - ```` is the character bit pattern. + """ + + +class TriggerABusS8b10bPatternSymbol(SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.minus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus: Dict[ + int, TriggerABusS8b10bPatternSymbolMinusItem + ] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusS8b10bPatternSymbolMinusItem( + device, f"{self._cmd_syntax}:MINus{x}" + ) + ) + self._plus: Dict[int, TriggerABusS8b10bPatternSymbolPlusItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusS8b10bPatternSymbolPlusItem(device, f"{self._cmd_syntax}:PLUS{x}") + ) + + @property + def minus(self) -> Dict[int, TriggerABusS8b10bPatternSymbolMinusItem]: + """Return the ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the specified 8B10B character bit pattern (negative disparity) when + the Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus? + + **Info:** + - ```` is the character bit pattern. + """ + return self._minus + + @property + def plus(self) -> Dict[int, TriggerABusS8b10bPatternSymbolPlusItem]: + """Return the ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the specified 8B10B character bit pattern (positive disparity) when + the Trigger Condition is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS? + + **Info:** + - ```` is the character bit pattern. + """ + return self._plus + + +class TriggerABusS8b10bPatternCharItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:PATtern:CHAR`` command. + + **Description:** + - Sets or queries the specified 8B10B character when the Trigger Condition is set to + Pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:CHAR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:PATtern:CHAR + - TRIGger:A:BUS:S8B10B:PATtern:CHAR? + + **Info:** + - ```` is the character. + """ + + +class TriggerABusS8b10bPattern(SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.char``: The ``TRIGger:A:BUS:S8B10B:PATtern:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._char: Dict[int, TriggerABusS8b10bPatternCharItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusS8b10bPatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") + ) + self._symbol = TriggerABusS8b10bPatternSymbol(device, f"{self._cmd_syntax}:SYMbol") + + @property + def char(self) -> Dict[int, TriggerABusS8b10bPatternCharItem]: + """Return the ``TRIGger:A:BUS:S8B10B:PATtern:CHAR`` command. + + **Description:** + - Sets or queries the specified 8B10B character when the Trigger Condition is set to + Pattern. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:CHAR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:PATtern:CHAR + - TRIGger:A:BUS:S8B10B:PATtern:CHAR? + + **Info:** + - ```` is the character. + """ + return self._char + + @property + def symbol(self) -> TriggerABusS8b10bPatternSymbol: + """Return the ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.minus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol:PLUS`` command. + """ + return self._symbol + + +class TriggerABusS8b10bFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:FORMat`` command. + + **Description:** + - Sets or queries the pattern editing format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S8B10B:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:FORMat {CHAR|SYMbol} + - TRIGger:A:BUS:S8B10B:FORMat? + + **Info:** + - ``CHAR`` indicates that the pattern editing format is set to character. + - ``SYMBOL`` indicates that the pattern editing format is set to symbol. + """ + + +class TriggerABusS8b10bError(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:ERROR`` command. + + **Description:** + - Sets or queries whether the oscilloscope will trigger on a character error or a disparity + error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:ERROR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:ERROR?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S8B10B:ERROR value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:S8B10B:ERROR? + + **Info:** + - ``CHARACTER`` sets the oscilloscope to trigger on a character error. + - ``DISPARITY`` sets the oscilloscope to trigger on a disparity error. + """ + + +class TriggerABusS8b10bDisparity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:DISParity`` command. + + **Description:** + - Sets or queries the type of disparity that the 8B10B bus will trigger on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:DISParity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:DISParity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S8B10B:DISParity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:DISParity {NEGAtive|POSITIVe|EITher} + - TRIGger:A:BUS:S8B10B:DISParity? + + **Info:** + - ``NEGative`` specifies negative disparity. + - ``POSITIVe`` specifies positive disparity. + - ``EITher`` specifies either disparity. + """ + + +class TriggerABusS8b10bCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:CONDition`` command. + + **Description:** + - Sets or queries the trigger condition for the 8B10B bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S8B10B:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CONDition {ANYControl|CHARacter|ERROR|PATtern} + - TRIGger:A:BUS:S8B10B:CONDition? + + **Info:** + - ``ANYControl`` + - ``CHARacter`` + - ``ERROR`` + - ``PATtern`` + """ + + +class TriggerABusS8b10bCharacterSymbolPlus(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the Character bit pattern (positive disparity view) when the Trigger + Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS? + + **Info:** + - ```` is the 8B10B character bit pattern. + """ + + +class TriggerABusS8b10bCharacterSymbolMinus(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the 8B10B character bit pattern (negative disparity) when the Trigger + Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus? + + **Info:** + - ```` is the 8B10B character bit pattern. + """ + + +class TriggerABusS8b10bCharacterSymbol(SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.minus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus = TriggerABusS8b10bCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") + self._plus = TriggerABusS8b10bCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") + + @property + def minus(self) -> TriggerABusS8b10bCharacterSymbolMinus: + """Return the ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus`` command. + + **Description:** + - Sets or queries the 8B10B character bit pattern (negative disparity) when the Trigger + Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus? + + **Info:** + - ```` is the 8B10B character bit pattern. + """ + return self._minus + + @property + def plus(self) -> TriggerABusS8b10bCharacterSymbolPlus: + """Return the ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. + + **Description:** + - Sets or queries the Character bit pattern (positive disparity view) when the Trigger + Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS? + + **Info:** + - ```` is the 8B10B character bit pattern. + """ + return self._plus + + +class TriggerABusS8b10bCharacterChar(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR`` command. + + **Description:** + - Sets or queries the 8B10B character when the Trigger Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CHARacter:CHAR + - TRIGger:A:BUS:S8B10B:CHARacter:CHAR? + + **Info:** + - ```` is the 8B10B character. + """ + + +class TriggerABusS8b10bCharacter(SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B:CHARacter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.char``: The ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._char = TriggerABusS8b10bCharacterChar(device, f"{self._cmd_syntax}:CHAR") + self._symbol = TriggerABusS8b10bCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") + + @property + def char(self) -> TriggerABusS8b10bCharacterChar: + """Return the ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR`` command. + + **Description:** + - Sets or queries the 8B10B character when the Trigger Condition is set to Character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CHARacter:CHAR + - TRIGger:A:BUS:S8B10B:CHARacter:CHAR? + + **Info:** + - ```` is the 8B10B character. + """ + return self._char + + @property + def symbol(self) -> TriggerABusS8b10bCharacterSymbol: + """Return the ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.minus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol:PLUS`` command. + """ + return self._symbol + + +class TriggerABusS8b10b(SCPICmdRead): + """The ``TRIGger:A:BUS:S8B10B`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.character``: The ``TRIGger:A:BUS:S8B10B:CHARacter`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:S8B10B:CONDition`` command. + - ``.disparity``: The ``TRIGger:A:BUS:S8B10B:DISParity`` command. + - ``.error``: The ``TRIGger:A:BUS:S8B10B:ERROR`` command. + - ``.format``: The ``TRIGger:A:BUS:S8B10B:FORMat`` command. + - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._character = TriggerABusS8b10bCharacter(device, f"{self._cmd_syntax}:CHARacter") + self._condition = TriggerABusS8b10bCondition(device, f"{self._cmd_syntax}:CONDition") + self._disparity = TriggerABusS8b10bDisparity(device, f"{self._cmd_syntax}:DISParity") + self._error = TriggerABusS8b10bError(device, f"{self._cmd_syntax}:ERROR") + self._format = TriggerABusS8b10bFormat(device, f"{self._cmd_syntax}:FORMat") + self._pattern = TriggerABusS8b10bPattern(device, f"{self._cmd_syntax}:PATtern") + + @property + def character(self) -> TriggerABusS8b10bCharacter: + """Return the ``TRIGger:A:BUS:S8B10B:CHARacter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:CHARacter?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.char``: The ``TRIGger:A:BUS:S8B10B:CHARacter:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:CHARacter:SYMbol`` command tree. + """ + return self._character + + @property + def condition(self) -> TriggerABusS8b10bCondition: + """Return the ``TRIGger:A:BUS:S8B10B:CONDition`` command. + + **Description:** + - Sets or queries the trigger condition for the 8B10B bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:CONDition value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:CONDition {ANYControl|CHARacter|ERROR|PATtern} + - TRIGger:A:BUS:S8B10B:CONDition? + + **Info:** + - ``ANYControl`` + - ``CHARacter`` + - ``ERROR`` + - ``PATtern`` + """ + return self._condition + + @property + def disparity(self) -> TriggerABusS8b10bDisparity: + """Return the ``TRIGger:A:BUS:S8B10B:DISParity`` command. + + **Description:** + - Sets or queries the type of disparity that the 8B10B bus will trigger on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:DISParity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:DISParity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S8B10B:DISParity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:DISParity {NEGAtive|POSITIVe|EITher} + - TRIGger:A:BUS:S8B10B:DISParity? + + **Info:** + - ``NEGative`` specifies negative disparity. + - ``POSITIVe`` specifies positive disparity. + - ``EITher`` specifies either disparity. + """ + return self._disparity + + @property + def error(self) -> TriggerABusS8b10bError: + """Return the ``TRIGger:A:BUS:S8B10B:ERROR`` command. + + **Description:** + - Sets or queries whether the oscilloscope will trigger on a character error or a + disparity error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:ERROR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:ERROR?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S8B10B:ERROR value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:S8B10B:ERROR? + + **Info:** + - ``CHARACTER`` sets the oscilloscope to trigger on a character error. + - ``DISPARITY`` sets the oscilloscope to trigger on a disparity error. + """ + return self._error + + @property + def format(self) -> TriggerABusS8b10bFormat: + """Return the ``TRIGger:A:BUS:S8B10B:FORMat`` command. + + **Description:** + - Sets or queries the pattern editing format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S8B10B:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S8B10B:FORMat {CHAR|SYMbol} + - TRIGger:A:BUS:S8B10B:FORMat? + + **Info:** + - ``CHAR`` indicates that the pattern editing format is set to character. + - ``SYMBOL`` indicates that the pattern editing format is set to symbol. + """ + return self._format + + @property + def pattern(self) -> TriggerABusS8b10bPattern: + """Return the ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B:PATtern?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.char``: The ``TRIGger:A:BUS:S8B10B:PATtern:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:S8B10B:PATtern:SYMbol`` command tree. + """ + return self._pattern + + +class TriggerABusS64b66bCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:CONDition`` command. + + **Description:** + - Set or query the S64S66B block trigger is set to 'Block' (single block) or 'Block1Then2' + (block1 pattern followed by a block2 pattern). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S64B66B:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S64B66B:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:CONDition { BLOCK | BLOCK1THEN2 } + - TRIGger:A:BUS:S64B66B:CONDition? + + **Info:** + - ``BLOCK`` sets a single block trigger. + - ``BLOCK1THEN2`` sets the block1 pattern followed by the block2 pattern. + """ + + +class TriggerABusS64b66bBlockonethentwoPatterntwoValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. + + **Description:** + - Set or query the pattern format for the block2 pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue? + + **Info:** + - ```` is 64 bits wide. + """ + + +class TriggerABusS64b66bBlockonethentwoPatterntwoSync(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC`` command. + + **Description:** + - Set or query the sync value of block2. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC? + + **Info:** + - ```` is two bits wide. + """ + + +class TriggerABusS64b66bBlockonethentwoPatterntwo(SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo?`` query and raise an AssertionError if + the returned value does not match ``value``. + + Properties: + - ``.sync``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC`` command. + - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._sync = TriggerABusS64b66bBlockonethentwoPatterntwoSync( + device, f"{self._cmd_syntax}:SYNC" + ) + self._value = TriggerABusS64b66bBlockonethentwoPatterntwoValue( + device, f"{self._cmd_syntax}:VALue" + ) + + @property + def sync(self) -> TriggerABusS64b66bBlockonethentwoPatterntwoSync: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC`` command. + + **Description:** + - Set or query the sync value of block2. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC? + + **Info:** + - ```` is two bits wide. + """ + return self._sync + + @property + def value(self) -> TriggerABusS64b66bBlockonethentwoPatterntwoValue: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. + + **Description:** + - Set or query the pattern format for the block2 pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue? + + **Info:** + - ```` is 64 bits wide. + """ + return self._value + + +class TriggerABusS64b66bBlockonethentwoPatternoneValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. + + **Description:** + - Set or query the pattern format for the block1 pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue? + + **Info:** + - ```` is 64 bits wide. + """ + + +class TriggerABusS64b66bBlockonethentwoPatternoneSync(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC`` command. + + **Description:** + - Set or query the sync value of block1. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC? + + **Info:** + - ```` is two bits wide. + """ + + +class TriggerABusS64b66bBlockonethentwoPatternone(SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne?`` query and raise an AssertionError if + the returned value does not match ``value``. + + Properties: + - ``.sync``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC`` command. + - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._sync = TriggerABusS64b66bBlockonethentwoPatternoneSync( + device, f"{self._cmd_syntax}:SYNC" + ) + self._value = TriggerABusS64b66bBlockonethentwoPatternoneValue( + device, f"{self._cmd_syntax}:VALue" + ) + + @property + def sync(self) -> TriggerABusS64b66bBlockonethentwoPatternoneSync: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC`` command. + + **Description:** + - Set or query the sync value of block1. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC? + + **Info:** + - ```` is two bits wide. + """ + return self._sync + + @property + def value(self) -> TriggerABusS64b66bBlockonethentwoPatternoneValue: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. + + **Description:** + - Set or query the pattern format for the block1 pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue? + + **Info:** + - ```` is 64 bits wide. + """ + return self._value + + +class TriggerABusS64b66bBlockonethentwoFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat`` command. + + **Description:** + - Set or query the pattern format of Block1Then2 (block1 pattern followed by block2 + pattern). + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat { Binary | HEX } + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat? + + **Info:** + - ``Binary`` indicates the binary pattern format. + - ``HEX`` indicates the hex pattern format. + """ + + +class TriggerABusS64b66bBlockonethentwo(SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat`` command. + - ``.patternone``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne`` command tree. + - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusS64b66bBlockonethentwoFormat(device, f"{self._cmd_syntax}:FORMat") + self._patternone = TriggerABusS64b66bBlockonethentwoPatternone( + device, f"{self._cmd_syntax}:PATTERNOne" + ) + self._patterntwo = TriggerABusS64b66bBlockonethentwoPatterntwo( + device, f"{self._cmd_syntax}:PATTERNTwo" + ) + + @property + def format(self) -> TriggerABusS64b66bBlockonethentwoFormat: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat`` command. + + **Description:** + - Set or query the pattern format of Block1Then2 (block1 pattern followed by block2 + pattern). + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat { Binary | HEX } + - TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat? + + **Info:** + - ``Binary`` indicates the binary pattern format. + - ``HEX`` indicates the hex pattern format. + """ + return self._format + + @property + def patternone(self) -> TriggerABusS64b66bBlockonethentwoPatternone: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.sync``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:SYNC`` command. + - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne:VALue`` command. + """ + return self._patternone + + @property + def patterntwo(self) -> TriggerABusS64b66bBlockonethentwoPatterntwo: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.sync``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:SYNC`` command. + - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo:VALue`` command. + """ + return self._patterntwo + + +class TriggerABusS64b66bBlockonePatternValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. + + **Description:** + - Set or query the pattern when trigger on block is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue? + + **Info:** + - ```` is 64 bits wide. + """ + + +class TriggerABusS64b66bBlockonePatternSync(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC`` command. + + **Description:** + - Set or query the sync value of the block. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC? + + **Info:** + - ```` is two bits wide. + """ + + +class TriggerABusS64b66bBlockonePatternFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat`` command. + + **Description:** + - Set or query the pattern format when trigger on block is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat { Binary | HEX } + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat? + + **Info:** + - ``Binary`` indicates the binary pattern format. + - ``HEX`` indicates the hex pattern format. + """ + + +class TriggerABusS64b66bBlockonePattern(SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat`` command. + - ``.sync``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC`` command. + - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusS64b66bBlockonePatternFormat(device, f"{self._cmd_syntax}:FORMat") + self._sync = TriggerABusS64b66bBlockonePatternSync(device, f"{self._cmd_syntax}:SYNC") + self._value = TriggerABusS64b66bBlockonePatternValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusS64b66bBlockonePatternFormat: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat`` command. + + **Description:** + - Set or query the pattern format when trigger on block is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat?`` query and raise an AssertionError + if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat { Binary | HEX } + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat? + + **Info:** + - ``Binary`` indicates the binary pattern format. + - ``HEX`` indicates the hex pattern format. + """ + return self._format + + @property + def sync(self) -> TriggerABusS64b66bBlockonePatternSync: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC`` command. + + **Description:** + - Set or query the sync value of the block. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC? + + **Info:** + - ```` is two bits wide. + """ + return self._sync + + @property + def value(self) -> TriggerABusS64b66bBlockonePatternValue: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. + + **Description:** + - Set or query the pattern when trigger on block is set to Pattern. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue + - TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue? + + **Info:** + - ```` is 64 bits wide. + """ + return self._value + + +class TriggerABusS64b66bBlockoneBlocktype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType`` command. + + **Description:** + - Set or query the control block type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType { NONe | X1E | X2D | X33 | X66 | X55 | X78 | X4B | X87 | X99 | XB4 | XCC | XD2 | XE1 | XFF } + - TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType? + + **Info:** + - ``NONe`` + - ``X1E`` + - ``X2D`` + - ``X33`` + - ``X66`` + - ``X55`` + - ``X78`` + - ``X4B`` + - ``X87`` + - ``X99`` + - ``XB4`` + - ``XCC`` + - ``XD2`` + - ``XE1`` + - ``XFF`` + """ # noqa: E501 + + +class TriggerABusS64b66bBlockone(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B:BLOCKONE`` command. + + **Description:** + - Set or query the S64B66B block trigger settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE { SYNC | INVSYNC | BLOCKtype | PATtern } + - TRIGger:A:BUS:S64B66B:BLOCKONE? + + **Info:** + - ``SYNC`` + - ``INVSYNC`` + - ``BLOCKtype`` + - ``PATtern`` + + Properties: + - ``.blocktype``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType`` command. + - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._blocktype = TriggerABusS64b66bBlockoneBlocktype( + device, f"{self._cmd_syntax}:BLOCKType" + ) + self._pattern = TriggerABusS64b66bBlockonePattern(device, f"{self._cmd_syntax}:PATtern") + + @property + def blocktype(self) -> TriggerABusS64b66bBlockoneBlocktype: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType`` command. + + **Description:** + - Set or query the control block type. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType { NONe | X1E | X2D | X33 | X66 | X55 | X78 | X4B | X87 | X99 | XB4 | XCC | XD2 | XE1 | XFF } + - TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType? + + **Info:** + - ``NONe`` + - ``X1E`` + - ``X2D`` + - ``X33`` + - ``X66`` + - ``X55`` + - ``X78`` + - ``X4B`` + - ``X87`` + - ``X99`` + - ``XB4`` + - ``XCC`` + - ``XD2`` + - ``XE1`` + - ``XFF`` + """ # noqa: E501 + return self._blocktype + + @property + def pattern(self) -> TriggerABusS64b66bBlockonePattern: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:FORMat`` command. + - ``.sync``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:SYNC`` command. + - ``.value``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern:VALue`` command. + """ + return self._pattern + + +class TriggerABusS64b66b(SCPICmdRead): + """The ``TRIGger:A:BUS:S64B66B`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S64B66B?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.blockone``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE`` command. + - ``.blockonethentwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._blockone = TriggerABusS64b66bBlockone(device, f"{self._cmd_syntax}:BLOCKONE") + self._blockonethentwo = TriggerABusS64b66bBlockonethentwo( + device, f"{self._cmd_syntax}:BLOCKONETHENTWO" + ) + self._condition = TriggerABusS64b66bCondition(device, f"{self._cmd_syntax}:CONDition") + + @property + def blockone(self) -> TriggerABusS64b66bBlockone: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONE`` command. + + **Description:** + - Set or query the S64B66B block trigger settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:BLOCKONE { SYNC | INVSYNC | BLOCKtype | PATtern } + - TRIGger:A:BUS:S64B66B:BLOCKONE? + + **Info:** + - ``SYNC`` + - ``INVSYNC`` + - ``BLOCKtype`` + - ``PATtern`` + + Sub-properties: + - ``.blocktype``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:BLOCKType`` command. + - ``.pattern``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE:PATtern`` command tree. + """ + return self._blockone + + @property + def blockonethentwo(self) -> TriggerABusS64b66bBlockonethentwo: + """Return the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:FORMat`` command. + - ``.patternone``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNOne`` command + tree. + - ``.patterntwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO:PATTERNTwo`` command + tree. + """ + return self._blockonethentwo + + @property + def condition(self) -> TriggerABusS64b66bCondition: + """Return the ``TRIGger:A:BUS:S64B66B:CONDition`` command. + + **Description:** + - Set or query the S64S66B block trigger is set to 'Block' (single block) or + 'Block1Then2' (block1 pattern followed by a block2 pattern). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B:CONDition?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S64B66B:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:S64B66B:CONDition value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:S64B66B:CONDition { BLOCK | BLOCK1THEN2 } + - TRIGger:A:BUS:S64B66B:CONDition? + + **Info:** + - ``BLOCK`` sets a single block trigger. + - ``BLOCK1THEN2`` sets the block1 pattern followed by the block2 pattern. + """ + return self._condition + + +class TriggerABusRs232cDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. + + **Description:** + - This command sets or queries the data address string used for the RS-232 bus trigger when + the trigger condition is set to Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:DATa:VALue + - TRIGger:A:BUS:RS232C:DATa:VALue? + + **Info:** + - ```` specifies the address value. The argument is a string of 0, 1, or X + representing a binary number. + """ + + +class TriggerABusRs232cDataSize(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:RS232C:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the length of the data string in bytes to be used for an + RS-232C trigger when the trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:DATa:SIZe + - TRIGger:A:BUS:RS232C:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. + """ + + +class TriggerABusRs232cDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:RS232C:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the data format for the RS232C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:RS232C:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:RS232C:DATa:FORMat? + + **Info:** + - ``BINary`` specifies that the data format for the RS232C bus trigger is Binary. + - ``HEXadecimal`` specifies that the data format for the RS232C bus trigger is Hexadecimal. + """ + + +class TriggerABusRs232cData(SCPICmdRead): + """The ``TRIGger:A:BUS:RS232C:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:RS232C:DATa:FORMat`` command. + - ``.size``: The ``TRIGger:A:BUS:RS232C:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusRs232cDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._size = TriggerABusRs232cDataSize(device, f"{self._cmd_syntax}:SIZe") + self._value = TriggerABusRs232cDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusRs232cDataFormat: + """Return the ``TRIGger:A:BUS:RS232C:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the data format for the RS232C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:RS232C:DATa:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:RS232C:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:RS232C:DATa:FORMat? + + **Info:** + - ``BINary`` specifies that the data format for the RS232C bus trigger is Binary. + - ``HEXadecimal`` specifies that the data format for the RS232C bus trigger is + Hexadecimal. + """ + return self._format + + @property + def size(self) -> TriggerABusRs232cDataSize: + """Return the ``TRIGger:A:BUS:RS232C:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the length of the data string in bytes to be used for an + RS-232C trigger when the trigger condition is Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:RS232C:DATa:SIZe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:DATa:SIZe + - TRIGger:A:BUS:RS232C:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. + """ + return self._size + + @property + def value(self) -> TriggerABusRs232cDataValue: + """Return the ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. + + **Description:** + - This command sets or queries the data address string used for the RS-232 bus trigger + when the trigger condition is set to Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa:VALue?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:RS232C:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:DATa:VALue + - TRIGger:A:BUS:RS232C:DATa:VALue? + + **Info:** + - ```` specifies the address value. The argument is a string of 0, 1, or X + representing a binary number. + """ + return self._value + + +class TriggerABusRs232cCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:RS232C:CONDition`` command. + + **Description:** + - This command sets or queries the condition for an RS-232C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:RS232C:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:CONDition {DATa|EOp|PARItyerror|STARt} + - TRIGger:A:BUS:RS232C:CONDition? + + **Info:** + - ``DATa`` sets the Trigger on condition to Data. + - ``EOp`` sets the Trigger on condition to End of Packet. + - ``PARItyerror`` sets the Trigger on condition to Parity Error. + - ``STARt`` sets the Trigger on condition to Start. + """ + + +class TriggerABusRs232c(SCPICmdRead): + """The ``TRIGger:A:BUS:RS232C`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.condition``: The ``TRIGger:A:BUS:RS232C:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._condition = TriggerABusRs232cCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerABusRs232cData(device, f"{self._cmd_syntax}:DATa") + + @property + def condition(self) -> TriggerABusRs232cCondition: + """Return the ``TRIGger:A:BUS:RS232C:CONDition`` command. + + **Description:** + - This command sets or queries the condition for an RS-232C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:RS232C:CONDition value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:RS232C:CONDition {DATa|EOp|PARItyerror|STARt} + - TRIGger:A:BUS:RS232C:CONDition? + + **Info:** + - ``DATa`` sets the Trigger on condition to Data. + - ``EOp`` sets the Trigger on condition to End of Packet. + - ``PARItyerror`` sets the Trigger on condition to Parity Error. + - ``STARt`` sets the Trigger on condition to Start. + """ + return self._condition + + @property + def data(self) -> TriggerABusRs232cData: + """Return the ``TRIGger:A:BUS:RS232C:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:RS232C:DATa:FORMat`` command. + - ``.size``: The ``TRIGger:A:BUS:RS232C:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:RS232C:DATa:VALue`` command. + """ + return self._data + + +class TriggerABusPciePatternSymbolPlusItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern plus symbol (positive + disparity). The x specifies the plus character and can be 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS? + + **Info:** + - ```` specifies the pattern symbol plus. + """ + + +class TriggerABusPciePatternSymbolMinusItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern symbol minus (negative + disparity). The x specifies the minus character and can be 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus? + + **Info:** + - ```` specifies the trigger pattern minus symbol. + """ + + +class TriggerABusPciePatternSymbol(SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:SYMbol?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:SYMbol?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.minus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus: Dict[int, TriggerABusPciePatternSymbolMinusItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusPciePatternSymbolMinusItem(device, f"{self._cmd_syntax}:MINus{x}") + ) + self._plus: Dict[int, TriggerABusPciePatternSymbolPlusItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusPciePatternSymbolPlusItem(device, f"{self._cmd_syntax}:PLUS{x}") + ) + + @property + def minus(self) -> Dict[int, TriggerABusPciePatternSymbolMinusItem]: + """Return the ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern symbol minus (negative + disparity). The x specifies the minus character and can be 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus? + + **Info:** + - ```` specifies the trigger pattern minus symbol. + """ + return self._minus + + @property + def plus(self) -> Dict[int, TriggerABusPciePatternSymbolPlusItem]: + """Return the ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern plus symbol (positive + disparity). The x specifies the plus character and can be 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS + - TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS? + + **Info:** + - ```` specifies the pattern symbol plus. + """ + return self._plus + + +class TriggerABusPciePatternOrderedset(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern ordered set. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:ORDERedset {EI|FTS|SKP} + - TRIGger:A:BUS:PCIE:PATtern:ORDERedset? + + **Info:** + - ``INVALID`` is an additional argument that can be returned by a query. + """ + + +class TriggerABusPciePatternCharItem(ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:PATtern:CHAR`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern character. The x specifies the + character and can be 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:CHAR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:CHAR?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:CHAR + - TRIGger:A:BUS:PCIE:PATtern:CHAR? + + **Info:** + - ```` specifies the trigger pattern character. Valid characters are any valid + PCIe/8b10b character (KCodes, DCodes, and KCode mnemonics like COM and SKP) or X, the + don't care character. + """ + + +class TriggerABusPciePattern(SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:PATtern?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.char``: The ``TRIGger:A:BUS:PCIE:PATtern:CHAR`` command. + - ``.orderedset``: The ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset`` command. + - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._char: Dict[int, TriggerABusPciePatternCharItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerABusPciePatternCharItem(device, f"{self._cmd_syntax}:CHAR{x}") + ) + self._orderedset = TriggerABusPciePatternOrderedset( + device, f"{self._cmd_syntax}:ORDERedset" + ) + self._symbol = TriggerABusPciePatternSymbol(device, f"{self._cmd_syntax}:SYMbol") + + @property + def char(self) -> Dict[int, TriggerABusPciePatternCharItem]: + """Return the ``TRIGger:A:BUS:PCIE:PATtern:CHAR`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern character. The x specifies + the character and can be 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:CHAR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:CHAR + - TRIGger:A:BUS:PCIE:PATtern:CHAR? + + **Info:** + - ```` specifies the trigger pattern character. Valid characters are any valid + PCIe/8b10b character (KCodes, DCodes, and KCode mnemonics like COM and SKP) or X, the + don't care character. + """ + return self._char + + @property + def orderedset(self) -> TriggerABusPciePatternOrderedset: + """Return the ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger pattern ordered set. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:PATtern:ORDERedset {EI|FTS|SKP} + - TRIGger:A:BUS:PCIE:PATtern:ORDERedset? + + **Info:** + - ``INVALID`` is an additional argument that can be returned by a query. + """ + return self._orderedset + + @property + def symbol(self) -> TriggerABusPciePatternSymbol: + """Return the ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:PATtern:SYMbol?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.minus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol:PLUS`` command. + """ + return self._symbol + + +class TriggerABusPcieFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:FORMat`` command. + + **Description:** + - This command sets or queries the PCIe bus trigger format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:PCIE:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:FORMat {ORDERedset|SYMbol|CHAR} + - TRIGger:A:BUS:PCIE:FORMat? + """ + + +class TriggerABusPcieError(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:ERROR`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:ERROR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:ERROR?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:PCIE:ERROR value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:PCIE:ERROR? + + **Info:** + - ``CHARACTER`` sets the instrument to trigger on a character error. + - ``DISPARITY`` sets the instrument to trigger on a disparity error. + """ + + +class TriggerABusPcieDisparity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:DISParity`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger disparity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:DISParity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:DISParity?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:PCIE:DISParity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:DISParity {EITher|NEGAtive|POSITIVe} + - TRIGger:A:BUS:PCIE:DISParity? + + **Info:** + - ``NEGative`` specifies negative disparity. + - ``POSITIVe`` specifies positive disparity. + - ``EITher`` specifies either disparity. + """ + + +class TriggerABusPcieCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:CONDition`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:PCIE:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CONDition {ANYControl|CHARacter|ERROR|PATtern} + - TRIGger:A:BUS:PCIE:CONDition? + """ + + +class TriggerABusPcieCharacterSymbolPlus(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. + + **Description:** + - This command sets or queries PCIE bus trigger character symbol plus (positive disparity). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS? + + **Info:** + - ```` specifies the character symbol plus. + """ + + +class TriggerABusPcieCharacterSymbolMinus(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger character symbol minus (negative + disparity). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus? + + **Info:** + - ```` specifies the minus character symbol. + """ + + +class TriggerABusPcieCharacterSymbol(SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.minus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._minus = TriggerABusPcieCharacterSymbolMinus(device, f"{self._cmd_syntax}:MINus") + self._plus = TriggerABusPcieCharacterSymbolPlus(device, f"{self._cmd_syntax}:PLUS") + + @property + def minus(self) -> TriggerABusPcieCharacterSymbolMinus: + """Return the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger character symbol minus (negative + disparity). + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus? + + **Info:** + - ```` specifies the minus character symbol. + """ + return self._minus + + @property + def plus(self) -> TriggerABusPcieCharacterSymbolPlus: + """Return the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. + + **Description:** + - This command sets or queries PCIE bus trigger character symbol plus (positive + disparity). + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS + - TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS? + + **Info:** + - ```` specifies the character symbol plus. + """ + return self._plus + + +class TriggerABusPcieCharacterChar(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:CHARacter:CHAR`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:CHAR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:CHAR?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CHARacter:CHAR + - TRIGger:A:BUS:PCIE:CHARacter:CHAR? + + **Info:** + - ```` specifies the trigger character. + """ + + +class TriggerABusPcieCharacter(SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE:CHARacter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.char``: The ``TRIGger:A:BUS:PCIE:CHARacter:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._char = TriggerABusPcieCharacterChar(device, f"{self._cmd_syntax}:CHAR") + self._symbol = TriggerABusPcieCharacterSymbol(device, f"{self._cmd_syntax}:SYMbol") + + @property + def char(self) -> TriggerABusPcieCharacterChar: + """Return the ``TRIGger:A:BUS:PCIE:CHARacter:CHAR`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger character. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:CHAR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:CHAR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:CHAR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CHARacter:CHAR + - TRIGger:A:BUS:PCIE:CHARacter:CHAR? + + **Info:** + - ```` specifies the trigger character. + """ + return self._char + + @property + def symbol(self) -> TriggerABusPcieCharacterSymbol: + """Return the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.minus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:MINus`` command. + - ``.plus``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol:PLUS`` command. + """ + return self._symbol + + +class TriggerABusPcie(SCPICmdRead): + """The ``TRIGger:A:BUS:PCIE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.character``: The ``TRIGger:A:BUS:PCIE:CHARacter`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:PCIE:CONDition`` command. + - ``.disparity``: The ``TRIGger:A:BUS:PCIE:DISParity`` command. + - ``.error``: The ``TRIGger:A:BUS:PCIE:ERROR`` command. + - ``.format``: The ``TRIGger:A:BUS:PCIE:FORMat`` command. + - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._character = TriggerABusPcieCharacter(device, f"{self._cmd_syntax}:CHARacter") + self._condition = TriggerABusPcieCondition(device, f"{self._cmd_syntax}:CONDition") + self._disparity = TriggerABusPcieDisparity(device, f"{self._cmd_syntax}:DISParity") + self._error = TriggerABusPcieError(device, f"{self._cmd_syntax}:ERROR") + self._format = TriggerABusPcieFormat(device, f"{self._cmd_syntax}:FORMat") + self._pattern = TriggerABusPciePattern(device, f"{self._cmd_syntax}:PATtern") + + @property + def character(self) -> TriggerABusPcieCharacter: + """Return the ``TRIGger:A:BUS:PCIE:CHARacter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:CHARacter?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.char``: The ``TRIGger:A:BUS:PCIE:CHARacter:CHAR`` command. + - ``.symbol``: The ``TRIGger:A:BUS:PCIE:CHARacter:SYMbol`` command tree. + """ + return self._character + + @property + def condition(self) -> TriggerABusPcieCondition: + """Return the ``TRIGger:A:BUS:PCIE:CONDition`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:CONDition value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:CONDition {ANYControl|CHARacter|ERROR|PATtern} + - TRIGger:A:BUS:PCIE:CONDition? + """ + return self._condition + + @property + def disparity(self) -> TriggerABusPcieDisparity: + """Return the ``TRIGger:A:BUS:PCIE:DISParity`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger disparity. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:DISParity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:DISParity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:PCIE:DISParity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:DISParity {EITher|NEGAtive|POSITIVe} + - TRIGger:A:BUS:PCIE:DISParity? + + **Info:** + - ``NEGative`` specifies negative disparity. + - ``POSITIVe`` specifies positive disparity. + - ``EITher`` specifies either disparity. + """ + return self._disparity + + @property + def error(self) -> TriggerABusPcieError: + """Return the ``TRIGger:A:BUS:PCIE:ERROR`` command. + + **Description:** + - This command sets or queries the PCIE bus trigger error. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:ERROR?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:ERROR?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:PCIE:ERROR value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:ERROR {CHARacter|DISParity} + - TRIGger:A:BUS:PCIE:ERROR? + + **Info:** + - ``CHARACTER`` sets the instrument to trigger on a character error. + - ``DISPARITY`` sets the instrument to trigger on a disparity error. + """ + return self._error + + @property + def format(self) -> TriggerABusPcieFormat: + """Return the ``TRIGger:A:BUS:PCIE:FORMat`` command. + + **Description:** + - This command sets or queries the PCIe bus trigger format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:PCIE:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:PCIE:FORMat {ORDERedset|SYMbol|CHAR} + - TRIGger:A:BUS:PCIE:FORMat? + """ + return self._format + + @property + def pattern(self) -> TriggerABusPciePattern: + """Return the ``TRIGger:A:BUS:PCIE:PATtern`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE:PATtern?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE:PATtern?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.char``: The ``TRIGger:A:BUS:PCIE:PATtern:CHAR`` command. + - ``.orderedset``: The ``TRIGger:A:BUS:PCIE:PATtern:ORDERedset`` command. + - ``.symbol``: The ``TRIGger:A:BUS:PCIE:PATtern:SYMbol`` command tree. + """ + return self._pattern + + +class TriggerABusMil1553bTimeQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. + + **Description:** + - This command specifies the qualifier to use when triggering on either the remote terminal + response time (RT) or the inter-message gap (IMG). The instrument will trigger when it + finds an RT or IMG that meets the specified conditions. The trigger condition must be set + to TIMe, + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:TIME:QUALifier {LESSthan|MOREthan|INrange|OUTrange} + - TRIGger:A:BUS:MIL1553B:TIME:QUALifier? + + **Info:** + - ``LESSthan`` sets the time qualifier to less than minimum. + - ``MOREthan`` sets the time qualifier to greater than maximum. + - ``INrange`` sets the time qualifier to inside range. + - ``OUTrange`` sets the time qualifier to out of range. + """ + + +class TriggerABusMil1553bTimeMorelimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit`` command. + + **Description:** + - This command specifies either the maximum remote terminal response time (RT) limit, in + seconds, for the amount of time the terminal has to transmit or the maximum inter-message + gap (IMG). The instrument will trigger when it finds an RT or IMG that meets the specified + conditions. The trigger condition must be set to TIMe, + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:TIME:MORELimit + - TRIGger:A:BUS:MIL1553B:TIME:MORELimit? + + **Info:** + - ```` is a floating point number that specifies either the maximum remote terminal + response time (RT) or the maximum inter-message gap (IMG) in seconds. + """ + + +class TriggerABusMil1553bTimeLesslimit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit`` command. + + **Description:** + - This command specifies either the minimum remote terminal response time (RT) limit, in + seconds, for the amount of time the terminal has to transmit or the minimum inter-message + gap (IMG). The instrument will trigger when it finds an RT or IMG that meets the specified + conditions. The trigger condition must be set to TIMe. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:TIME:LESSLimit + - TRIGger:A:BUS:MIL1553B:TIME:LESSLimit? + + **Info:** + - ```` is a floating point number that specifies either the minimum remote terminal + response time (RT) or the inter-message gap (IMG) in seconds. + """ + + +class TriggerABusMil1553bTime(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.lesslimit``: The ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit`` command. + - ``.morelimit``: The ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._lesslimit = TriggerABusMil1553bTimeLesslimit(device, f"{self._cmd_syntax}:LESSLimit") + self._morelimit = TriggerABusMil1553bTimeMorelimit(device, f"{self._cmd_syntax}:MORELimit") + self._qualifier = TriggerABusMil1553bTimeQualifier(device, f"{self._cmd_syntax}:QUALifier") + + @property + def lesslimit(self) -> TriggerABusMil1553bTimeLesslimit: + """Return the ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit`` command. + + **Description:** + - This command specifies either the minimum remote terminal response time (RT) limit, in + seconds, for the amount of time the terminal has to transmit or the minimum + inter-message gap (IMG). The instrument will trigger when it finds an RT or IMG that + meets the specified conditions. The trigger condition must be set to TIMe. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:TIME:LESSLimit + - TRIGger:A:BUS:MIL1553B:TIME:LESSLimit? + + **Info:** + - ```` is a floating point number that specifies either the minimum remote terminal + response time (RT) or the inter-message gap (IMG) in seconds. + """ + return self._lesslimit + + @property + def morelimit(self) -> TriggerABusMil1553bTimeMorelimit: + """Return the ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit`` command. + + **Description:** + - This command specifies either the maximum remote terminal response time (RT) limit, in + seconds, for the amount of time the terminal has to transmit or the maximum + inter-message gap (IMG). The instrument will trigger when it finds an RT or IMG that + meets the specified conditions. The trigger condition must be set to TIMe, + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:TIME:MORELimit + - TRIGger:A:BUS:MIL1553B:TIME:MORELimit? + + **Info:** + - ```` is a floating point number that specifies either the maximum remote terminal + response time (RT) or the maximum inter-message gap (IMG) in seconds. + """ + return self._morelimit + + @property + def qualifier(self) -> TriggerABusMil1553bTimeQualifier: + """Return the ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. + + **Description:** + - This command specifies the qualifier to use when triggering on either the remote + terminal response time (RT) or the inter-message gap (IMG). The instrument will + trigger when it finds an RT or IMG that meets the specified conditions. The trigger + condition must be set to TIMe, + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:TIME:QUALifier {LESSthan|MOREthan|INrange|OUTrange} + - TRIGger:A:BUS:MIL1553B:TIME:QUALifier? + + **Info:** + - ``LESSthan`` sets the time qualifier to less than minimum. + - ``MOREthan`` sets the time qualifier to greater than maximum. + - ``INrange`` sets the time qualifier to inside range. + - ``OUTrange`` sets the time qualifier to out of range. + """ + return self._qualifier + + +class TriggerABusMil1553bStatusBitTf(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. + + **Description:** + - This command specifies the status word terminal flag bit value (bit 19) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). The + trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitSubsf(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF`` command. + + **Description:** + - This command specifies the status word subsystem flag bit value (bit 17) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). The + trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitSrq(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ`` command. + + **Description:** + - This command specifies the status word service request (SRQ) bit value (bit 11) to use + when triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). + The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitParity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity`` command. + + **Description:** + - This command specifies the parity to use when triggering on the MIL-STD-1553 status bit + field. The default is all X's (don't care). The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity {0|1|X|ZERo|ONE|NOCARE|DONTCare|ON|OFF} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitMe(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME`` command. + + **Description:** + - This command specifies the status word message error bit value (bit 9) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). The + trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitInstr(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR`` command. + + **Description:** + - This command specifies the status word instrumentation bit value (bit 10) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). The + trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitDbca(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA`` command. + + **Description:** + - This command specifies the status word dynamic bus control acceptance (DBCA) bit value + (bit 18) to use when triggering on the MIL-STD-1553 status bit field. The default is all + X's (don't care). The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitBusy(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY`` command. + + **Description:** + - This command specifies the status word busy bit value (bit 16) to use when triggering on + the MIL-STD-1553 status bit field. The default is all X's (don't care). The trigger + condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bStatusBitBcr(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR`` command. + + **Description:** + - This command specifies the status word broadcast command received (BCR) bit value (bit 15) + to use when triggering on the MIL-STD-1553 status bit field. The default is all X's (don't + care). The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +# pylint: disable=too-many-instance-attributes +class TriggerABusMil1553bStatusBit(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.bcr``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR`` command. + - ``.busy``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY`` command. + - ``.dbca``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA`` command. + - ``.instr``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR`` command. + - ``.me``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME`` command. + - ``.parity``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity`` command. + - ``.srq``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ`` command. + - ``.subsf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF`` command. + - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._bcr = TriggerABusMil1553bStatusBitBcr(device, f"{self._cmd_syntax}:BCR") + self._busy = TriggerABusMil1553bStatusBitBusy(device, f"{self._cmd_syntax}:BUSY") + self._dbca = TriggerABusMil1553bStatusBitDbca(device, f"{self._cmd_syntax}:DBCA") + self._instr = TriggerABusMil1553bStatusBitInstr(device, f"{self._cmd_syntax}:INSTR") + self._me = TriggerABusMil1553bStatusBitMe(device, f"{self._cmd_syntax}:ME") + self._parity = TriggerABusMil1553bStatusBitParity(device, f"{self._cmd_syntax}:PARity") + self._srq = TriggerABusMil1553bStatusBitSrq(device, f"{self._cmd_syntax}:SRQ") + self._subsf = TriggerABusMil1553bStatusBitSubsf(device, f"{self._cmd_syntax}:SUBSF") + self._tf = TriggerABusMil1553bStatusBitTf(device, f"{self._cmd_syntax}:TF") + + @property + def bcr(self) -> TriggerABusMil1553bStatusBitBcr: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR`` command. + + **Description:** + - This command specifies the status word broadcast command received (BCR) bit value (bit + 15) to use when triggering on the MIL-STD-1553 status bit field. The default is all + X's (don't care). The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._bcr + + @property + def busy(self) -> TriggerABusMil1553bStatusBitBusy: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY`` command. + + **Description:** + - This command specifies the status word busy bit value (bit 16) to use when triggering + on the MIL-STD-1553 status bit field. The default is all X's (don't care). The trigger + condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._busy + + @property + def dbca(self) -> TriggerABusMil1553bStatusBitDbca: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA`` command. + + **Description:** + - This command specifies the status word dynamic bus control acceptance (DBCA) bit value + (bit 18) to use when triggering on the MIL-STD-1553 status bit field. The default is + all X's (don't care). The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._dbca + + @property + def instr(self) -> TriggerABusMil1553bStatusBitInstr: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR`` command. + + **Description:** + - This command specifies the status word instrumentation bit value (bit 10) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). + The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._instr + + @property + def me(self) -> TriggerABusMil1553bStatusBitMe: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME`` command. + + **Description:** + - This command specifies the status word message error bit value (bit 9) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). + The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._me + + @property + def parity(self) -> TriggerABusMil1553bStatusBitParity: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity`` command. + + **Description:** + - This command specifies the parity to use when triggering on the MIL-STD-1553 status + bit field. The default is all X's (don't care). The trigger condition must be set to + STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity {0|1|X|ZERo|ONE|NOCARE|DONTCare|ON|OFF} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._parity + + @property + def srq(self) -> TriggerABusMil1553bStatusBitSrq: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ`` command. + + **Description:** + - This command specifies the status word service request (SRQ) bit value (bit 11) to use + when triggering on the MIL-STD-1553 status bit field. The default is all X's (don't + care). The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._srq + + @property + def subsf(self) -> TriggerABusMil1553bStatusBitSubsf: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF`` command. + + **Description:** + - This command specifies the status word subsystem flag bit value (bit 17) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). + The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._subsf + + @property + def tf(self) -> TriggerABusMil1553bStatusBitTf: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. + + **Description:** + - This command specifies the status word terminal flag bit value (bit 19) to use when + triggering on the MIL-STD-1553 status bit field. The default is all X's (don't care). + The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE, DONTCare`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._tf + + +class TriggerABusMil1553bStatusAddressValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. + + **Description:** + - This command specifies the value of the 5-bit remote terminal address to use when + triggering on the MIL-STD-1553 status address field. The default is all X's (don't care). + The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue? + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerABusMil1553bStatusAddressQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier`` command. + + **Description:** + - This command specifies the qualifier to use when triggering on the MIL-STD-1553 status + address field. The default is EQUAL. The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier {LESSthan|MOREthan|EQual|UNEQual|LESSEQual|MOREEQual} + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier? + + **Info:** + - ``LESSthan`` sets the Status Address qualifier to less than. + - ``MOREthan`` sets the Status Address qualifier to greater than. + - ``EQual`` sets the Status Address qualifier to equal. + - ``UNEQual`` sets the Status Address qualifier to not equal. + - ``LESSEQual`` sets the Status Address qualifier to less than or equal. + - ``MOREEQual`` sets the Status Address qualifier to greater than or equal. + """ # noqa: E501 + + +class TriggerABusMil1553bStatusAddressFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat`` command. + + **Description:** + - This command specifies the format (binary or hex) of the bit pattern to use when + triggering on the MIL-STD-1553 status address field. The trigger condition needs to be set + to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusMil1553bStatusAddress(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusMil1553bStatusAddressFormat(device, f"{self._cmd_syntax}:FORMat") + self._qualifier = TriggerABusMil1553bStatusAddressQualifier( + device, f"{self._cmd_syntax}:QUALifier" + ) + self._value = TriggerABusMil1553bStatusAddressValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusMil1553bStatusAddressFormat: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat`` command. + + **Description:** + - This command specifies the format (binary or hex) of the bit pattern to use when + triggering on the MIL-STD-1553 status address field. The trigger condition needs to be + set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + @property + def qualifier(self) -> TriggerABusMil1553bStatusAddressQualifier: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier`` command. + + **Description:** + - This command specifies the qualifier to use when triggering on the MIL-STD-1553 status + address field. The default is EQUAL. The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier?`` query and raise an AssertionError + if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier {LESSthan|MOREthan|EQual|UNEQual|LESSEQual|MOREEQual} + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier? + + **Info:** + - ``LESSthan`` sets the Status Address qualifier to less than. + - ``MOREthan`` sets the Status Address qualifier to greater than. + - ``EQual`` sets the Status Address qualifier to equal. + - ``UNEQual`` sets the Status Address qualifier to not equal. + - ``LESSEQual`` sets the Status Address qualifier to less than or equal. + - ``MOREEQual`` sets the Status Address qualifier to greater than or equal. + """ # noqa: E501 + return self._qualifier + + @property + def value(self) -> TriggerABusMil1553bStatusAddressValue: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. + + **Description:** + - This command specifies the value of the 5-bit remote terminal address to use when + triggering on the MIL-STD-1553 status address field. The default is all X's (don't + care). The trigger condition must be set to STATUS. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue + - TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue? + """ + return self._value + + +class TriggerABusMil1553bStatus(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:STATUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.address``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess`` command tree. + - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._address = TriggerABusMil1553bStatusAddress(device, f"{self._cmd_syntax}:ADDRess") + self._bit = TriggerABusMil1553bStatusBit(device, f"{self._cmd_syntax}:BIT") + + @property + def address(self) -> TriggerABusMil1553bStatusAddress: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess:VALue`` command. + """ + return self._address + + @property + def bit(self) -> TriggerABusMil1553bStatusBit: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS:BIT?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:STATUS:BIT?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.bcr``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BCR`` command. + - ``.busy``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:BUSY`` command. + - ``.dbca``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:DBCA`` command. + - ``.instr``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:INSTR`` command. + - ``.me``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:ME`` command. + - ``.parity``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:PARity`` command. + - ``.srq``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SRQ`` command. + - ``.subsf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:SUBSF`` command. + - ``.tf``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT:TF`` command. + """ + return self._bit + + +class TriggerABusMil1553bErrtype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:ERRTYPE`` command. + + **Description:** + - This command specifies the signaling error type to use for a MIL-STD-1553 bus data word + trigger: Parity, Sync, Manchester, or Data. The trigger condition must be set to ERRor. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:ERRTYPE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:ERRTYPE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:ERRTYPE {PARity|SYNC|MANCHester|DATA} + - TRIGger:A:BUS:MIL1553B:ERRTYPE? + + **Info:** + - ``PARity`` - a failed parity check. + - ``SYNc`` - the high to low, or low to high transition doesn't happen in the middle of the + sync time as it should. + - ``MANCHester`` - no transition in a bit time. + - ``DATA`` - a non-contiguous data error. + """ + + +class TriggerABusMil1553bDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. + + **Description:** + - This command specifies the value to use for a MIL-STD-1553 bus data word trigger. This is + a 16-bit field. The default is all X's (don't care). The trigger condition must be set to + DATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:DATA:VALue + - TRIGger:A:BUS:MIL1553B:DATA:VALue? + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerABusMil1553bDataParity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:DATA:PARity`` command. + + **Description:** + - This command specifies the parity to use when triggering on a MIL-STD-1553 bus data word + parity bit. The trigger condition must be set to DATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:PARity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:PARity?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:PARity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:DATA:PARity {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:DATA:PARity? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:DATA:FORMat`` command. + + **Description:** + - This command specifies the format (binary or hex) of the bit pattern to use for a + MIL-STD-1553 bus data word trigger. The trigger condition needs to be set to DATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:DATA:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:DATA:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusMil1553bData(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:DATA`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:DATA:FORMat`` command. + - ``.parity``: The ``TRIGger:A:BUS:MIL1553B:DATA:PARity`` command. + - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusMil1553bDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._parity = TriggerABusMil1553bDataParity(device, f"{self._cmd_syntax}:PARity") + self._value = TriggerABusMil1553bDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusMil1553bDataFormat: + """Return the ``TRIGger:A:BUS:MIL1553B:DATA:FORMat`` command. + + **Description:** + - This command specifies the format (binary or hex) of the bit pattern to use for a + MIL-STD-1553 bus data word trigger. The trigger condition needs to be set to DATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:DATA:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:DATA:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + @property + def parity(self) -> TriggerABusMil1553bDataParity: + """Return the ``TRIGger:A:BUS:MIL1553B:DATA:PARity`` command. + + **Description:** + - This command specifies the parity to use when triggering on a MIL-STD-1553 bus data + word parity bit. The trigger condition must be set to DATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:PARity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:PARity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:PARity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:DATA:PARity {0|1|X|ZERo|ONE|NOCARE|DONTCare|OFF|ON} + - TRIGger:A:BUS:MIL1553B:DATA:PARity? + + **Info:** + - ``0, ZERO`` sets the value to 0. + - ``1, ONE`` sets the value to 1. + - ``X, NOCARE`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._parity + + @property + def value(self) -> TriggerABusMil1553bDataValue: + """Return the ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. + + **Description:** + - This command specifies the value to use for a MIL-STD-1553 bus data word trigger. This + is a 16-bit field. The default is all X's (don't care). The trigger condition must be + set to DATA. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:DATA:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:DATA:VALue + - TRIGger:A:BUS:MIL1553B:DATA:VALue? + """ + return self._value + + +class TriggerABusMil1553bCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:CONDition`` command. + + **Description:** + - This command specifies which word type or condition within a MIL-STD-1553 bus word to + trigger on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:CONDition value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:CONDition {SYNC|COMMAND|STATUS|DATA|TIMe|ERRor} + - TRIGger:A:BUS:MIL1553B:CONDition? + + **Info:** + - ``SYNC`` refers to the 3-bit sync pulse that precedes each word. + - ``COMMAND`` is one of 3 16-bit word types. + - ``STATUS`` is one of 3 16-bit word types. + - ``DATA`` is one of 3 16-bit word types. + - ``TIMe`` specifies a trigger on either the RT (remote terminal response time), or the IMG + (Inter-message Gap). Use the commands ``TRIGGER:A:BUS:MIL1553B:TIME:QUALIFIER``, + ``TRIGGER:A:BUS:MIL1553B:TIME:LESSLIMIT``, and ``TRIGGER:A:BUS:MIL1553B:TIME:MORELIMIT`` + to specify the time parameters. + - ``ERRor`` specifies to trigger upon a signaling error. (You can specify which type of + error - Parity, Sync, Manchester or Non-contiguous Data - by using the + ``TRIGGER:A:BUS:MIL1553B:ERRTYPE`` command.). + """ + + +class TriggerABusMil1553bCommandTrbit(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. + + **Description:** + - This command specifies a trigger on either a 'transmit' or a 'receive' signal for the + transmit/receive bit (bit 9) for a MIL-STD-1553 bus command word trigger. The trigger + condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:TRBit {RX|TX|X|DONTCare} + - TRIGger:A:BUS:MIL1553B:COMMAND:TRBit? + + **Info:** + - ``TX`` (logic 1) directs the instrument to trigger on a TX or 'transmit' from a remote + terminal . + - ``RX`` (logic 0) directs the instrument to trigger on an RX or 'receive' from a remote + terminal. + - ``X, DONTCare`` indicates 'don't care'. + """ + + +class TriggerABusMil1553bCommandSubaddressFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat`` command. + + **Description:** + - This command specifies the data format (binary or hex) of the sub-address field bit + pattern to use in a MIL-STD-1553 bus command word sub-address trigger. The trigger + condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusMil1553bCommandSubaddress(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress`` command. + + **Description:** + - This command specifies the 5 bit sub-address to use in a MIL-STD-1553 bus command word + sub-address trigger. When the sub-address value is set to 00000 or 11111 binary, it + specifies that the command is a 'Mode Code' command. Any other value specifies that it is + a 'Word Count' command. The default is all X's (don't care). The trigger condition needs + to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress? + + Properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat`` command. + """ + + _WRAP_ARG_WITH_QUOTES = True + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusMil1553bCommandSubaddressFormat( + device, f"{self._cmd_syntax}:FORMat" + ) + + @property + def format(self) -> TriggerABusMil1553bCommandSubaddressFormat: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat`` command. + + **Description:** + - This command specifies the data format (binary or hex) of the sub-address field bit + pattern to use in a MIL-STD-1553 bus command word sub-address trigger. The trigger + condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + +class TriggerABusMil1553bCommandParity(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity`` command. + + **Description:** + - This command specifies the parity to use in a MIL-STD-1553 bus command word trigger. The + trigger condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:PARity {0|1|X|ZERo|ONE|NOCARE|OFF|ON|DONTCare} + - TRIGger:A:BUS:MIL1553B:COMMAND:PARity? + + **Info:** + - ``0`` + - ``1`` + - ``X`` sets the value to X ('don't care'), which is the default. + - ``ZERO`` sets the value to 0. + - ``ONE`` sets the value to 1. + - ``NOCARE`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + + +class TriggerABusMil1553bCommandCountFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat`` command. + + **Description:** + - This command specifies the data format (binary or hex) of the bit pattern for the 5-bit + Word Count/Mode Code field to use in a MIL-STD-1553 bus command word trigger. The trigger + condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusMil1553bCommandCount(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt`` command. + + **Description:** + - This command specifies the bit pattern for the 5-bit Word Count/Mode Code sub-address + field to use in a MIL-STD-1553 bus command word trigger. (Use the command + ``TRIGGER:A:BUS:MIL1553B:COMMAND:SUBADDRESS`` to specify Word Count or Mode Code.) In Word + Count mode, this field defines the number of data words to be transmitted or received, + depending on the T/R bit setting. (Use the command + ``TRIGGER:A:BUS:MIL1553B:COMMAND:TRBIT`` to set the T/R bit.) A word count value of 0 + actually indicates a transfer of 32 data words. The trigger condition needs to be set to + COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt? + + **Info:** + - ``QString`` is a quoted string of up to 5 characters, where the allowable characters are + 0, 1 and X. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat`` command. + """ + + _WRAP_ARG_WITH_QUOTES = True + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusMil1553bCommandCountFormat(device, f"{self._cmd_syntax}:FORMat") + + @property + def format(self) -> TriggerABusMil1553bCommandCountFormat: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat`` command. + + **Description:** + - This command specifies the data format (binary or hex) of the bit pattern for the + 5-bit Word Count/Mode Code field to use in a MIL-STD-1553 bus command word trigger. + The trigger condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + +class TriggerABusMil1553bCommandAddressValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. + + **Description:** + - This command specifies the value of the 5-bit remote terminal address to use in a + MIL-STD-1553 bus command word trigger. The trigger condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue? + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerABusMil1553bCommandAddressQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier`` command. + + **Description:** + - This command specifies the qualifier to use when triggering on a MIL-STD-1553 bus command + word remote terminal address field. The trigger condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier {LESSthan|MOREthan|EQual|UNEQual|LESSEQual|MOREEQual} + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier? + + **Info:** + - ``LESSthan`` sets the Command Address qualifier to less than. + - ``MOREthan`` sets the Command Address qualifier to greater than. + - ``EQual`` sets the Command Address qualifier to equal. + - ``UNEQual`` sets the Command Address qualifier to not equal. + - ``LESSEQual`` sets the Command Address qualifier to less than or equal. + - ``MOREEQual`` sets the Command Address qualifier to greater than or equal. + """ # noqa: E501 + + +class TriggerABusMil1553bCommandAddressFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat`` command. + + **Description:** + - This command sets the data format of the address (either binary or hex) to use in a + MIL-STD-1553 bus command word trigger. The trigger condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusMil1553bCommandAddress(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusMil1553bCommandAddressFormat(device, f"{self._cmd_syntax}:FORMat") + self._qualifier = TriggerABusMil1553bCommandAddressQualifier( + device, f"{self._cmd_syntax}:QUALifier" + ) + self._value = TriggerABusMil1553bCommandAddressValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusMil1553bCommandAddressFormat: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat`` command. + + **Description:** + - This command sets the data format of the address (either binary or hex) to use in a + MIL-STD-1553 bus command word trigger. The trigger condition needs to be set to + COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat?`` query and raise an AssertionError + if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + @property + def qualifier(self) -> TriggerABusMil1553bCommandAddressQualifier: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier`` command. + + **Description:** + - This command specifies the qualifier to use when triggering on a MIL-STD-1553 bus + command word remote terminal address field. The trigger condition needs to be set to + COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier {LESSthan|MOREthan|EQual|UNEQual|LESSEQual|MOREEQual} + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier? + + **Info:** + - ``LESSthan`` sets the Command Address qualifier to less than. + - ``MOREthan`` sets the Command Address qualifier to greater than. + - ``EQual`` sets the Command Address qualifier to equal. + - ``UNEQual`` sets the Command Address qualifier to not equal. + - ``LESSEQual`` sets the Command Address qualifier to less than or equal. + - ``MOREEQual`` sets the Command Address qualifier to greater than or equal. + """ # noqa: E501 + return self._qualifier + + @property + def value(self) -> TriggerABusMil1553bCommandAddressValue: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. + + **Description:** + - This command specifies the value of the 5-bit remote terminal address to use in a + MIL-STD-1553 bus command word trigger. The trigger condition needs to be set to + COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue + - TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue? + """ + return self._value + + +class TriggerABusMil1553bCommand(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B:COMMAND`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.address``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess`` command tree. + - ``.count``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt`` command. + - ``.parity``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity`` command. + - ``.subaddress``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress`` command. + - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._address = TriggerABusMil1553bCommandAddress(device, f"{self._cmd_syntax}:ADDRess") + self._count = TriggerABusMil1553bCommandCount(device, f"{self._cmd_syntax}:COUNt") + self._parity = TriggerABusMil1553bCommandParity(device, f"{self._cmd_syntax}:PARity") + self._subaddress = TriggerABusMil1553bCommandSubaddress( + device, f"{self._cmd_syntax}:SUBADdress" + ) + self._trbit = TriggerABusMil1553bCommandTrbit(device, f"{self._cmd_syntax}:TRBit") + + @property + def address(self) -> TriggerABusMil1553bCommandAddress: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess:VALue`` command. + """ + return self._address + + @property + def count(self) -> TriggerABusMil1553bCommandCount: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt`` command. + + **Description:** + - This command specifies the bit pattern for the 5-bit Word Count/Mode Code sub-address + field to use in a MIL-STD-1553 bus command word trigger. (Use the command + ``TRIGGER:A:BUS:MIL1553B:COMMAND:SUBADDRESS`` to specify Word Count or Mode Code.) In + Word Count mode, this field defines the number of data words to be transmitted or + received, depending on the T/R bit setting. (Use the command + ``TRIGGER:A:BUS:MIL1553B:COMMAND:TRBIT`` to set the T/R bit.) A word count value of 0 + actually indicates a transfer of 32 data words. The trigger condition needs to be set + to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt + - TRIGger:A:BUS:MIL1553B:COMMAND:COUNt? + + **Info:** + - ``QString`` is a quoted string of up to 5 characters, where the allowable characters + are 0, 1 and X. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt:FORMat`` command. + """ + return self._count + + @property + def parity(self) -> TriggerABusMil1553bCommandParity: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity`` command. + + **Description:** + - This command specifies the parity to use in a MIL-STD-1553 bus command word trigger. + The trigger condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:PARity {0|1|X|ZERo|ONE|NOCARE|OFF|ON|DONTCare} + - TRIGger:A:BUS:MIL1553B:COMMAND:PARity? + + **Info:** + - ``0`` + - ``1`` + - ``X`` sets the value to X ('don't care'), which is the default. + - ``ZERO`` sets the value to 0. + - ``ONE`` sets the value to 1. + - ``NOCARE`` sets the value to X ('don't care'), which is the default. + - ``OFF`` sets the value to 0. + - ``ON`` sets the value to 1. + """ + return self._parity + + @property + def subaddress(self) -> TriggerABusMil1553bCommandSubaddress: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress`` command. + + **Description:** + - This command specifies the 5 bit sub-address to use in a MIL-STD-1553 bus command word + sub-address trigger. When the sub-address value is set to 00000 or 11111 binary, it + specifies that the command is a 'Mode Code' command. Any other value specifies that it + is a 'Word Count' command. The default is all X's (don't care). The trigger condition + needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress + - TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress? + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress:FORMat`` command. + """ + return self._subaddress + + @property + def trbit(self) -> TriggerABusMil1553bCommandTrbit: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. + + **Description:** + - This command specifies a trigger on either a 'transmit' or a 'receive' signal for the + transmit/receive bit (bit 9) for a MIL-STD-1553 bus command word trigger. The trigger + condition needs to be set to COMMAND. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:COMMAND:TRBit {RX|TX|X|DONTCare} + - TRIGger:A:BUS:MIL1553B:COMMAND:TRBit? + + **Info:** + - ``TX`` (logic 1) directs the instrument to trigger on a TX or 'transmit' from a remote + terminal . + - ``RX`` (logic 0) directs the instrument to trigger on an RX or 'receive' from a remote + terminal. + - ``X, DONTCare`` indicates 'don't care'. + """ + return self._trbit + + +class TriggerABusMil1553b(SCPICmdRead): + """The ``TRIGger:A:BUS:MIL1553B`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.command``: The ``TRIGger:A:BUS:MIL1553B:COMMAND`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:MIL1553B:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:MIL1553B:DATA`` command tree. + - ``.errtype``: The ``TRIGger:A:BUS:MIL1553B:ERRTYPE`` command. + - ``.status``: The ``TRIGger:A:BUS:MIL1553B:STATUS`` command tree. + - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._command = TriggerABusMil1553bCommand(device, f"{self._cmd_syntax}:COMMAND") + self._condition = TriggerABusMil1553bCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerABusMil1553bData(device, f"{self._cmd_syntax}:DATA") + self._errtype = TriggerABusMil1553bErrtype(device, f"{self._cmd_syntax}:ERRTYPE") + self._status = TriggerABusMil1553bStatus(device, f"{self._cmd_syntax}:STATUS") + self._time = TriggerABusMil1553bTime(device, f"{self._cmd_syntax}:TIME") + + @property + def command(self) -> TriggerABusMil1553bCommand: + """Return the ``TRIGger:A:BUS:MIL1553B:COMMAND`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:COMMAND?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:ADDRess`` command tree. + - ``.count``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:COUNt`` command. + - ``.parity``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:PARity`` command. + - ``.subaddress``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:SUBADdress`` command. + - ``.trbit``: The ``TRIGger:A:BUS:MIL1553B:COMMAND:TRBit`` command. + """ + return self._command + + @property + def condition(self) -> TriggerABusMil1553bCondition: + """Return the ``TRIGger:A:BUS:MIL1553B:CONDition`` command. + + **Description:** + - This command specifies which word type or condition within a MIL-STD-1553 bus word to + trigger on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:CONDition?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:CONDition?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:CONDition value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:CONDition {SYNC|COMMAND|STATUS|DATA|TIMe|ERRor} + - TRIGger:A:BUS:MIL1553B:CONDition? + + **Info:** + - ``SYNC`` refers to the 3-bit sync pulse that precedes each word. + - ``COMMAND`` is one of 3 16-bit word types. + - ``STATUS`` is one of 3 16-bit word types. + - ``DATA`` is one of 3 16-bit word types. + - ``TIMe`` specifies a trigger on either the RT (remote terminal response time), or the + IMG (Inter-message Gap). Use the commands ``TRIGGER:A:BUS:MIL1553B:TIME:QUALIFIER``, + ``TRIGGER:A:BUS:MIL1553B:TIME:LESSLIMIT``, and + ``TRIGGER:A:BUS:MIL1553B:TIME:MORELIMIT`` to specify the time parameters. + - ``ERRor`` specifies to trigger upon a signaling error. (You can specify which type of + error - Parity, Sync, Manchester or Non-contiguous Data - by using the + ``TRIGGER:A:BUS:MIL1553B:ERRTYPE`` command.). + """ + return self._condition + + @property + def data(self) -> TriggerABusMil1553bData: + """Return the ``TRIGger:A:BUS:MIL1553B:DATA`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:DATA?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:MIL1553B:DATA:FORMat`` command. + - ``.parity``: The ``TRIGger:A:BUS:MIL1553B:DATA:PARity`` command. + - ``.value``: The ``TRIGger:A:BUS:MIL1553B:DATA:VALue`` command. + """ + return self._data + + @property + def errtype(self) -> TriggerABusMil1553bErrtype: + """Return the ``TRIGger:A:BUS:MIL1553B:ERRTYPE`` command. + + **Description:** + - This command specifies the signaling error type to use for a MIL-STD-1553 bus data + word trigger: Parity, Sync, Manchester, or Data. The trigger condition must be set to + ERRor. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:ERRTYPE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:MIL1553B:ERRTYPE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:MIL1553B:ERRTYPE {PARity|SYNC|MANCHester|DATA} + - TRIGger:A:BUS:MIL1553B:ERRTYPE? + + **Info:** + - ``PARity`` - a failed parity check. + - ``SYNc`` - the high to low, or low to high transition doesn't happen in the middle of + the sync time as it should. + - ``MANCHester`` - no transition in a bit time. + - ``DATA`` - a non-contiguous data error. + """ + return self._errtype + + @property + def status(self) -> TriggerABusMil1553bStatus: + """Return the ``TRIGger:A:BUS:MIL1553B:STATUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:STATUS?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``TRIGger:A:BUS:MIL1553B:STATUS:ADDRess`` command tree. + - ``.bit``: The ``TRIGger:A:BUS:MIL1553B:STATUS:BIT`` command tree. + """ + return self._status + + @property + def time(self) -> TriggerABusMil1553bTime: + """Return the ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B:TIME?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.lesslimit``: The ``TRIGger:A:BUS:MIL1553B:TIME:LESSLimit`` command. + - ``.morelimit``: The ``TRIGger:A:BUS:MIL1553B:TIME:MORELimit`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:MIL1553B:TIME:QUALifier`` command. + """ + return self._time + + +class TriggerABusLinIdentifierValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. + + **Description:** + - This command sets or queries the LIN trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:IDentifier:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:IDentifier:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:IDentifier:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:IDentifier:VALue + - TRIGger:A:BUS:LIN:IDentifier:VALue? + + **Info:** + - ```` specifies the identifier value. + """ + + +class TriggerABusLinIdentifierFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:IDentifier:FORMat`` command. + + **Description:** + - This command sets or queries the LIN bus trigger identifier format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:IDentifier:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:IDentifier:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:IDentifier:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:LIN:IDentifier:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + + +class TriggerABusLinIdentifier(SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:IDentifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:IDentifier?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:LIN:IDentifier:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusLinIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") + self._value = TriggerABusLinIdentifierValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusLinIdentifierFormat: + """Return the ``TRIGger:A:BUS:LIN:IDentifier:FORMat`` command. + + **Description:** + - This command sets or queries the LIN bus trigger identifier format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:IDentifier:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:LIN:IDentifier:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:IDentifier:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:LIN:IDentifier:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + return self._format + + @property + def value(self) -> TriggerABusLinIdentifierValue: + """Return the ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. + + **Description:** + - This command sets or queries the LIN trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:IDentifier:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:LIN:IDentifier:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:IDentifier:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:IDentifier:VALue + - TRIGger:A:BUS:LIN:IDentifier:VALue? + + **Info:** + - ```` specifies the identifier value. + """ + return self._value + + +class TriggerABusLinErrtype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:ERRTYPE`` command. + + **Description:** + - This command sets or queries the LIN bus trigger error type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:ERRTYPE?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:ERRTYPE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:ERRTYPE {CHecksum|PARity|SYNC} + - TRIGger:A:BUS:LIN:ERRTYPE? + + **Info:** + - ``CHecksum`` specifies the error type is checksum. + - ``PARity`` specifies the error type is parity. + - ``SYNC`` specifies the error type is sync. + """ + + +class TriggerABusLinDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:VALue + - TRIGger:A:BUS:LIN:DATa:VALue? + + **Info:** + - ```` specifies the data value. + """ + + +class TriggerABusLinDataSize(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data size (the number of contiguous CAN + data bytes to trigger on). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:SIZe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:SIZe + - TRIGger:A:BUS:LIN:DATa:SIZe? + """ + + +class TriggerABusLinDataQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:DATa:QUALifier`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data qualifier. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:QUALifier?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:DATa:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:LIN:DATa:QUALifier? + """ + + +class TriggerABusLinDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:LIN:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusLinData(SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:LIN:DATa:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:LIN:DATa:QUALifier`` command. + - ``.size``: The ``TRIGger:A:BUS:LIN:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusLinDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._qualifier = TriggerABusLinDataQualifier(device, f"{self._cmd_syntax}:QUALifier") + self._size = TriggerABusLinDataSize(device, f"{self._cmd_syntax}:SIZe") + self._value = TriggerABusLinDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusLinDataFormat: + """Return the ``TRIGger:A:BUS:LIN:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:LIN:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + @property + def qualifier(self) -> TriggerABusLinDataQualifier: + """Return the ``TRIGger:A:BUS:LIN:DATa:QUALifier`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data qualifier. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:QUALifier?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:LIN:DATa:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:DATa:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:LIN:DATa:QUALifier? + """ + return self._qualifier + + @property + def size(self) -> TriggerABusLinDataSize: + """Return the ``TRIGger:A:BUS:LIN:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data size (the number of contiguous + CAN data bytes to trigger on). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:SIZe + - TRIGger:A:BUS:LIN:DATa:SIZe? + """ + return self._size + + @property + def value(self) -> TriggerABusLinDataValue: + """Return the ``TRIGger:A:BUS:LIN:DATa:VALue`` command. + + **Description:** + - This command sets or queries the LIN bus trigger data value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:LIN:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:DATa:VALue + - TRIGger:A:BUS:LIN:DATa:VALue? + + **Info:** + - ```` specifies the data value. + """ + return self._value + + +class TriggerABusLinCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:LIN:CONDition`` command. + + **Description:** + - This command sets or queries the LIN bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:CONDition {DATA|IDANDDATA|ERRor|IDentifier|SLEEP|SYNC|WAKEup} + - TRIGger:A:BUS:LIN:CONDition? + """ + + +class TriggerABusLin(SCPICmdRead): + """The ``TRIGger:A:BUS:LIN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.condition``: The ``TRIGger:A:BUS:LIN:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:LIN:DATa`` command tree. + - ``.errtype``: The ``TRIGger:A:BUS:LIN:ERRTYPE`` command. + - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._condition = TriggerABusLinCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerABusLinData(device, f"{self._cmd_syntax}:DATa") + self._errtype = TriggerABusLinErrtype(device, f"{self._cmd_syntax}:ERRTYPE") + self._identifier = TriggerABusLinIdentifier(device, f"{self._cmd_syntax}:IDentifier") + + @property + def condition(self) -> TriggerABusLinCondition: + """Return the ``TRIGger:A:BUS:LIN:CONDition`` command. + + **Description:** + - This command sets or queries the LIN bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:CONDition {DATA|IDANDDATA|ERRor|IDentifier|SLEEP|SYNC|WAKEup} + - TRIGger:A:BUS:LIN:CONDition? + """ + return self._condition + + @property + def data(self) -> TriggerABusLinData: + """Return the ``TRIGger:A:BUS:LIN:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:LIN:DATa:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:LIN:DATa:QUALifier`` command. + - ``.size``: The ``TRIGger:A:BUS:LIN:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:LIN:DATa:VALue`` command. + """ + return self._data + + @property + def errtype(self) -> TriggerABusLinErrtype: + """Return the ``TRIGger:A:BUS:LIN:ERRTYPE`` command. + + **Description:** + - This command sets or queries the LIN bus trigger error type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:ERRTYPE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:LIN:ERRTYPE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:LIN:ERRTYPE {CHecksum|PARity|SYNC} + - TRIGger:A:BUS:LIN:ERRTYPE? + + **Info:** + - ``CHecksum`` specifies the error type is checksum. + - ``PARity`` specifies the error type is parity. + - ``SYNC`` specifies the error type is sync. + """ + return self._errtype + + @property + def identifier(self) -> TriggerABusLinIdentifier: + """Return the ``TRIGger:A:BUS:LIN:IDentifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN:IDentifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN:IDentifier?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:LIN:IDentifier:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:LIN:IDentifier:VALue`` command. + """ + return self._identifier + + +class TriggerABusI2cDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. + + **Description:** + - This command sets or queries the data value of the data token for an I2C trigger when the + trigger condition is Data or Addr + Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:VALue + - TRIGger:A:BUS:I2C:DATa:VALue? + + **Info:** + - ```` specifies the data value. The valid characters are 0, 1, or X representing a + binary number. + """ + + +class TriggerABusI2cDataSize(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the length of the data string in bytes to be used for an I2C + bus trigger when the trigger condition is Data or Addr + Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:SIZe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:SIZe + - TRIGger:A:BUS:I2C:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. + """ + + +class TriggerABusI2cDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the trigger data format for the I2C bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:I2C:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format for the I2C bus trigger as Binary. + - ``HEXadecimal`` specifies the data format for the I2C bus trigger as Hexadecimal. + """ + + +class TriggerABusI2cDataDirection(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:DATa:DIRection`` command. + + **Description:** + - This command sets or queries the data direction for the I2C bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:DIRection?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:DIRection?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:DATa:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:I2C:DATa:DIRection? + + **Info:** + - ``DONTCare`` sets the data direction for the I2C bus to Don't Care. + - ``READ`` sets the data direction for the I2C bus to Read. + - ``WRITE`` sets the data direction for the I2C bus to Write. + """ + + +class TriggerABusI2cData(SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.direction``: The ``TRIGger:A:BUS:I2C:DATa:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:I2C:DATa:FORMat`` command. + - ``.size``: The ``TRIGger:A:BUS:I2C:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._direction = TriggerABusI2cDataDirection(device, f"{self._cmd_syntax}:DIRection") + self._format = TriggerABusI2cDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._size = TriggerABusI2cDataSize(device, f"{self._cmd_syntax}:SIZe") + self._value = TriggerABusI2cDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def direction(self) -> TriggerABusI2cDataDirection: + """Return the ``TRIGger:A:BUS:I2C:DATa:DIRection`` command. + + **Description:** + - This command sets or queries the data direction for the I2C bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:DIRection?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:I2C:DATa:DIRection?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:DATa:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:I2C:DATa:DIRection? + + **Info:** + - ``DONTCare`` sets the data direction for the I2C bus to Don't Care. + - ``READ`` sets the data direction for the I2C bus to Read. + - ``WRITE`` sets the data direction for the I2C bus to Write. + """ + return self._direction + + @property + def format(self) -> TriggerABusI2cDataFormat: + """Return the ``TRIGger:A:BUS:I2C:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the trigger data format for the I2C bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:I2C:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format for the I2C bus trigger as Binary. + - ``HEXadecimal`` specifies the data format for the I2C bus trigger as Hexadecimal. + """ + return self._format + + @property + def size(self) -> TriggerABusI2cDataSize: + """Return the ``TRIGger:A:BUS:I2C:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the length of the data string in bytes to be used for an + I2C bus trigger when the trigger condition is Data or Addr + Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:SIZe + - TRIGger:A:BUS:I2C:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. + """ + return self._size + + @property + def value(self) -> TriggerABusI2cDataValue: + """Return the ``TRIGger:A:BUS:I2C:DATa:VALue`` command. + + **Description:** + - This command sets or queries the data value of the data token for an I2C trigger when + the trigger condition is Data or Addr + Data. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:DATa:VALue + - TRIGger:A:BUS:I2C:DATa:VALue? + + **Info:** + - ```` specifies the data value. The valid characters are 0, 1, or X + representing a binary number. + """ + return self._value + + +class TriggerABusI2cCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:CONDition`` command. + + **Description:** + - This command sets or queries the trigger condition for the I2C bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:CONDition {ACKMISS|ADDress|ADDRANDDATA|DATa|REPEATstart|STARt|STOP} + - TRIGger:A:BUS:I2C:CONDition? + + **Info:** + - ``ACKMISS`` sets the trigger condition to Missing Acknowledgement. + - ``ADDRess`` sets the trigger condition to Address. + - ``ADDRANDDATA`` sets the trigger condition to Address and Data. + - ``DATA`` sets the trigger condition to data. + - ``REPEATstart`` sets the trigger condition to Repeat of Start. + - ``STARt`` sets the trigger condition to Start. + - ``STOP`` sets the trigger condition to Stop. + """ + + +class TriggerABusI2cAddressValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. + + **Description:** + - This command sets or queries the binary address string used for the I2C trigger of the + bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:VALue + - TRIGger:A:BUS:I2C:ADDress:VALue? + + **Info:** + - ```` specifies the address value. This is either 7 bits or 10 bits depending on + the address mode. The valid characters are 0-9, A-F, and X for addresses in hexadecimal + format and 0, 1, and X otherwise. + """ + + +class TriggerABusI2cAddressType(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:ADDress:TYPe`` command. + + **Description:** + - This command sets or queries the address type for the I2C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:TYPe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:TYPe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:TYPe {NONe|STARtbyte|HSMODe|GENeralcall|EEPROm|CBUS} + - TRIGger:A:BUS:I2C:ADDress:TYPe? + + **Info:** + - ``NONe`` specifies the address type as None. + - ``STARtbyte`` specifies the address type as Start byte. + - ``HSMODe`` specifies the address type as High Speed mode. + - ``GENeralcall`` specifies the address type as General Call. + - ``EEPROm`` specifies the address type as EEPROM. + - ``CBUS`` specifies the address type as CBUS. + """ + + +class TriggerABusI2cAddressMode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:ADDress:MODe`` command. + + **Description:** + - This command sets or queries the address mode for the I2C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:MODe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:MODe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:MODe {ADDR7|ADDR10} + - TRIGger:A:BUS:I2C:ADDress:MODe? + + **Info:** + - ``ADDR7`` specifies the address mode as ADDR7. + - ``ADDR10`` specifies the address mode as ADDR10. + """ + + +class TriggerABusI2cAddressFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:ADDress:FORMat`` command. + + **Description:** + - This command sets or queries the address format for the I2C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:ADDress:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:I2C:ADDress:FORMat? + + **Info:** + - ``BINary`` specifies the address format for the I2C bus trigger as Binary. + - ``HEXadecimal`` specifies the address format for the I2C bus trigger as Hexadecimal. + """ + + +class TriggerABusI2cAddress(SCPICmdRead): + """The ``TRIGger:A:BUS:I2C:ADDress`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:I2C:ADDress:FORMat`` command. + - ``.mode``: The ``TRIGger:A:BUS:I2C:ADDress:MODe`` command. + - ``.type``: The ``TRIGger:A:BUS:I2C:ADDress:TYPe`` command. + - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusI2cAddressFormat(device, f"{self._cmd_syntax}:FORMat") + self._mode = TriggerABusI2cAddressMode(device, f"{self._cmd_syntax}:MODe") + self._type = TriggerABusI2cAddressType(device, f"{self._cmd_syntax}:TYPe") + self._value = TriggerABusI2cAddressValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusI2cAddressFormat: + """Return the ``TRIGger:A:BUS:I2C:ADDress:FORMat`` command. + + **Description:** + - This command sets or queries the address format for the I2C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:I2C:ADDress:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:ADDress:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:FORMat {BINary|HEXadecimal} + - TRIGger:A:BUS:I2C:ADDress:FORMat? + + **Info:** + - ``BINary`` specifies the address format for the I2C bus trigger as Binary. + - ``HEXadecimal`` specifies the address format for the I2C bus trigger as Hexadecimal. + """ + return self._format + + @property + def mode(self) -> TriggerABusI2cAddressMode: + """Return the ``TRIGger:A:BUS:I2C:ADDress:MODe`` command. + + **Description:** + - This command sets or queries the address mode for the I2C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:MODe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:ADDress:MODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:MODe {ADDR7|ADDR10} + - TRIGger:A:BUS:I2C:ADDress:MODe? + + **Info:** + - ``ADDR7`` specifies the address mode as ADDR7. + - ``ADDR10`` specifies the address mode as ADDR10. + """ + return self._mode + + @property + def type(self) -> TriggerABusI2cAddressType: + """Return the ``TRIGger:A:BUS:I2C:ADDress:TYPe`` command. + + **Description:** + - This command sets or queries the address type for the I2C bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:TYPe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:ADDress:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:TYPe {NONe|STARtbyte|HSMODe|GENeralcall|EEPROm|CBUS} + - TRIGger:A:BUS:I2C:ADDress:TYPe? + + **Info:** + - ``NONe`` specifies the address type as None. + - ``STARtbyte`` specifies the address type as Start byte. + - ``HSMODe`` specifies the address type as High Speed mode. + - ``GENeralcall`` specifies the address type as General Call. + - ``EEPROm`` specifies the address type as EEPROM. + - ``CBUS`` specifies the address type as CBUS. + """ + return self._type + + @property + def value(self) -> TriggerABusI2cAddressValue: + """Return the ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. + + **Description:** + - This command sets or queries the binary address string used for the I2C trigger of the + bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress:VALue?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:I2C:ADDress:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:ADDress:VALue + - TRIGger:A:BUS:I2C:ADDress:VALue? + + **Info:** + - ```` specifies the address value. This is either 7 bits or 10 bits depending + on the address mode. The valid characters are 0-9, A-F, and X for addresses in + hexadecimal format and 0, 1, and X otherwise. + """ + return self._value + + +class TriggerABusI2c(SCPICmdRead): + """The ``TRIGger:A:BUS:I2C`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.address``: The ``TRIGger:A:BUS:I2C:ADDress`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:I2C:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._address = TriggerABusI2cAddress(device, f"{self._cmd_syntax}:ADDress") + self._condition = TriggerABusI2cCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerABusI2cData(device, f"{self._cmd_syntax}:DATa") + + @property + def address(self) -> TriggerABusI2cAddress: + """Return the ``TRIGger:A:BUS:I2C:ADDress`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:ADDress?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:ADDress?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:I2C:ADDress:FORMat`` command. + - ``.mode``: The ``TRIGger:A:BUS:I2C:ADDress:MODe`` command. + - ``.type``: The ``TRIGger:A:BUS:I2C:ADDress:TYPe`` command. + - ``.value``: The ``TRIGger:A:BUS:I2C:ADDress:VALue`` command. + """ + return self._address + + @property + def condition(self) -> TriggerABusI2cCondition: + """Return the ``TRIGger:A:BUS:I2C:CONDition`` command. + + **Description:** + - This command sets or queries the trigger condition for the I2C bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:I2C:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:I2C:CONDition {ACKMISS|ADDress|ADDRANDDATA|DATa|REPEATstart|STARt|STOP} + - TRIGger:A:BUS:I2C:CONDition? + + **Info:** + - ``ACKMISS`` sets the trigger condition to Missing Acknowledgement. + - ``ADDRess`` sets the trigger condition to Address. + - ``ADDRANDDATA`` sets the trigger condition to Address and Data. + - ``DATA`` sets the trigger condition to data. + - ``REPEATstart`` sets the trigger condition to Repeat of Start. + - ``STARt`` sets the trigger condition to Start. + - ``STOP`` sets the trigger condition to Stop. + """ + return self._condition + + @property + def data(self) -> TriggerABusI2cData: + """Return the ``TRIGger:A:BUS:I2C:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.direction``: The ``TRIGger:A:BUS:I2C:DATa:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:I2C:DATa:FORMat`` command. + - ``.size``: The ``TRIGger:A:BUS:I2C:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:I2C:DATa:VALue`` command. + """ + return self._data + + +class TriggerABusFlexrayIdentifierValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:IDentifier:VALue + - TRIGger:A:BUS:FLEXRAY:IDentifier:VALue? + + **Info:** + - ```` specifies the identifier value. + """ + + +class TriggerABusFlexrayIdentifierQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger identifier qualifier. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier? + """ # noqa: E501 + + +class TriggerABusFlexrayIdentifierFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger identifier format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + + +class TriggerABusFlexrayIdentifier(SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:IDentifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:IDentifier?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusFlexrayIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") + self._qualifier = TriggerABusFlexrayIdentifierQualifier( + device, f"{self._cmd_syntax}:QUALifier" + ) + self._value = TriggerABusFlexrayIdentifierValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusFlexrayIdentifierFormat: + """Return the ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger identifier format. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + return self._format + + @property + def qualifier(self) -> TriggerABusFlexrayIdentifierQualifier: + """Return the ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger identifier qualifier. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier? + """ # noqa: E501 + return self._qualifier + + @property + def value(self) -> TriggerABusFlexrayIdentifierValue: + """Return the ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:IDentifier:VALue + - TRIGger:A:BUS:FLEXRAY:IDentifier:VALue? + + **Info:** + - ```` specifies the identifier value. + """ + return self._value + + +class TriggerABusFlexrayHeaderPaylength(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header Payload Length. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth + - TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth? + """ + + +class TriggerABusFlexrayHeaderIndbits(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header Indicator Bits. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:INDBits + - TRIGger:A:BUS:FLEXRAY:HEADER:INDBits? + + **Info:** + - ```` specifies the header Indicator Bits. + """ + + +class TriggerABusFlexrayHeaderFrameid(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header frame ID. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID + - TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID? + + **Info:** + - ```` specifies the header frame ID. + """ + + +class TriggerABusFlexrayHeaderCyclecount(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header cycle count. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount + - TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount? + + **Info:** + - ```` specifies the header cycle count. + """ + + +class TriggerABusFlexrayHeaderCrc(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header CRC. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:CRC + - TRIGger:A:BUS:FLEXRAY:HEADER:CRC? + + **Info:** + - ```` specifies the cyclic redundancy code. + """ + + +class TriggerABusFlexrayHeader(SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:HEADER`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.crc``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC`` command. + - ``.cyclecount``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount`` command. + - ``.frameid``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID`` command. + - ``.indbits``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits`` command. + - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._crc = TriggerABusFlexrayHeaderCrc(device, f"{self._cmd_syntax}:CRC") + self._cyclecount = TriggerABusFlexrayHeaderCyclecount( + device, f"{self._cmd_syntax}:CYCLECount" + ) + self._frameid = TriggerABusFlexrayHeaderFrameid(device, f"{self._cmd_syntax}:FRAMEID") + self._indbits = TriggerABusFlexrayHeaderIndbits(device, f"{self._cmd_syntax}:INDBits") + self._paylength = TriggerABusFlexrayHeaderPaylength(device, f"{self._cmd_syntax}:PAYLENgth") + + @property + def crc(self) -> TriggerABusFlexrayHeaderCrc: + """Return the ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header CRC. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:CRC + - TRIGger:A:BUS:FLEXRAY:HEADER:CRC? + + **Info:** + - ```` specifies the cyclic redundancy code. + """ + return self._crc + + @property + def cyclecount(self) -> TriggerABusFlexrayHeaderCyclecount: + """Return the ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header cycle count. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount + - TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount? + + **Info:** + - ```` specifies the header cycle count. + """ + return self._cyclecount + + @property + def frameid(self) -> TriggerABusFlexrayHeaderFrameid: + """Return the ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header frame ID. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID + - TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID? + + **Info:** + - ```` specifies the header frame ID. + """ + return self._frameid + + @property + def indbits(self) -> TriggerABusFlexrayHeaderIndbits: + """Return the ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header Indicator Bits. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:INDBits + - TRIGger:A:BUS:FLEXRAY:HEADER:INDBits? + + **Info:** + - ```` specifies the header Indicator Bits. + """ + return self._indbits + + @property + def paylength(self) -> TriggerABusFlexrayHeaderPaylength: + """Return the ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger header Payload Length. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth + - TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth? + """ + return self._paylength + + +class TriggerABusFlexrayFrametype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:FRAMEType`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger frame type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:FRAMEType?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:FRAMEType?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:FRAMEType value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:FRAMEType {NORMal|PAYload|NULL|SYNC|STARTup} + - TRIGger:A:BUS:FLEXRAY:FRAMEType? + """ + + +class TriggerABusFlexrayErrtype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:ERRTYPE`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger error type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:ERRTYPE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:ERRTYPE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:ERRTYPE {CRCHEADer|CRCTRAILer|NULLFRSTATIC|NULLFRDYNAMIC |SYNCFRAME|STARTUPNOSYNC} + - TRIGger:A:BUS:FLEXRAY:ERRTYPE? + """ # noqa: E501 + + +class TriggerABusFlexrayEoftype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:EOFTYPE`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger end of file type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:EOFTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:EOFTYPE?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:EOFTYPE value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:EOFTYPE {ALL|STATIC|DYNAMIC} + - TRIGger:A:BUS:FLEXRAY:EOFTYPE? + + **Info:** + - ``ALL`` specifies either end of file type. + - ``STATIC`` specifies the static end of file type. + - ``DYNAMIC`` specifies the static end of file type. + """ + + +class TriggerABusFlexrayDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:VALue + - TRIGger:A:BUS:FLEXRAY:DATa:VALue? + + **Info:** + - ```` specifies the data value. + """ + + +class TriggerABusFlexrayDataSize(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data size in bytes. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:SIZe + - TRIGger:A:BUS:FLEXRAY:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. A setting of X/Don't care is accomplished by + setting the size to -1. + """ + + +class TriggerABusFlexrayDataQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data qualifier. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:DATa:QUALifier? + """ + + +class TriggerABusFlexrayDataOffset(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data offset. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:OFFSet + - TRIGger:A:BUS:FLEXRAY:DATa:OFFSet? + + **Info:** + - ```` specifies the data offset in bytes. + """ + + +class TriggerABusFlexrayDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusFlexrayData(SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat`` command. + - ``.offset``: The ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier`` command. + - ``.size``: The ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusFlexrayDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._offset = TriggerABusFlexrayDataOffset(device, f"{self._cmd_syntax}:OFFSet") + self._qualifier = TriggerABusFlexrayDataQualifier(device, f"{self._cmd_syntax}:QUALifier") + self._size = TriggerABusFlexrayDataSize(device, f"{self._cmd_syntax}:SIZe") + self._value = TriggerABusFlexrayDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusFlexrayDataFormat: + """Return the ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + @property + def offset(self) -> TriggerABusFlexrayDataOffset: + """Return the ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data offset. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:OFFSet + - TRIGger:A:BUS:FLEXRAY:DATa:OFFSet? + + **Info:** + - ```` specifies the data offset in bytes. + """ + return self._offset + + @property + def qualifier(self) -> TriggerABusFlexrayDataQualifier: + """Return the ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data qualifier. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:DATa:QUALifier? + """ # noqa: E501 + return self._qualifier + + @property + def size(self) -> TriggerABusFlexrayDataSize: + """Return the ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data size in bytes. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:SIZe + - TRIGger:A:BUS:FLEXRAY:DATa:SIZe? + + **Info:** + - ```` specifies the data size in bytes. A setting of X/Don't care is accomplished + by setting the size to -1. + """ + return self._size + + @property + def value(self) -> TriggerABusFlexrayDataValue: + """Return the ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger data value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:DATa:VALue + - TRIGger:A:BUS:FLEXRAY:DATa:VALue? + + **Info:** + - ```` specifies the data value. + """ + return self._value + + +class TriggerABusFlexrayCyclecountValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger cycle count value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue? + + **Info:** + - ```` specifies the cycle count value. + """ + + +class TriggerABusFlexrayCyclecountQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier`` command. + + **Description:** + - This command sets or queries FLEXRAY bus trigger cycle count qualifier. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier? + """ # noqa: E501 + + +class TriggerABusFlexrayCyclecountFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat`` command. + + **Description:** + - This command sets or queries FLEXRAY bus trigger cycle count format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat? + + **Info:** + - ``BINary`` specifies the cycle count format as binary. + - ``HEX`` specifies the cycle count format as hexadecimal. + """ + + +class TriggerABusFlexrayCyclecount(SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusFlexrayCyclecountFormat(device, f"{self._cmd_syntax}:FORMat") + self._qualifier = TriggerABusFlexrayCyclecountQualifier( + device, f"{self._cmd_syntax}:QUALifier" + ) + self._value = TriggerABusFlexrayCyclecountValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusFlexrayCyclecountFormat: + """Return the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat`` command. + + **Description:** + - This command sets or queries FLEXRAY bus trigger cycle count format. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat {BINary|HEX} + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat? + + **Info:** + - ``BINary`` specifies the cycle count format as binary. + - ``HEX`` specifies the cycle count format as hexadecimal. + """ + return self._format + + @property + def qualifier(self) -> TriggerABusFlexrayCyclecountQualifier: + """Return the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier`` command. + + **Description:** + - This command sets or queries FLEXRAY bus trigger cycle count qualifier. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier? + """ # noqa: E501 + return self._qualifier + + @property + def value(self) -> TriggerABusFlexrayCyclecountValue: + """Return the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger cycle count value. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue + - TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue? + + **Info:** + - ```` specifies the cycle count value. + """ + return self._value + + +class TriggerABusFlexrayCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY:CONDition`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CONDition {SOF|FRAMEtype|IDentifier|CYCLEcount|HEADer|DATA|IDANDDATA|EOF|ERRor} + - TRIGger:A:BUS:FLEXRAY:CONDition? + """ # noqa: E501 + + +# pylint: disable=too-many-instance-attributes +class TriggerABusFlexray(SCPICmdRead): + """The ``TRIGger:A:BUS:FLEXRAY`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.condition``: The ``TRIGger:A:BUS:FLEXRAY:CONDition`` command. + - ``.cyclecount``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount`` command tree. + - ``.data``: The ``TRIGger:A:BUS:FLEXRAY:DATa`` command tree. + - ``.eoftype``: The ``TRIGger:A:BUS:FLEXRAY:EOFTYPE`` command. + - ``.errtype``: The ``TRIGger:A:BUS:FLEXRAY:ERRTYPE`` command. + - ``.frametype``: The ``TRIGger:A:BUS:FLEXRAY:FRAMEType`` command. + - ``.header``: The ``TRIGger:A:BUS:FLEXRAY:HEADER`` command tree. + - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._condition = TriggerABusFlexrayCondition(device, f"{self._cmd_syntax}:CONDition") + self._cyclecount = TriggerABusFlexrayCyclecount(device, f"{self._cmd_syntax}:CYCLEcount") + self._data = TriggerABusFlexrayData(device, f"{self._cmd_syntax}:DATa") + self._eoftype = TriggerABusFlexrayEoftype(device, f"{self._cmd_syntax}:EOFTYPE") + self._errtype = TriggerABusFlexrayErrtype(device, f"{self._cmd_syntax}:ERRTYPE") + self._frametype = TriggerABusFlexrayFrametype(device, f"{self._cmd_syntax}:FRAMEType") + self._header = TriggerABusFlexrayHeader(device, f"{self._cmd_syntax}:HEADER") + self._identifier = TriggerABusFlexrayIdentifier(device, f"{self._cmd_syntax}:IDentifier") + + @property + def condition(self) -> TriggerABusFlexrayCondition: + """Return the ``TRIGger:A:BUS:FLEXRAY:CONDition`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:CONDition?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CONDition value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:CONDition {SOF|FRAMEtype|IDentifier|CYCLEcount|HEADer|DATA|IDANDDATA|EOF|ERRor} + - TRIGger:A:BUS:FLEXRAY:CONDition? + """ # noqa: E501 + return self._condition + + @property + def cyclecount(self) -> TriggerABusFlexrayCyclecount: + """Return the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:CYCLEcount?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:CYCLEcount?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount:VALue`` command. + """ + return self._cyclecount + + @property + def data(self) -> TriggerABusFlexrayData: + """Return the ``TRIGger:A:BUS:FLEXRAY:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:DATa?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:FLEXRAY:DATa:FORMat`` command. + - ``.offset``: The ``TRIGger:A:BUS:FLEXRAY:DATa:OFFSet`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:FLEXRAY:DATa:QUALifier`` command. + - ``.size``: The ``TRIGger:A:BUS:FLEXRAY:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:DATa:VALue`` command. + """ + return self._data + + @property + def eoftype(self) -> TriggerABusFlexrayEoftype: + """Return the ``TRIGger:A:BUS:FLEXRAY:EOFTYPE`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger end of file type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:EOFTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:EOFTYPE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:EOFTYPE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:EOFTYPE {ALL|STATIC|DYNAMIC} + - TRIGger:A:BUS:FLEXRAY:EOFTYPE? + + **Info:** + - ``ALL`` specifies either end of file type. + - ``STATIC`` specifies the static end of file type. + - ``DYNAMIC`` specifies the static end of file type. + """ + return self._eoftype + + @property + def errtype(self) -> TriggerABusFlexrayErrtype: + """Return the ``TRIGger:A:BUS:FLEXRAY:ERRTYPE`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger error type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:ERRTYPE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:ERRTYPE?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:ERRTYPE value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:ERRTYPE {CRCHEADer|CRCTRAILer|NULLFRSTATIC|NULLFRDYNAMIC |SYNCFRAME|STARTUPNOSYNC} + - TRIGger:A:BUS:FLEXRAY:ERRTYPE? + """ # noqa: E501 + return self._errtype + + @property + def frametype(self) -> TriggerABusFlexrayFrametype: + """Return the ``TRIGger:A:BUS:FLEXRAY:FRAMEType`` command. + + **Description:** + - This command sets or queries the FLEXRAY bus trigger frame type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:FRAMEType?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:FRAMEType?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:FRAMEType value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:FLEXRAY:FRAMEType {NORMal|PAYload|NULL|SYNC|STARTup} + - TRIGger:A:BUS:FLEXRAY:FRAMEType? + """ + return self._frametype + + @property + def header(self) -> TriggerABusFlexrayHeader: + """Return the ``TRIGger:A:BUS:FLEXRAY:HEADER`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY:HEADER?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.crc``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:CRC`` command. + - ``.cyclecount``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:CYCLECount`` command. + - ``.frameid``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:FRAMEID`` command. + - ``.indbits``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:INDBits`` command. + - ``.paylength``: The ``TRIGger:A:BUS:FLEXRAY:HEADER:PAYLENgth`` command. + """ + return self._header + + @property + def identifier(self) -> TriggerABusFlexrayIdentifier: + """Return the ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY:IDentifier?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:FLEXRAY:IDentifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:QUALifier`` command. + - ``.value``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier:VALue`` command. + """ + return self._identifier + + +class TriggerABusEthernetIpheaderSourceaddrValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. + + **Description:** + - This command specifies the 32-bit value to use when triggering on the Ethernet IPv4 header + address source field. The default is all X's (don't care). The trigger condition needs to + be set to IPHeader. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue?`` query and raise an AssertionError if + the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue + - TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue? + """ + + _WRAP_ARG_WITH_QUOTES = True + + +class TriggerABusEthernetIpheaderSourceaddr(SCPICmdRead): + """The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr?`` query and raise an AssertionError if the + returned value does not match ``value``. + + Properties: + - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._value = TriggerABusEthernetIpheaderSourceaddrValue( + device, f"{self._cmd_syntax}:VALue" + ) + + @property + def value(self) -> TriggerABusEthernetIpheaderSourceaddrValue: + """Return the ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. + + **Description:** + - This command specifies the 32-bit value to use when triggering on the Ethernet IPv4 + header address source field. The default is all X's (don't care). The trigger + condition needs to be set to IPHeader. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue + - TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue? + """ + return self._value + + +class TriggerABusEthernetIpheader(SCPICmdRead): + """The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet:IPHeader?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:ETHERnet:IPHeader?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._sourceaddr = TriggerABusEthernetIpheaderSourceaddr( + device, f"{self._cmd_syntax}:SOUrceaddr" + ) + + @property + def sourceaddr(self) -> TriggerABusEthernetIpheaderSourceaddr: + """Return the ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr?`` query and raise an AssertionError if + the returned value does not match ``value``. + + Sub-properties: + - ``.value``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr:VALue`` command. + """ + return self._sourceaddr + + +class TriggerABusEthernetDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. + + **Description:** + - This command and query sets the format of the data to either binary or hex. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:ETHERnet:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:ETHERnet:DATa:FORMat {BINARY | HEX} + - TRIGger:A:BUS:ETHERnet:DATa:FORMat? + + **Info:** + - ``BINARY`` sets the format to binary. + - ``HEX`` sets the format to hexadecimal. + """ + + +class TriggerABusEthernetData(SCPICmdRead): + """The ``TRIGger:A:BUS:ETHERnet:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:ETHERnet:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusEthernetDataFormat(device, f"{self._cmd_syntax}:FORMat") + + @property + def format(self) -> TriggerABusEthernetDataFormat: + """Return the ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. + + **Description:** + - This command and query sets the format of the data to either binary or hex. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet:DATa:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:DATa:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:ETHERnet:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:ETHERnet:DATa:FORMat {BINARY | HEX} + - TRIGger:A:BUS:ETHERnet:DATa:FORMat? + + **Info:** + - ``BINARY`` sets the format to binary. + - ``HEX`` sets the format to hexadecimal. + """ + return self._format + + +class TriggerABusEthernet(SCPICmdRead): + """The ``TRIGger:A:BUS:ETHERnet`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:ETHERnet?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.data``: The ``TRIGger:A:BUS:ETHERnet:DATa`` command tree. + - ``.ipheader``: The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._data = TriggerABusEthernetData(device, f"{self._cmd_syntax}:DATa") + self._ipheader = TriggerABusEthernetIpheader(device, f"{self._cmd_syntax}:IPHeader") + + @property + def data(self) -> TriggerABusEthernetData: + """Return the ``TRIGger:A:BUS:ETHERnet:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:ETHERnet:DATa?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:ETHERnet:DATa:FORMat`` command. + """ + return self._data + + @property + def ipheader(self) -> TriggerABusEthernetIpheader: + """Return the ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet:IPHeader?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:ETHERnet:IPHeader?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.sourceaddr``: The ``TRIGger:A:BUS:ETHERnet:IPHeader:SOUrceaddr`` command tree. + """ + return self._ipheader + + +class TriggerABusDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:DATa:VALue`` command. + + **Description:** + - This command sets or queries the trigger data value depending on the format selected for + the bus. The data value varies depending on the bus type and the number of input signals. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:DATa:VALue?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:DATa:VALue + - TRIGger:A:BUS:DATa:VALue? + + **Info:** + - ```` is the data value in binary or hexadecimal format. The valid characters are + 0-9, A-F, and X for addresses in hexadecimal format and 0, 1, and X otherwise. + """ + + +class TriggerABusDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the trigger data format for the bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:DATa:FORMat?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:DATa:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the trigger data format to Binary. + - ``HEXadecimal`` specifies the trigger data format to Hexadecimal. + - ``SYMBolic`` specifies the trigger data format as Symbolic. + """ + + +class TriggerABusData(SCPICmdRead): + """The ``TRIGger:A:BUS:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:DATa?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.format``: The ``TRIGger:A:BUS:DATa:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._format = TriggerABusDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._value = TriggerABusDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def format(self) -> TriggerABusDataFormat: + """Return the ``TRIGger:A:BUS:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the trigger data format for the bus. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:DATa:FORMat {BINary|HEXadecimal|SYMBolic} + - TRIGger:A:BUS:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the trigger data format to Binary. + - ``HEXadecimal`` specifies the trigger data format to Hexadecimal. + - ``SYMBolic`` specifies the trigger data format as Symbolic. + """ + return self._format + + @property + def value(self) -> TriggerABusDataValue: + """Return the ``TRIGger:A:BUS:DATa:VALue`` command. + + **Description:** + - This command sets or queries the trigger data value depending on the format selected + for the bus. The data value varies depending on the bus type and the number of input + signals. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:DATa:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:DATa:VALue + - TRIGger:A:BUS:DATa:VALue? + + **Info:** + - ```` is the data value in binary or hexadecimal format. The valid characters + are 0-9, A-F, and X for addresses in hexadecimal format and 0, 1, and X otherwise. + """ + return self._value + + +class TriggerABusCanIdentifierValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:VALue + - TRIGger:A:BUS:CAN:IDentifier:VALue? + """ + + +class TriggerABusCanIdentifierMode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:IDentifier:MODe`` command. + + **Description:** + - This command sets or queries CAN bus trigger identifier mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:MODe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:MODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:MODe {EXTENDed|STandard} + - TRIGger:A:BUS:CAN:IDentifier:MODe? + + **Info:** + - ``EXTENDed`` specifies the extended identifier mode. + - ``STandard`` specifies the standard identifier mode. + """ + + +class TriggerABusCanIdentifierFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:IDentifier:FORMat`` command. + + **Description:** + - This command sets or queries the CAN bus identifier format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:IDentifier:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + + +class TriggerABusCanIdentifierDirection(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:IDentifier:DIRection`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier direction. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:DIRection?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:DIRection?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:IDentifier:DIRection? + """ + + +class TriggerABusCanIdentifier(SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:IDentifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:IDentifier?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.direction``: The ``TRIGger:A:BUS:CAN:IDentifier:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:CAN:IDentifier:FORMat`` command. + - ``.mode``: The ``TRIGger:A:BUS:CAN:IDentifier:MODe`` command. + - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._direction = TriggerABusCanIdentifierDirection(device, f"{self._cmd_syntax}:DIRection") + self._format = TriggerABusCanIdentifierFormat(device, f"{self._cmd_syntax}:FORMat") + self._mode = TriggerABusCanIdentifierMode(device, f"{self._cmd_syntax}:MODe") + self._value = TriggerABusCanIdentifierValue(device, f"{self._cmd_syntax}:VALue") + + @property + def direction(self) -> TriggerABusCanIdentifierDirection: + """Return the ``TRIGger:A:BUS:CAN:IDentifier:DIRection`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier direction. + + **Usage:** + - Using the ``.query()`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:DIRection?`` query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:DIRection?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:IDentifier:DIRection? + """ + return self._direction + + @property + def format(self) -> TriggerABusCanIdentifierFormat: + """Return the ``TRIGger:A:BUS:CAN:IDentifier:FORMat`` command. + + **Description:** + - This command sets or queries the CAN bus identifier format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:IDentifier:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + return self._format + + @property + def mode(self) -> TriggerABusCanIdentifierMode: + """Return the ``TRIGger:A:BUS:CAN:IDentifier:MODe`` command. + + **Description:** + - This command sets or queries CAN bus trigger identifier mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:MODe?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:MODe?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:MODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:MODe {EXTENDed|STandard} + - TRIGger:A:BUS:CAN:IDentifier:MODe? + + **Info:** + - ``EXTENDed`` specifies the extended identifier mode. + - ``STandard`` specifies the standard identifier mode. + """ + return self._mode + + @property + def value(self) -> TriggerABusCanIdentifierValue: + """Return the ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier:VALue?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:VALue?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:IDentifier:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:IDentifier:VALue + - TRIGger:A:BUS:CAN:IDentifier:VALue? + """ + return self._value + + +class TriggerABusCanFrametype(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:FRAMEtype`` command. + + **Description:** + - This command sets or queries CAN bus trigger frame type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:FRAMEtype?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:FRAMEtype?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:FRAMEtype value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:FRAMEtype {DATa|ERRor|OVERLoad|REMote} + - TRIGger:A:BUS:CAN:FRAMEtype? + """ + + +class TriggerABusCanDataValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. + + **Description:** + - This command sets or queries CAN bus trigger data value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:VALue?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:VALue + - TRIGger:A:BUS:CAN:DATa:VALue? + + **Info:** + - ```` specifies the data value. + """ + + +class TriggerABusCanDataSize(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the CAN bus trigger data size (the number of contiguous data + bytes to trigger on). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:SIZe?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:SIZe + - TRIGger:A:BUS:CAN:DATa:SIZe? + + **Info:** + - ```` specifies the data size. + """ + + +class TriggerABusCanDataQualifier(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:DATa:QUALifier`` command. + + **Description:** + - This command sets or queries CAN bus trigger data qualifier. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:QUALifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:QUALifier?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:CAN:DATa:QUALifier? + """ + + +class TriggerABusCanDataFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the CAN bus trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:FORMat?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:FORMat value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + + +class TriggerABusCanDataDirection(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:DATa:DIRection`` command. + + **Description:** + - This command sets or queries the CAN bus trigger data direction. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:DIRection?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:DIRection?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:DATa:DIRection? + + **Info:** + - ``DONTCare`` specifies the direction is a don't care. + - ``READ`` specifies the read direction. + - ``WRITE`` specifies the write direction. + """ + + +class TriggerABusCanData(SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.direction``: The ``TRIGger:A:BUS:CAN:DATa:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:CAN:DATa:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:CAN:DATa:QUALifier`` command. + - ``.size``: The ``TRIGger:A:BUS:CAN:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._direction = TriggerABusCanDataDirection(device, f"{self._cmd_syntax}:DIRection") + self._format = TriggerABusCanDataFormat(device, f"{self._cmd_syntax}:FORMat") + self._qualifier = TriggerABusCanDataQualifier(device, f"{self._cmd_syntax}:QUALifier") + self._size = TriggerABusCanDataSize(device, f"{self._cmd_syntax}:SIZe") + self._value = TriggerABusCanDataValue(device, f"{self._cmd_syntax}:VALue") + + @property + def direction(self) -> TriggerABusCanDataDirection: + """Return the ``TRIGger:A:BUS:CAN:DATa:DIRection`` command. + + **Description:** + - This command sets or queries the CAN bus trigger data direction. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:DIRection?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:DIRection?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:DATa:DIRection? + + **Info:** + - ``DONTCare`` specifies the direction is a don't care. + - ``READ`` specifies the read direction. + - ``WRITE`` specifies the write direction. + """ + return self._direction + + @property + def format(self) -> TriggerABusCanDataFormat: + """Return the ``TRIGger:A:BUS:CAN:DATa:FORMat`` command. + + **Description:** + - This command sets or queries the CAN bus trigger data format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:DATa:FORMat? + + **Info:** + - ``BINary`` specifies the data format as binary. + - ``HEX`` specifies the data format as hexadecimal. + """ + return self._format + + @property + def qualifier(self) -> TriggerABusCanDataQualifier: + """Return the ``TRIGger:A:BUS:CAN:DATa:QUALifier`` command. + + **Description:** + - This command sets or queries CAN bus trigger data qualifier. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:QUALifier?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:QUALifier?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:QUALifier value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:QUALifier {EQUal|LESSEQual|MOREEQual|UNEQual|LESSthan|MOREthan} + - TRIGger:A:BUS:CAN:DATa:QUALifier? + """ + return self._qualifier + + @property + def size(self) -> TriggerABusCanDataSize: + """Return the ``TRIGger:A:BUS:CAN:DATa:SIZe`` command. + + **Description:** + - This command sets or queries the CAN bus trigger data size (the number of contiguous + data bytes to trigger on). + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:SIZe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:SIZe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:SIZe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:SIZe + - TRIGger:A:BUS:CAN:DATa:SIZe? + + **Info:** + - ```` specifies the data size. + """ + return self._size + + @property + def value(self) -> TriggerABusCanDataValue: + """Return the ``TRIGger:A:BUS:CAN:DATa:VALue`` command. + + **Description:** + - This command sets or queries CAN bus trigger data value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:DATa:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:DATa:VALue + - TRIGger:A:BUS:CAN:DATa:VALue? + + **Info:** + - ```` specifies the data value. + """ + return self._value + + +class TriggerABusCanCondition(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:CONDition`` command. + + **Description:** + - This command sets or queries the CAN bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:CONDition?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:CONDition {ERRor|DATA|IDANDDATA|EOF|IDentifier|ACKMISS|SOF|FRAMEtype} + - TRIGger:A:BUS:CAN:CONDition? + """ + + +class TriggerABusCanAddressValue(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:VALue?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:VALue value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:VALue + - TRIGger:A:BUS:CAN:ADDRess:VALue? + """ + + +class TriggerABusCanAddressMode(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:ADDRess:MODe`` command. + + **Description:** + - This command sets or queries CAN bus trigger identifier mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:MODe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:MODe value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:MODe {EXTENDed|STandard} + - TRIGger:A:BUS:CAN:ADDRess:MODe? + + **Info:** + - ``EXTENDed`` specifies the extended identifier mode. + - ``STandard`` specifies the standard identifier mode. + """ + + +class TriggerABusCanAddressFormat(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:ADDRess:FORMat`` command. + + **Description:** + - This command sets or queries the CAN bus identifier format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:FORMat?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:FORMat?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:ADDRess:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + + +class TriggerABusCanAddressDirection(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:ADDRess:DIRection`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier direction. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:DIRection?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:DIRection?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:ADDRess:DIRection? + """ + + +class TriggerABusCanAddress(SCPICmdRead): + """The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.direction``: The ``TRIGger:A:BUS:CAN:ADDRess:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:CAN:ADDRess:FORMat`` command. + - ``.mode``: The ``TRIGger:A:BUS:CAN:ADDRess:MODe`` command. + - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._direction = TriggerABusCanAddressDirection(device, f"{self._cmd_syntax}:DIRection") + self._format = TriggerABusCanAddressFormat(device, f"{self._cmd_syntax}:FORMat") + self._mode = TriggerABusCanAddressMode(device, f"{self._cmd_syntax}:MODe") + self._value = TriggerABusCanAddressValue(device, f"{self._cmd_syntax}:VALue") + + @property + def direction(self) -> TriggerABusCanAddressDirection: + """Return the ``TRIGger:A:BUS:CAN:ADDRess:DIRection`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier direction. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:DIRection?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:DIRection?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:DIRection value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:DIRection {DONTCare|READ|WRITE} + - TRIGger:A:BUS:CAN:ADDRess:DIRection? + """ + return self._direction + + @property + def format(self) -> TriggerABusCanAddressFormat: + """Return the ``TRIGger:A:BUS:CAN:ADDRess:FORMat`` command. + + **Description:** + - This command sets or queries the CAN bus identifier format. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:FORMat?`` + query. + - Using the ``.verify(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:FORMat?`` query and raise an AssertionError if the + returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:FORMat value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:FORMat {BINary|HEX} + - TRIGger:A:BUS:CAN:ADDRess:FORMat? + + **Info:** + - ``BINary`` specifies the identifier format as binary. + - ``HEX`` specifies the identifier format as hexadecimal. + """ + return self._format + + @property + def mode(self) -> TriggerABusCanAddressMode: + """Return the ``TRIGger:A:BUS:CAN:ADDRess:MODe`` command. + + **Description:** + - This command sets or queries CAN bus trigger identifier mode. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:MODe?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:MODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:MODe {EXTENDed|STandard} + - TRIGger:A:BUS:CAN:ADDRess:MODe? + + **Info:** + - ``EXTENDed`` specifies the extended identifier mode. + - ``STandard`` specifies the standard identifier mode. + """ + return self._mode + + @property + def value(self) -> TriggerABusCanAddressValue: + """Return the ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. + + **Description:** + - This command sets or queries the CAN bus trigger identifier value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:VALue?`` + query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess:VALue?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the + ``TRIGger:A:BUS:CAN:ADDRess:VALue value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:ADDRess:VALue + - TRIGger:A:BUS:CAN:ADDRess:VALue? + """ + return self._value + + +class TriggerABusCan(SCPICmdRead): + """The ``TRIGger:A:BUS:CAN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Properties: + - ``.condition``: The ``TRIGger:A:BUS:CAN:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:CAN:DATa`` command tree. + - ``.frametype``: The ``TRIGger:A:BUS:CAN:FRAMEtype`` command. + - ``.identifier``: The ``TRIGger:A:BUS:CAN:IDentifier`` command tree. + - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._condition = TriggerABusCanCondition(device, f"{self._cmd_syntax}:CONDition") + self._data = TriggerABusCanData(device, f"{self._cmd_syntax}:DATa") + self._frametype = TriggerABusCanFrametype(device, f"{self._cmd_syntax}:FRAMEtype") + self._identifier = TriggerABusCanIdentifier(device, f"{self._cmd_syntax}:IDentifier") + self._address = TriggerABusCanAddress(device, f"{self._cmd_syntax}:ADDRess") + + @property + def condition(self) -> TriggerABusCanCondition: + """Return the ``TRIGger:A:BUS:CAN:CONDition`` command. + + **Description:** + - This command sets or queries the CAN bus trigger condition. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:CONDition?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:CONDition?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:CONDition value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:CONDition {ERRor|DATA|IDANDDATA|EOF|IDentifier|ACKMISS|SOF|FRAMEtype} + - TRIGger:A:BUS:CAN:CONDition? + """ # noqa: E501 + return self._condition + + @property + def data(self) -> TriggerABusCanData: + """Return the ``TRIGger:A:BUS:CAN:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:DATa?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.direction``: The ``TRIGger:A:BUS:CAN:DATa:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:CAN:DATa:FORMat`` command. + - ``.qualifier``: The ``TRIGger:A:BUS:CAN:DATa:QUALifier`` command. + - ``.size``: The ``TRIGger:A:BUS:CAN:DATa:SIZe`` command. + - ``.value``: The ``TRIGger:A:BUS:CAN:DATa:VALue`` command. + """ + return self._data + + @property + def frametype(self) -> TriggerABusCanFrametype: + """Return the ``TRIGger:A:BUS:CAN:FRAMEtype`` command. + + **Description:** + - This command sets or queries CAN bus trigger frame type. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:FRAMEtype?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:FRAMEtype?`` + query and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:CAN:FRAMEtype value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:CAN:FRAMEtype {DATa|ERRor|OVERLoad|REMote} + - TRIGger:A:BUS:CAN:FRAMEtype? + """ + return self._frametype + + @property + def identifier(self) -> TriggerABusCanIdentifier: + """Return the ``TRIGger:A:BUS:CAN:IDentifier`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:IDentifier?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:IDentifier?`` + query and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.direction``: The ``TRIGger:A:BUS:CAN:IDentifier:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:CAN:IDentifier:FORMat`` command. + - ``.mode``: The ``TRIGger:A:BUS:CAN:IDentifier:MODe`` command. + - ``.value``: The ``TRIGger:A:BUS:CAN:IDentifier:VALue`` command. + """ + return self._identifier + + @property + def address(self) -> TriggerABusCanAddress: + """Return the ``TRIGger:A:BUS:CAN:ADDRess`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN:ADDRess?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN:ADDRess?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.direction``: The ``TRIGger:A:BUS:CAN:ADDRess:DIRection`` command. + - ``.format``: The ``TRIGger:A:BUS:CAN:ADDRess:FORMat`` command. + - ``.mode``: The ``TRIGger:A:BUS:CAN:ADDRess:MODe`` command. + - ``.value``: The ``TRIGger:A:BUS:CAN:ADDRess:VALue`` command. + """ + return self._address + + +# pylint: disable=too-many-instance-attributes +class TriggerABus(SCPICmdRead): + """The ``TRIGger:A:BUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Properties: + - ``.can``: The ``TRIGger:A:BUS:CAN`` command tree. + - ``.data``: The ``TRIGger:A:BUS:DATa`` command tree. + - ``.ethernet``: The ``TRIGger:A:BUS:ETHERnet`` command tree. + - ``.flexray``: The ``TRIGger:A:BUS:FLEXRAY`` command tree. + - ``.i2c``: The ``TRIGger:A:BUS:I2C`` command tree. + - ``.lin``: The ``TRIGger:A:BUS:LIN`` command tree. + - ``.mil1553b``: The ``TRIGger:A:BUS:MIL1553B`` command tree. + - ``.pcie``: The ``TRIGger:A:BUS:PCIE`` command tree. + - ``.rs232c``: The ``TRIGger:A:BUS:RS232C`` command tree. + - ``.s64b66b``: The ``TRIGger:A:BUS:S64B66B`` command tree. + - ``.s8b10b``: The ``TRIGger:A:BUS:S8B10B`` command tree. + - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. + - ``.spi``: The ``TRIGger:A:BUS:SPI`` command tree. + - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._can = TriggerABusCan(device, f"{self._cmd_syntax}:CAN") + self._data = TriggerABusData(device, f"{self._cmd_syntax}:DATa") + self._ethernet = TriggerABusEthernet(device, f"{self._cmd_syntax}:ETHERnet") + self._flexray = TriggerABusFlexray(device, f"{self._cmd_syntax}:FLEXRAY") + self._i2c = TriggerABusI2c(device, f"{self._cmd_syntax}:I2C") + self._lin = TriggerABusLin(device, f"{self._cmd_syntax}:LIN") + self._mil1553b = TriggerABusMil1553b(device, f"{self._cmd_syntax}:MIL1553B") + self._pcie = TriggerABusPcie(device, f"{self._cmd_syntax}:PCIE") + self._rs232c = TriggerABusRs232c(device, f"{self._cmd_syntax}:RS232C") + self._s64b66b = TriggerABusS64b66b(device, f"{self._cmd_syntax}:S64B66B") + self._s8b10b = TriggerABusS8b10b(device, f"{self._cmd_syntax}:S8B10B") + self._source = TriggerABusSource(device, f"{self._cmd_syntax}:SOUrce") + self._spi = TriggerABusSpi(device, f"{self._cmd_syntax}:SPI") + self._usb = TriggerABusUsb(device, f"{self._cmd_syntax}:USB") + + @property + def can(self) -> TriggerABusCan: + """Return the ``TRIGger:A:BUS:CAN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:CAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:CAN?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.condition``: The ``TRIGger:A:BUS:CAN:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:CAN:DATa`` command tree. + - ``.frametype``: The ``TRIGger:A:BUS:CAN:FRAMEtype`` command. + - ``.identifier``: The ``TRIGger:A:BUS:CAN:IDentifier`` command tree. + - ``.address``: The ``TRIGger:A:BUS:CAN:ADDRess`` command tree. + """ + return self._can + + @property + def data(self) -> TriggerABusData: + """Return the ``TRIGger:A:BUS:DATa`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:DATa?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:DATa?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.format``: The ``TRIGger:A:BUS:DATa:FORMat`` command. + - ``.value``: The ``TRIGger:A:BUS:DATa:VALue`` command. + """ + return self._data + + @property + def ethernet(self) -> TriggerABusEthernet: + """Return the ``TRIGger:A:BUS:ETHERnet`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:ETHERnet?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:ETHERnet?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.data``: The ``TRIGger:A:BUS:ETHERnet:DATa`` command tree. + - ``.ipheader``: The ``TRIGger:A:BUS:ETHERnet:IPHeader`` command tree. + """ + return self._ethernet + + @property + def flexray(self) -> TriggerABusFlexray: + """Return the ``TRIGger:A:BUS:FLEXRAY`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:FLEXRAY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:FLEXRAY?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.condition``: The ``TRIGger:A:BUS:FLEXRAY:CONDition`` command. + - ``.cyclecount``: The ``TRIGger:A:BUS:FLEXRAY:CYCLEcount`` command tree. + - ``.data``: The ``TRIGger:A:BUS:FLEXRAY:DATa`` command tree. + - ``.eoftype``: The ``TRIGger:A:BUS:FLEXRAY:EOFTYPE`` command. + - ``.errtype``: The ``TRIGger:A:BUS:FLEXRAY:ERRTYPE`` command. + - ``.frametype``: The ``TRIGger:A:BUS:FLEXRAY:FRAMEType`` command. + - ``.header``: The ``TRIGger:A:BUS:FLEXRAY:HEADER`` command tree. + - ``.identifier``: The ``TRIGger:A:BUS:FLEXRAY:IDentifier`` command tree. + """ + return self._flexray + + @property + def i2c(self) -> TriggerABusI2c: + """Return the ``TRIGger:A:BUS:I2C`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:I2C?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:I2C?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``TRIGger:A:BUS:I2C:ADDress`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:I2C:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:I2C:DATa`` command tree. + """ + return self._i2c + + @property + def lin(self) -> TriggerABusLin: + """Return the ``TRIGger:A:BUS:LIN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:LIN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:LIN?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.condition``: The ``TRIGger:A:BUS:LIN:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:LIN:DATa`` command tree. + - ``.errtype``: The ``TRIGger:A:BUS:LIN:ERRTYPE`` command. + - ``.identifier``: The ``TRIGger:A:BUS:LIN:IDentifier`` command tree. + """ + return self._lin + + @property + def mil1553b(self) -> TriggerABusMil1553b: + """Return the ``TRIGger:A:BUS:MIL1553B`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:MIL1553B?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:MIL1553B?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.command``: The ``TRIGger:A:BUS:MIL1553B:COMMAND`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:MIL1553B:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:MIL1553B:DATA`` command tree. + - ``.errtype``: The ``TRIGger:A:BUS:MIL1553B:ERRTYPE`` command. + - ``.status``: The ``TRIGger:A:BUS:MIL1553B:STATUS`` command tree. + - ``.time``: The ``TRIGger:A:BUS:MIL1553B:TIME`` command tree. + """ + return self._mil1553b + + @property + def pcie(self) -> TriggerABusPcie: + """Return the ``TRIGger:A:BUS:PCIE`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:PCIE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:PCIE?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.character``: The ``TRIGger:A:BUS:PCIE:CHARacter`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:PCIE:CONDition`` command. + - ``.disparity``: The ``TRIGger:A:BUS:PCIE:DISParity`` command. + - ``.error``: The ``TRIGger:A:BUS:PCIE:ERROR`` command. + - ``.format``: The ``TRIGger:A:BUS:PCIE:FORMat`` command. + - ``.pattern``: The ``TRIGger:A:BUS:PCIE:PATtern`` command tree. + """ + return self._pcie + + @property + def rs232c(self) -> TriggerABusRs232c: + """Return the ``TRIGger:A:BUS:RS232C`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:RS232C?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:RS232C?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.condition``: The ``TRIGger:A:BUS:RS232C:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:RS232C:DATa`` command tree. + """ + return self._rs232c + + @property + def s64b66b(self) -> TriggerABusS64b66b: + """Return the ``TRIGger:A:BUS:S64B66B`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S64B66B?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S64B66B?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.blockone``: The ``TRIGger:A:BUS:S64B66B:BLOCKONE`` command. + - ``.blockonethentwo``: The ``TRIGger:A:BUS:S64B66B:BLOCKONETHENTWO`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:S64B66B:CONDition`` command. + """ + return self._s64b66b + + @property + def s8b10b(self) -> TriggerABusS8b10b: + """Return the ``TRIGger:A:BUS:S8B10B`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:S8B10B?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:S8B10B?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.character``: The ``TRIGger:A:BUS:S8B10B:CHARacter`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:S8B10B:CONDition`` command. + - ``.disparity``: The ``TRIGger:A:BUS:S8B10B:DISParity`` command. + - ``.error``: The ``TRIGger:A:BUS:S8B10B:ERROR`` command. + - ``.format``: The ``TRIGger:A:BUS:S8B10B:FORMat`` command. + - ``.pattern``: The ``TRIGger:A:BUS:S8B10B:PATtern`` command tree. + """ + return self._s8b10b + + @property + def source(self) -> TriggerABusSource: + """Return the ``TRIGger:A:BUS:SOUrce`` command. + + **Description:** + - This command sets or returns the source for a bus trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SOUrce?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SOUrce?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:BUS:SOUrce value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:BUS:SOUrce {B1|B2|B3|B4|B5|B6|B7|B8|B9|B10|B11|B12| B13|B14|B15|B16} + - TRIGger:A:BUS:SOUrce? + + **Info:** + - ``B`` sets the selected source to the bus. x has a minimum of 1 and a maximum of + 16. + """ + return self._source + + @property + def spi(self) -> TriggerABusSpi: + """Return the ``TRIGger:A:BUS:SPI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:SPI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:SPI?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.condition``: The ``TRIGger:A:BUS:SPI:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:SPI:DATa`` command tree. + """ + return self._spi + + @property + def usb(self) -> TriggerABusUsb: + """Return the ``TRIGger:A:BUS:USB`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS:USB?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS:USB?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``TRIGger:A:BUS:USB:ADDress`` command tree. + - ``.character``: The ``TRIGger:A:BUS:USB:CHARacter`` command tree. + - ``.condition``: The ``TRIGger:A:BUS:USB:CONDition`` command. + - ``.data``: The ``TRIGger:A:BUS:USB:DATa`` command tree. + - ``.disparity``: The ``TRIGger:A:BUS:USB:DISParity`` command. + - ``.endpoint``: The ``TRIGger:A:BUS:USB:ENDPoint`` command tree. + - ``.error``: The ``TRIGger:A:BUS:USB:ERROR`` command. + - ``.errtype``: The ``TRIGger:A:BUS:USB:ERRTYPE`` command. + - ``.format``: The ``TRIGger:A:BUS:USB:FORMat`` command. + - ``.handshaketype``: The ``TRIGger:A:BUS:USB:HANDShaketype`` command. + - ``.pattern``: The ``TRIGger:A:BUS:USB:PATtern`` command tree. + - ``.qualifier``: The ``TRIGger:A:BUS:USB:QUAlifier`` command. + - ``.sof``: The ``TRIGger:A:BUS:USB:SOF`` command tree. + - ``.specialtype``: The ``TRIGger:A:BUS:USB:SPECIALType`` command. + - ``.split``: The ``TRIGger:A:BUS:USB:SPLIT`` command tree. + - ``.tokentype``: The ``TRIGger:A:BUS:USB:TOKENType`` command. + """ + return self._usb + + +# pylint: disable=too-many-instance-attributes +class TriggerA(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger:A`` command. + + **Description:** + - This command sets the A trigger level automatically to 50% of the range of the minimum and + maximum values of the trigger input signal. The query returns current trigger parameters. + The trigger level is the voltage threshold through which the trigger source signal must + pass to generate a trigger event. This command is equivalent to pushing the LEVEL knob on + the front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A SETLevel + - TRIGger:A? + + **Info:** + - ``SETLevel`` sets the trigger level to 50% of the range of the minimum and maximum values + of the trigger input signal. + + Properties: + - ``.bus``: The ``TRIGger:A:BUS`` command tree. + - ``.can``: The ``TRIGger:A:CAN`` command tree. + - ``.communication``: The ``TRIGger:A:COMMunication`` command tree. + - ``.holdoff``: The ``TRIGger:A:HOLDoff`` command. + - ``.i2c``: The ``TRIGger:A:I2C`` command tree. + - ``.mode``: The ``TRIGger:A:MODe`` command. + - ``.plock``: The ``TRIGger:A:PLOCK`` command tree. + - ``.pulse``: The ``TRIGger:A:PULse`` command tree. + - ``.serial``: The ``TRIGger:A:SERIAL`` command tree. + - ``.spi``: The ``TRIGger:A:SPI`` command tree. + - ``.video``: The ``TRIGger:A:VIDeo`` command. + - ``.edge``: The ``TRIGger:A:EDGE`` command. + - ``.level``: The ``TRIGger:A:LEVel`` command. + - ``.logic``: The ``TRIGger:A:LOGIc`` command. + - ``.lowerthreshold``: The ``TRIGger:A:LOWerthreshold`` command tree. + - ``.ready``: The ``TRIGger:A:READY`` command. + - ``.type``: The ``TRIGger:A:TYPe`` command. + - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. + """ + + def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: + super().__init__(device, cmd_syntax) + self._bus = TriggerABus(device, f"{self._cmd_syntax}:BUS") + self._can = TriggerACan(device, f"{self._cmd_syntax}:CAN") + self._communication = TriggerACommunication(device, f"{self._cmd_syntax}:COMMunication") + self._holdoff = TriggerAHoldoff(device, f"{self._cmd_syntax}:HOLDoff") + self._i2c = TriggerAI2c(device, f"{self._cmd_syntax}:I2C") + self._mode = TriggerAMode(device, f"{self._cmd_syntax}:MODe") + self._plock = TriggerAPlock(device, f"{self._cmd_syntax}:PLOCK") + self._serial = TriggerASerial(device, f"{self._cmd_syntax}:SERIAL") + self._spi = TriggerASpi(device, f"{self._cmd_syntax}:SPI") + self._video = TriggerAVideo(device, f"{self._cmd_syntax}:VIDeo") + self._edge = TriggerAEdge(device, f"{self._cmd_syntax}:EDGE") + self._level = TriggerALevel(device, f"{self._cmd_syntax}:LEVel") + self._logic = TriggerALogic(device, f"{self._cmd_syntax}:LOGIc") + self._lowerthreshold = TriggerALowerthreshold(device, f"{self._cmd_syntax}:LOWerthreshold") + self._pulse = TriggerAPulse(device, f"{self._cmd_syntax}:PULse") + self._ready = TriggerAReady(device, f"{self._cmd_syntax}:READY") + self._type = TriggerAType(device, f"{self._cmd_syntax}:TYPe") + self._upperthreshold = TriggerAUpperthreshold(device, f"{self._cmd_syntax}:UPPerthreshold") + + @property + def bus(self) -> TriggerABus: + """Return the ``TRIGger:A:BUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:BUS?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:BUS?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.can``: The ``TRIGger:A:BUS:CAN`` command tree. + - ``.data``: The ``TRIGger:A:BUS:DATa`` command tree. + - ``.ethernet``: The ``TRIGger:A:BUS:ETHERnet`` command tree. + - ``.flexray``: The ``TRIGger:A:BUS:FLEXRAY`` command tree. + - ``.i2c``: The ``TRIGger:A:BUS:I2C`` command tree. + - ``.lin``: The ``TRIGger:A:BUS:LIN`` command tree. + - ``.mil1553b``: The ``TRIGger:A:BUS:MIL1553B`` command tree. + - ``.pcie``: The ``TRIGger:A:BUS:PCIE`` command tree. + - ``.rs232c``: The ``TRIGger:A:BUS:RS232C`` command tree. + - ``.s64b66b``: The ``TRIGger:A:BUS:S64B66B`` command tree. + - ``.s8b10b``: The ``TRIGger:A:BUS:S8B10B`` command tree. + - ``.source``: The ``TRIGger:A:BUS:SOUrce`` command. + - ``.spi``: The ``TRIGger:A:BUS:SPI`` command tree. + - ``.usb``: The ``TRIGger:A:BUS:USB`` command tree. + """ + return self._bus + + @property + def can(self) -> TriggerACan: + """Return the ``TRIGger:A:CAN`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:CAN?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:CAN?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.condition``: The ``TRIGger:A:CAN:CONDition`` command. + - ``.data``: The ``TRIGger:A:CAN:DATa`` command tree. + - ``.format``: The ``TRIGger:A:CAN:FORMat`` command. + - ``.frametype``: The ``TRIGger:A:CAN:FRAMEtype`` command. + - ``.identifier``: The ``TRIGger:A:CAN:IDENTifier`` command tree. + - ``.probe``: The ``TRIGger:A:CAN:PROBE`` command. + - ``.speed``: The ``TRIGger:A:CAN:SPEed`` command. + """ + return self._can + + @property + def communication(self) -> TriggerACommunication: + """Return the ``TRIGger:A:COMMunication`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:COMMunication?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:COMMunication?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.bitrate``: The ``TRIGger:A:COMMunication:BITRate`` command. + - ``.clock``: The ``TRIGger:A:COMMunication:CLOCk`` command tree. + - ``.cmi``: The ``TRIGger:A:COMMunication:CMI`` command tree. + - ``.code``: The ``TRIGger:A:COMMunication:CODe`` command. + - ``.source``: The ``TRIGger:A:COMMunication:SOUrce`` command. + - ``.standard``: The ``TRIGger:A:COMMunication:STANdard`` command. + - ``.ami``: The ``TRIGger:A:COMMunication:AMI`` command tree. + - ``.hdb3``: The ``TRIGger:A:COMMunication:HDB3`` command tree. + - ``.b3zs``: The ``TRIGger:A:COMMunication:B3ZS`` command tree. + - ``.b6zs``: The ``TRIGger:A:COMMunication:B6ZS`` command tree. + - ``.b8zs``: The ``TRIGger:A:COMMunication:B8ZS`` command tree. + """ + return self._communication + + @property + def holdoff(self) -> TriggerAHoldoff: + """Return the ``TRIGger:A:HOLDoff`` command. + + **Description:** + - Returns the A trigger holdoff parameters. These parameters specify the time period + during which the trigger circuitry is not looking to generate a trigger event. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:HOLDoff?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:HOLDoff?`` query and + raise an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:HOLDoff? + + Sub-properties: + - ``.actual``: The ``TRIGger:A:HOLDoff:ACTUal`` command. + - ``.by``: The ``TRIGger:A:HOLDoff:BY`` command. + - ``.time``: The ``TRIGger:A:HOLDoff:TIMe`` command. + """ + return self._holdoff + + @property + def i2c(self) -> TriggerAI2c: + """Return the ``TRIGger:A:I2C`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:I2C?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:I2C?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``TRIGger:A:I2C:ADDRess`` command tree. + """ + return self._i2c + + @property + def mode(self) -> TriggerAMode: + """Return the ``TRIGger:A:MODe`` command. + + **Description:** + - This command sets or queries the A trigger mode. This command is equivalent to pushing + the Mode button on the front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:MODe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:MODe?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:MODe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:MODe {AUTO|NORMal} + - TRIGger:A:MODe? + + **Info:** + - ``AUTO`` generates a trigger if one is not detected within a specified time period. + - ``NORMal`` waits for a valid trigger event. + """ + return self._mode + + @property + def plock(self) -> TriggerAPlock: + """Return the ``TRIGger:A:PLOCK`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PLOCK?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PLOCK?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.count``: The ``TRIGger:A:PLOCK:COUNT`` command. + - ``.length``: The ``TRIGger:A:PLOCK:LENGTH`` command. + - ``.source``: The ``TRIGger:A:PLOCK:SOURCE`` command. + """ + return self._plock + + @property + def serial(self) -> TriggerASerial: + """Return the ``TRIGger:A:SERIAL`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SERIAL?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SERIAL?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.bitrate``: The ``TRIGger:A:SERIAL:BITRate`` command. + - ``.clock``: The ``TRIGger:A:SERIAL:CLOCk`` command tree. + - ``.code``: The ``TRIGger:A:SERIAL:CODe`` command. + - ``.data``: The ``TRIGger:A:SERIAL:DATa`` command tree. + - ``.errordetector``: The ``TRIGger:A:SERIAL:ERRORdetector`` command tree. + - ``.locklen``: The ``TRIGger:A:SERIAL:LOCKLen`` command. + - ``.lockoffset``: The ``TRIGger:A:SERIAL:LOCKOffset`` command. + - ``.source``: The ``TRIGger:A:SERIAL:SOUrce`` command. + - ``.standard``: The ``TRIGger:A:SERIAL:STANdard`` command. + - ``.triggeron``: The ``TRIGger:A:SERIAL:TRIGgeron`` command. + """ + return self._serial + + @property + def spi(self) -> TriggerASpi: + """Return the ``TRIGger:A:SPI`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:SPI?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:SPI?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.condition``: The ``TRIGger:A:SPI:CONDition`` command. + - ``.data``: The ``TRIGger:A:SPI:DATa`` command tree. + - ``.format``: The ``TRIGger:A:SPI:FORMat`` command. + - ``.sclk``: The ``TRIGger:A:SPI:SCLK`` command tree. + - ``.ss``: The ``TRIGger:A:SPI:SS`` command tree. + """ + return self._spi + + @property + def video(self) -> TriggerAVideo: + """Return the ``TRIGger:A:VIDeo`` command. + + **Description:** + - Returns the A trigger video parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:VIDeo?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:VIDeo?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:VIDeo? + + Sub-properties: + - ``.custom``: The ``TRIGger:A:VIDeo:CUSTom`` command. + - ``.field``: The ``TRIGger:A:VIDeo:FIELD`` command. + - ``.holdoff``: The ``TRIGger:A:VIDeo:HOLdoff`` command tree. + - ``.line``: The ``TRIGger:A:VIDeo:LINE`` command. + - ``.polarity``: The ``TRIGger:A:VIDeo:POLarity`` command. + - ``.scan``: The ``TRIGger:A:VIDeo:SCAN`` command. + - ``.source``: The ``TRIGger:A:VIDeo:SOUrce`` command. + - ``.standard``: The ``TRIGger:A:VIDeo:STANdard`` command. + """ + return self._video + + @property + def edge(self) -> TriggerAEdge: + """Return the ``TRIGger:A:EDGE`` command. + + **Description:** + - This query-only command returns the trigger source, coupling, and slope for the + specified edge trigger. This command is equivalent to selecting Edge Setup from the + Trig menu and viewing the current setups, or selecting B Event (Delayed) Trigger Setup + from the Trig menu and viewing the current Source, Slope, and Coupling settings. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:EDGE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:EDGE?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:EDGE? + + Sub-properties: + - ``.coupling``: The ``TRIGger:A:EDGE:COUPling`` command. + - ``.slope``: The ``TRIGger:A:EDGE:SLOpe`` command. + - ``.source``: The ``TRIGger:A:EDGE:SOUrce`` command. + """ + return self._edge + + @property + def level(self) -> TriggerALevel: + """Return the ``TRIGger:A:LEVel`` command. + + **Description:** + - This command sets or queries the level for the trigger. This command is equivalent to + selecting Holdoff from the Trig menu and then viewing or setting the trigger Level or + selecting B Event (Delayed) Trigger Setup from the Trig menu and setting the B Trig + Level voltage. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LEVel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LEVel?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:LEVel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LEVel {ECL|TTL|} + - TRIGger:A:LEVel? + + **Info:** + - ``ECL`` specifies the ECL high level. + - ``TTL`` specifies the TTL high level. + - ```` specifies the trigger level in user units (usually volts). + + Sub-properties: + - ``.ch``: The ``TRIGger:A:LEVel:CH`` command. + """ + return self._level + + @property + def logic(self) -> TriggerALogic: + """Return the ``TRIGger:A:LOGIc`` command. + + **Description:** + - This query-only command returns all of the logic trigger parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOGIc?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOGIc?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:LOGIc? + + Sub-properties: + - ``.class``: The ``TRIGger:A:LOGIc:CLAss`` command. + - ``.function``: The ``TRIGger:A:LOGIc:FUNCtion`` command. + - ``.input``: The ``TRIGger:A:LOGIc:INPut`` command. + - ``.pattern``: The ``TRIGger:A:LOGIc:PATtern`` command. + - ``.sethold``: The ``TRIGger:A:LOGIc:SETHold`` command. + - ``.state``: The ``TRIGger:A:LOGIc:STATE`` command. + - ``.threshold``: The ``TRIGger:A:LOGIc:THReshold`` command. + """ + return self._logic + + @property + def lowerthreshold(self) -> TriggerALowerthreshold: + """Return the ``TRIGger:A:LOWerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:LOWerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:LOWerthreshold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:LOWerthreshold:CH`` command. + """ + return self._lowerthreshold + + @property + def pulse(self) -> TriggerAPulse: + """Return the ``TRIGger:A:PULse`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:PULse?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:PULse?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.period``: The ``TRIGger:A:PULse:PERiod`` command. + - ``.runt``: The ``TRIGger:A:PULse:RUNT`` command tree. + - ``.window``: The ``TRIGger:A:PULse:WINdow`` command tree. + - ``.class``: The ``TRIGger:A:PULse:CLAss`` command. + - ``.glitch``: The ``TRIGger:A:PULse:GLItch`` command. + - ``.source``: The ``TRIGger:A:PULse:SOUrce`` command. + - ``.timeout``: The ``TRIGger:A:PULse:TIMEOut`` command. + - ``.transition``: The ``TRIGger:A:PULse:TRANsition`` command. + - ``.width``: The ``TRIGger:A:PULse:WIDth`` command. + """ + return self._pulse + + @property + def ready(self) -> TriggerAReady: + """Return the ``TRIGger:A:READY`` command. + + **Description:** + - This command queries the trigger ready state and provides the immediate state from the + trigger system. It is a more synchronous means of determining when the oscilloscope is + ready to trigger. The ``TRIGGER:STATE`` reflects a less-frequently updated status of + the trigger LEDs on the instrument front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:READY?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:READY?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:A:READY? + """ + return self._ready + + @property + def type(self) -> TriggerAType: + """Return the ``TRIGger:A:TYPe`` command. + + **Description:** + - This command sets or queries the type of A or B trigger. Logic and Pulse triggers + contain classes. Logic triggers consist of State and Pattern classes; Pulse triggers + consist of Glitch, Runt, Width, Transition, Timeout, and Window classes. Once you have + set the trigger type, you might also need to identify the associated trigger class. + For details on selecting Logic and Pulse trigger classes, see and respectively. This + command is similar to selecting Event Trigger Setup from the Trig menu and then + selecting the desired Trigger Type. Some trigger types are not available on some + instruments. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:TYPe?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:TYPe?`` query and raise + an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A:TYPe value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A:TYPe {EDGE|LOGIc|PULse|VIDeo| I2C|CAN|SPI|COMMunication|SERIAL|RS232}} + - TRIGger:A:TYPe? + + **Info:** + - ``EDGE`` is a normal trigger. A trigger event occurs when a signal passes through a + specified voltage level in a specified direction and is controlled by the + ``TRIGger:A:EDGE`` commands. + - ``LOGIc`` specifies that a trigger occurs when specified conditions are met and is + controlled by the ``TRIGger:A:LOGIc`` commands. + - ``PULse`` specifies that a trigger occurs when a specified pulse is found and is + controlled by the ``TRIGger:A:PULse`` commands. + - ``VIDeo`` specifies that the trigger occurs when a video signal is found. Requires an + instrument with video hardware. + - ``I2C`` specifies that a trigger occurs when an Inter-IC Control signal is found. + - ``CAN`` specifies that a trigger occurs when a Controller Area Network frame signal is + found. + - ``SPI`` specifies that a trigger occurs when a Serial Peripheral Interface signal is + found. + - ``COMMunication`` (Option MTM) specifies that a trigger occurs when a communications + signal is found. Supports AMI, HDB3, B3ZS, B6ZS, B8ZS, CMI, MLT3, Manchester, and NRZ + encoded communications signals. COMMunication is available only if Option MTM is + installed. + - ``SERIAL`` specifies that a trigger occurs when NRZ-encoded data is found, providing a + 32-bit serial word. This argument is available with instruments with Option PTM. + - ``RS232`` takes a signal on a data source and allows you to trigger on data within the + RS232 bitstream. The data is only one byte wide. + """ + return self._type + + @property + def upperthreshold(self) -> TriggerAUpperthreshold: + """Return the ``TRIGger:A:UPPerthreshold`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A:UPPerthreshold?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A:UPPerthreshold?`` query + and raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.ch``: The ``TRIGger:A:UPPerthreshold:CH`` command. + """ + return self._upperthreshold + + +# pylint: disable=too-many-instance-attributes +class Trigger(SCPICmdWrite, SCPICmdRead): + """The ``TRIGger`` command. + + **Description:** + - This command forces a trigger event to occur. The query returns the current trigger + parameters for the instrument. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger FORCe + - TRIGger? + + **Info:** + - ``FORCe`` creates a trigger event. If ``TRIGger:STATE`` is set to READy, the acquisition + will complete. Otherwise, this command will be ignored. This is equivalent to pressing the + Force button on the front panel. + + Properties: + - ``.a``: The ``TRIGger:A`` command. + - ``.auxlevel``: The ``TRIGger:AUXLevel`` command. + - ``.b``: The ``TRIGger:B`` command. + - ``.enhanced``: The ``TRIGger:ENHanced`` command. + - ``.equation``: The ``TRIGger:EQUation`` command. + - ``.lvlsrcpreference``: The ``TRIGger:LVLSrcpreference`` command. + - ``.main``: The ``TRIGger:MAIn`` command tree. + - ``.multiscope``: The ``TRIGger:MULTiscope`` command. + - ``.qualification``: The ``TRIGger:QUALification`` command tree. + - ``.sensitivity``: The ``TRIGger:SENSITivity`` command. + - ``.showequation``: The ``TRIGger:SHOWEQuation`` command. + - ``.state``: The ``TRIGger:STATE`` command. + """ + + def __init__(self, device: Optional["PIDevice"] = None, cmd_syntax: str = "TRIGger") -> None: + super().__init__(device, cmd_syntax) + self._auxlevel = TriggerAuxlevel(device, f"{self._cmd_syntax}:AUXLevel") + self._enhanced = TriggerEnhanced(device, f"{self._cmd_syntax}:ENHanced") + self._equation: Dict[int, TriggerEquationItem] = DefaultDictPassKeyToFactory( + lambda x: TriggerEquationItem(device, f"{self._cmd_syntax}:EQUation{x}") + ) + self._lvlsrcpreference = TriggerLvlsrcpreference( + device, f"{self._cmd_syntax}:LVLSrcpreference" + ) + self._main = TriggerMain(device, f"{self._cmd_syntax}:MAIn") + self._multiscope = TriggerMultiscope(device, f"{self._cmd_syntax}:MULTiscope") + self._qualification = TriggerQualification(device, f"{self._cmd_syntax}:QUALification") + self._sensitivity = TriggerSensitivity(device, f"{self._cmd_syntax}:SENSITivity") + self._showequation = TriggerShowequation(device, f"{self._cmd_syntax}:SHOWEQuation") + self._state = TriggerState(device, f"{self._cmd_syntax}:STATE") + self._a = TriggerA(device, f"{self._cmd_syntax}:A") + self._b = TriggerB(device, f"{self._cmd_syntax}:B") + + @property + def auxlevel(self) -> TriggerAuxlevel: + """Return the ``TRIGger:AUXLevel`` command. + + **Description:** + - For those instruments that have an Auxiliary Input (such as an MSO58LP), this command + sets or queries the Auxiliary Input voltage level to use for an edge trigger. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:AUXLevel?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:AUXLevel?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:AUXLevel value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:AUXLevel {|ECL|TTL} + - TRIGger:AUXLevel? + + **Info:** + - ```` is trigger level in Volts. + - ``ECL`` sets trigger level to -1.3 Volts. + - ``TTL`` sets trigger level to 1.4 Volts. + """ + return self._auxlevel + + @property + def enhanced(self) -> TriggerEnhanced: + """Return the ``TRIGger:ENHanced`` command. + + **Description:** + - This command sets or queries the state of trigger position enhancement. When on, the + instrument improves the trigger positioning to more closely match the acquired data. + This is equivalent to selecting Enhanced Triggering from the Trigger Mode menu. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:ENHanced?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:ENHanced?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:ENHanced value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:ENHanced {|OFF|ON} + - TRIGger:ENHanced? + + **Info:** + - ```` = 0 disables trigger position enhancement, any other value enables trigger + position enhancement. + - ``OFF`` disables trigger position enhancement. + - ``ON`` enables trigger position enhancement. + """ + return self._enhanced + + @property + def equation(self) -> Dict[int, TriggerEquationItem]: + """Return the ``TRIGger:EQUation`` command. + + **Description:** + - Sets the Visual Trigger Equation string, which defines the behavior of the areas. + There can be only one equation, which can be up to 128 characters. You can enter the + command as ``TRIGGER:EQUATION`` or ``TRIGGER:EQUATION1``. Each area is assigned a + single source (analog channel 1, 2, 3, or 4). Any analog channel can be used as the + source for one or more areas. Some basic equations are: (C1 IN A1) - The channel 1 + waveform must intersect with Area 1. (C2 OUT A2) - The channel 2 waveform must NOT + intersect with Area 2. ((C1 IN A1) and (C2 OUT A2)) - Combines the previous two + examples. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:EQUation?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:EQUation?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:EQUation value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:EQUation + - TRIGger:EQUation? + + **Info:** + - ```` is the equation that you want to use for visual triggering. This equation + is shown on the oscilloscope screen when visual triggering is enabled. + """ + return self._equation + + @property + def lvlsrcpreference(self) -> TriggerLvlsrcpreference: + """Return the ``TRIGger:LVLSrcpreference`` command. + + **Description:** + - This command sets or queries the dependent source/level trigger feature. + SRCIndependent is the default value. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:LVLSrcpreference?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:LVLSrcpreference?`` query + and raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:LVLSrcpreference value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:LVLSrcpreference {SRCDependent|SRCIndependent} + - TRIGger:LVLSrcpreference? + + **Info:** + - ``SRCDependent`` sets the level of all trigger sources to the value you currently + select, regardless of the last value selected. + - ``SRCIndependent`` sets each trigger source to the level you are currently selecting. + """ + return self._lvlsrcpreference + + @property + def main(self) -> TriggerMain: + """Return the ``TRIGger:MAIn`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MAIn?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MAIn?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.pulse``: The ``TRIGger:MAIn:PULse`` command tree. + """ + return self._main + + @property + def multiscope(self) -> TriggerMultiscope: + """Return the ``TRIGger:MULTiscope`` command. + + **Description:** + - This command sets or queries the state of MultiScope triggering, either ENABle or + DISable. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:MULTiscope?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:MULTiscope?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:MULTiscope value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:MULTiscope {DISable|ENable} + - TRIGger:MULTiscope? + + **Info:** + - ``DISable`` sets the MultiScope triggering state to disabled. + - ``ENable`` sets the MultiScope triggering state to enabled. + + Sub-properties: + - ``.align``: The ``TRIGger:MULTiscope:ALIGN`` command. + - ``.delay``: The ``TRIGger:MULTiscope:DELay`` command. + - ``.logic``: The ``TRIGger:MULTiscope:LOGic`` command. + - ``.option``: The ``TRIGger:MULTiscope:OPTion`` command. + - ``.role``: The ``TRIGger:MULTiscope:ROLe`` command. + """ + return self._multiscope + + @property + def qualification(self) -> TriggerQualification: + """Return the ``TRIGger:QUALification`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:QUALification?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:QUALification?`` query and + raise an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.bus``: The ``TRIGger:QUALification:BUS`` command tree. + """ + return self._qualification + + @property + def sensitivity(self) -> TriggerSensitivity: + """Return the ``TRIGger:SENSITivity`` command. + + **Description:** + - This command set or queries the state of trigger sensitivity. When on, the instrument + calculates a rolling average for trigger position enhancement to suppress trigger + jitter in noisy signals. This is equivalent to selecting Higher Sensitivity for Noisy + Signals from the Trigger Mode menu. This is available only when ``TRIGGER:ENHANCED`` + or the equivalent check box control is also on. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:SENSITivity?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:SENSITivity?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:SENSITivity value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:SENSITivity {|OFF|ON} + - TRIGger:SENSITivity? + + **Info:** + - ```` = 0 disables rolling averaging, any other value enables rolling averaging + for trigger position enhancement. + - ``OFF`` disables rolling averaging for trigger position enhancement. + - ``ON`` enables rolling averaging for trigger position enhancement. + """ + return self._sensitivity + + @property + def showequation(self) -> TriggerShowequation: + """Return the ``TRIGger:SHOWEQuation`` command. + + **Description:** + - Causes the Visual Trigger Equation to be displayed in the upper left portion of the + oscilloscope graticule. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:SHOWEQuation?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:SHOWEQuation?`` query and + raise an AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:SHOWEQuation value`` + command. + + **SCPI Syntax:** + + :: + + - TRIGger:SHOWEQuation {ON|OFF} + - TRIGger:SHOWEQuation? + + **Info:** + - ``ON`` causes the equation to appear on screen. + - ``Off`` hides the equation. + """ + return self._showequation + + @property + def state(self) -> TriggerState: + """Return the ``TRIGger:STATE`` command. + + **Description:** + - This query-only command returns the current state of the triggering system. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:STATE?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:STATE?`` query and raise + an AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - TRIGger:STATE? + """ + return self._state + + @property + def a(self) -> TriggerA: + """Return the ``TRIGger:A`` command. + + **Description:** + - This command sets the A trigger level automatically to 50% of the range of the minimum + and maximum values of the trigger input signal. The query returns current trigger + parameters. The trigger level is the voltage threshold through which the trigger + source signal must pass to generate a trigger event. This command is equivalent to + pushing the LEVEL knob on the front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger:A?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger:A?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger:A value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:A SETLevel + - TRIGger:A? + + **Info:** + - ``SETLevel`` sets the trigger level to 50% of the range of the minimum and maximum + values of the trigger input signal. + + Sub-properties: + - ``.bus``: The ``TRIGger:A:BUS`` command tree. + - ``.can``: The ``TRIGger:A:CAN`` command tree. + - ``.communication``: The ``TRIGger:A:COMMunication`` command tree. + - ``.holdoff``: The ``TRIGger:A:HOLDoff`` command. + - ``.i2c``: The ``TRIGger:A:I2C`` command tree. + - ``.mode``: The ``TRIGger:A:MODe`` command. + - ``.plock``: The ``TRIGger:A:PLOCK`` command tree. + - ``.pulse``: The ``TRIGger:A:PULse`` command tree. + - ``.serial``: The ``TRIGger:A:SERIAL`` command tree. + - ``.spi``: The ``TRIGger:A:SPI`` command tree. + - ``.video``: The ``TRIGger:A:VIDeo`` command. + - ``.edge``: The ``TRIGger:A:EDGE`` command. + - ``.level``: The ``TRIGger:A:LEVel`` command. + - ``.logic``: The ``TRIGger:A:LOGIc`` command. + - ``.lowerthreshold``: The ``TRIGger:A:LOWerthreshold`` command tree. + - ``.ready``: The ``TRIGger:A:READY`` command. + - ``.type``: The ``TRIGger:A:TYPe`` command. + - ``.upperthreshold``: The ``TRIGger:A:UPPerthreshold`` command tree. + """ + return self._a + + @property + def b(self) -> TriggerB: + """Return the ``TRIGger:B`` command. + + **Description:** + - This command sets the B trigger level to 50% of minimum and maximum. The query form of + this command returns the B trigger parameters. This command is similar to selecting B + Event (Delayed) Trigger Setup from the Trig menu and then viewing the current setups. + + **Usage:** + - Using the ``.write(value)`` method will send the ``TRIGger:B value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger:B SETLevel + + **Info:** + - ``SETLevel`` sets the B trigger level to 50% of MIN and MAX. + + Sub-properties: + - ``.by``: The ``TRIGger:B:BY`` command. + - ``.events``: The ``TRIGger:B:EVENTS`` command. + - ``.pulse``: The ``TRIGger:B:PULse`` command tree. + - ``.reset``: The ``TRIGger:B:RESET`` command tree. + - ``.scan``: The ``TRIGger:B:SCAN`` command tree. + - ``.state``: The ``TRIGger:B:STATE`` command. + - ``.time``: The ``TRIGger:B:TIMe`` command. + - ``.edge``: The ``TRIGger:B:EDGE`` command. + - ``.level``: The ``TRIGger:B:LEVel`` command. + - ``.logic``: The ``TRIGger:B:LOGIc`` command. + - ``.lowerthreshold``: The ``TRIGger:B:LOWerthreshold`` command tree. + - ``.ready``: The ``TRIGger:B:READY`` command. + - ``.type``: The ``TRIGger:B:TYPe`` command. + - ``.upperthreshold``: The ``TRIGger:B:UPPerthreshold`` command tree. + """ + return self._b diff --git a/src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/__init__.py b/src/tm_devices/commands/_fpx9s1_dpodsamso/__init__.py similarity index 100% rename from src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/__init__.py rename to src/tm_devices/commands/_fpx9s1_dpodsamso/__init__.py diff --git a/src/tm_devices/commands/_5xwdsk_dpodsamso/counter.py b/src/tm_devices/commands/_fpx9s1_dpodsamso/counter.py similarity index 99% rename from src/tm_devices/commands/_5xwdsk_dpodsamso/counter.py rename to src/tm_devices/commands/_fpx9s1_dpodsamso/counter.py index 4470657d4..51900b352 100644 --- a/src/tm_devices/commands/_5xwdsk_dpodsamso/counter.py +++ b/src/tm_devices/commands/_fpx9s1_dpodsamso/counter.py @@ -1,7 +1,8 @@ """The counter commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, MSO70KC, +MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5xwdsk_dpodsamso/linktraining.py b/src/tm_devices/commands/_fpx9s1_dpodsamso/linktraining.py similarity index 99% rename from src/tm_devices/commands/_5xwdsk_dpodsamso/linktraining.py rename to src/tm_devices/commands/_fpx9s1_dpodsamso/linktraining.py index 2c664bf8c..5e737430c 100644 --- a/src/tm_devices/commands/_5xwdsk_dpodsamso/linktraining.py +++ b/src/tm_devices/commands/_fpx9s1_dpodsamso/linktraining.py @@ -1,7 +1,8 @@ """The linktraining commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, MSO70KC, +MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_5xwdsk_dpodsamso/rosc.py b/src/tm_devices/commands/_fpx9s1_dpodsamso/rosc.py similarity index 99% rename from src/tm_devices/commands/_5xwdsk_dpodsamso/rosc.py rename to src/tm_devices/commands/_fpx9s1_dpodsamso/rosc.py index 376f28e4a..32781e087 100644 --- a/src/tm_devices/commands/_5xwdsk_dpodsamso/rosc.py +++ b/src/tm_devices/commands/_fpx9s1_dpodsamso/rosc.py @@ -1,7 +1,8 @@ """The rosc commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO7KC, DSA70KC, DSA70KD, MSO5KB, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MSO5K, MSO5KB, MSO70KC, +MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e9znur_lpdmsomdodpoafgawgdsa/__init__.py b/src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/__init__.py similarity index 100% rename from src/tm_devices/commands/_e9znur_lpdmsomdodpoafgawgdsa/__init__.py rename to src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/__init__.py diff --git a/src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/calibration.py b/src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py similarity index 81% rename from src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/calibration.py rename to src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py index 6419ed928..9d88c5b30 100644 --- a/src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/calibration.py +++ b/src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/calibration.py @@ -2,9 +2,9 @@ These commands are used in the following models: AFG3K, AFG3KB, AFG3KC, AWG5200, AWG5K, AWG5KC, AWG70KA, AWG70KB, AWG7K, AWG7KC, DPO2K, DPO2KB, -DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MDO3, -MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, MSO5B, MSO5KB, -MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, +LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, +MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/miscellaneous.py b/src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py similarity index 89% rename from src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/miscellaneous.py rename to src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py index c3914474a..02737468a 100644 --- a/src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/miscellaneous.py +++ b/src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/miscellaneous.py @@ -2,9 +2,9 @@ These commands are used in the following models: AFG3K, AFG3KB, AFG3KC, AWG5200, AWG5K, AWG5KC, AWG70KA, AWG70KB, AWG7K, AWG7KC, DPO2K, DPO2KB, -DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MDO3, -MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, MSO5B, MSO5KB, -MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, +LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, +MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/status_and_error.py b/src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/status_and_error.py similarity index 96% rename from src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/status_and_error.py rename to src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/status_and_error.py index 6116c52a2..d86ecdca9 100644 --- a/src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/_ft5uww_lpdmsodpomdoafgawgdsa/status_and_error.py @@ -2,9 +2,9 @@ These commands are used in the following models: AFG3K, AFG3KB, AFG3KC, AWG5200, AWG5K, AWG5KC, AWG70KA, AWG70KB, AWG7K, AWG7KC, DPO2K, DPO2KB, -DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MDO3, -MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, MSO5B, MSO5KB, -MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, +LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, +MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/__init__.py b/src/tm_devices/commands/_fteabn_lpdmsomdodpoafgawgdsa/__init__.py similarity index 100% rename from src/tm_devices/commands/_ea3vk0_lpdmsodpomdoafgawgdsa/__init__.py rename to src/tm_devices/commands/_fteabn_lpdmsomdodpoafgawgdsa/__init__.py diff --git a/src/tm_devices/commands/_e9znur_lpdmsomdodpoafgawgdsa/status_and_error.py b/src/tm_devices/commands/_fteabn_lpdmsomdodpoafgawgdsa/status_and_error.py similarity index 86% rename from src/tm_devices/commands/_e9znur_lpdmsomdodpoafgawgdsa/status_and_error.py rename to src/tm_devices/commands/_fteabn_lpdmsomdodpoafgawgdsa/status_and_error.py index e710db284..bfbdfab0d 100644 --- a/src/tm_devices/commands/_e9znur_lpdmsomdodpoafgawgdsa/status_and_error.py +++ b/src/tm_devices/commands/_fteabn_lpdmsomdodpoafgawgdsa/status_and_error.py @@ -2,9 +2,9 @@ These commands are used in the following models: AFG3K, AFG3KB, AFG3KC, AWG5200, AWG5K, AWG5KC, AWG70KA, AWG70KB, AWG7K, AWG7KC, DPO4K, DPO4KB, -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, -MDO4KB, MDO4KC, MSO2, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, -MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, LPD6, MDO3, +MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, +MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_ecer2i_lpdmsodpomdoawgdsa/__init__.py b/src/tm_devices/commands/_fug7nl_lpdmsodpomdoawgdsa/__init__.py similarity index 100% rename from src/tm_devices/commands/_ecer2i_lpdmsodpomdoawgdsa/__init__.py rename to src/tm_devices/commands/_fug7nl_lpdmsodpomdoawgdsa/__init__.py diff --git a/src/tm_devices/commands/_ecer2i_lpdmsodpomdoawgdsa/status_and_error.py b/src/tm_devices/commands/_fug7nl_lpdmsodpomdoawgdsa/status_and_error.py similarity index 91% rename from src/tm_devices/commands/_ecer2i_lpdmsodpomdoawgdsa/status_and_error.py rename to src/tm_devices/commands/_fug7nl_lpdmsodpomdoawgdsa/status_and_error.py index 2cc68aabf..f0ff6d169 100644 --- a/src/tm_devices/commands/_ecer2i_lpdmsodpomdoawgdsa/status_and_error.py +++ b/src/tm_devices/commands/_fug7nl_lpdmsodpomdoawgdsa/status_and_error.py @@ -1,10 +1,10 @@ """The status_and_error commands module. These commands are used in the following models: -AWG5200, AWG5K, AWG5KC, AWG70KA, AWG70KB, AWG7K, AWG7KC, DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, -DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, -MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, -MSO70KC, MSO70KDX +AWG5200, AWG5K, AWG5KC, AWG70KA, AWG70KB, AWG7K, AWG7KC, DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, +DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, +MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, +MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/__init__.py b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/alias.py b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/alias.py similarity index 98% rename from src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/alias.py rename to src/tm_devices/commands/_fuzvln_lpdmsodpodsa/alias.py index 9e3b88f93..3a2af1c43 100644 --- a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/alias.py +++ b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/alias.py @@ -1,8 +1,8 @@ """The alias commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, MSO4, MSO4B, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, +MSO4, MSO4B, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/header.py b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/header.py similarity index 91% rename from src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/header.py rename to src/tm_devices/commands/_fuzvln_lpdmsodpodsa/header.py index 1d0fd8db6..54815dab4 100644 --- a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/header.py +++ b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/header.py @@ -1,8 +1,8 @@ """The header commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, MSO4, MSO4B, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, +MSO4, MSO4B, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/status_and_error.py b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/status_and_error.py similarity index 92% rename from src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/status_and_error.py rename to src/tm_devices/commands/_fuzvln_lpdmsodpodsa/status_and_error.py index 713d76215..c7ba5c1c1 100644 --- a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/status_and_error.py +++ b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/status_and_error.py @@ -1,8 +1,8 @@ """The status_and_error commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, MSO4, MSO4B, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, +MSO4, MSO4B, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/verbose.py b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/verbose.py similarity index 88% rename from src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/verbose.py rename to src/tm_devices/commands/_fuzvln_lpdmsodpodsa/verbose.py index b9b999abb..2647c5c32 100644 --- a/src/tm_devices/commands/_e5nqsy_lpdmsodpodsa/verbose.py +++ b/src/tm_devices/commands/_fuzvln_lpdmsodpodsa/verbose.py @@ -1,8 +1,8 @@ """The verbose commands module. These commands are used in the following models: -DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, MSO4, MSO4B, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, LPD6, MSO2, +MSO4, MSO4B, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/__init__.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/allev.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/allev.py similarity index 82% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/allev.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/allev.py index e04093f33..afd7a2e0d 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/allev.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/allev.py @@ -1,9 +1,9 @@ """The allev commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/busy.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/busy.py similarity index 79% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/busy.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/busy.py index 3a47da70b..b01ef269e 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/busy.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/busy.py @@ -1,9 +1,9 @@ """The busy commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/dese.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/dese.py similarity index 86% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/dese.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/dese.py index 89d4b16bc..63bb6902a 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/dese.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/dese.py @@ -1,9 +1,9 @@ """The dese commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/event.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/event.py similarity index 80% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/event.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/event.py index f1eb1e72a..b9e7c95a3 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/event.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/event.py @@ -1,9 +1,9 @@ """The event commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/evmsg.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/evmsg.py similarity index 81% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/evmsg.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/evmsg.py index e2ede9f41..e481d2ade 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/evmsg.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/evmsg.py @@ -1,9 +1,9 @@ """The evmsg commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/evqty.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/evqty.py similarity index 80% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/evqty.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/evqty.py index 423aa812d..b5cc9be9c 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/evqty.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/evqty.py @@ -1,9 +1,9 @@ """The evqty commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/factory.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/factory.py similarity index 84% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/factory.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/factory.py index 57beb6a33..7f0566624 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/factory.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/factory.py @@ -1,9 +1,9 @@ """The factory commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/id.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/id.py similarity index 80% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/id.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/id.py index 3e49aae8f..914834d4f 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/id.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/id.py @@ -1,9 +1,9 @@ """The id commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/miscellaneous.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/miscellaneous.py similarity index 91% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/miscellaneous.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/miscellaneous.py index bf5bc3c11..f0074370d 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/miscellaneous.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/miscellaneous.py @@ -1,9 +1,9 @@ """The miscellaneous commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/newpass.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/newpass.py similarity index 81% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/newpass.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/newpass.py index 4722b786f..ef4442a3a 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/newpass.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/newpass.py @@ -1,9 +1,9 @@ """The newpass commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/password.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/password.py similarity index 85% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/password.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/password.py index 8f35cb6ac..9e846b8fa 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/password.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/password.py @@ -1,9 +1,9 @@ """The password commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/rem.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/rem.py similarity index 80% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/rem.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/rem.py index 0f8d91560..26ff68ed3 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/rem.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/rem.py @@ -1,9 +1,9 @@ """The rem commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/set.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/set.py similarity index 85% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/set.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/set.py index 6fe43c641..e1bef2079 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/set.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/set.py @@ -1,9 +1,9 @@ """The set commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/status_and_error.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/status_and_error.py similarity index 84% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/status_and_error.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/status_and_error.py index eeba3534c..4227b5464 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/status_and_error.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/status_and_error.py @@ -1,9 +1,9 @@ """The status_and_error commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/teksecure.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/teksecure.py similarity index 80% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/teksecure.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/teksecure.py index 4a3432447..fdcdc71f9 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/teksecure.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/teksecure.py @@ -1,9 +1,9 @@ """The teksecure commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/wavfrm.py b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/wavfrm.py similarity index 81% rename from src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/wavfrm.py rename to src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/wavfrm.py index d03625f89..e44b867a5 100644 --- a/src/tm_devices/commands/_e3bgpz_lpdmsodpomdodsa/wavfrm.py +++ b/src/tm_devices/commands/_fx54ua_lpdmsodpomdodsa/wavfrm.py @@ -1,9 +1,9 @@ """The wavfrm commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, -MSO5, MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/__init__.py b/src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/lock.py b/src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/lock.py similarity index 88% rename from src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/lock.py rename to src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/lock.py index 7fc8d39cd..757de6dd0 100644 --- a/src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/lock.py +++ b/src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/lock.py @@ -1,9 +1,9 @@ """The lock commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, -MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/unlock.py b/src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/unlock.py similarity index 80% rename from src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/unlock.py rename to src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/unlock.py index 6e591f087..0c44af2a8 100644 --- a/src/tm_devices/commands/_e5td2t_lpdmsodpomdodsa/unlock.py +++ b/src/tm_devices/commands/_fzn174_lpdmsodpomdodsa/unlock.py @@ -1,9 +1,9 @@ """The unlock commands module. These commands are used in the following models: -DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7KC, DSA70KC, -DSA70KD, LPD6, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, MSO4KB, MSO5, -MSO5B, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX +DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, +DSA70KC, DSA70KD, LPD6, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2, MSO2K, MSO2KB, MSO4, MSO4B, MSO4K, +MSO4KB, MSO5, MSO5B, MSO5K, MSO5KB, MSO5LP, MSO6, MSO6B, MSO70KC, MSO70KDX THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. diff --git a/src/tm_devices/commands/_helpers/generic_commands.py b/src/tm_devices/commands/_helpers/generic_commands.py index b13502909..0e55f84a5 100644 --- a/src/tm_devices/commands/_helpers/generic_commands.py +++ b/src/tm_devices/commands/_helpers/generic_commands.py @@ -53,7 +53,7 @@ def __missing__(self, key: Any) -> Any: # noinspection PyArgumentList # pylint: disable=not-callable dict.__setitem__(self, key, self.default_factory(key)) # type: ignore return cast(Any, self[key]) - return cast(Any, super().__missing__(key)) # pyright: ignore[reportUnknownMemberType] + return cast(Any, super().__missing__(key)) # pyright: ignore [reportUnknownMemberType] @total_ordering # If comparisons are slowing down the code, implementing the rest would speed it up diff --git a/src/tm_devices/commands/_lpd6_commands.py b/src/tm_devices/commands/_lpd6_commands.py index c0e3c665c..24092066c 100644 --- a/src/tm_devices/commands/_lpd6_commands.py +++ b/src/tm_devices/commands/_lpd6_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mdo3_commands.py b/src/tm_devices/commands/_mdo3_commands.py index 4af279372..1802ed67f 100644 --- a/src/tm_devices/commands/_mdo3_commands.py +++ b/src/tm_devices/commands/_mdo3_commands.py @@ -54,35 +54,35 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e4de2d_lpdmsomdo.clear import Clear from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm from ._helpers import DefaultDictPassKeyToFactory from ._ujuvb_mdo.acquire import Acquire from ._ujuvb_mdo.configuration import Configuration diff --git a/src/tm_devices/commands/_mdo3k_commands.py b/src/tm_devices/commands/_mdo3k_commands.py index 01844b272..746d783e8 100644 --- a/src/tm_devices/commands/_mdo3k_commands.py +++ b/src/tm_devices/commands/_mdo3k_commands.py @@ -65,36 +65,36 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory from ._usaa3_mdo.rf import Rf from ._usaa3_mdo.search import Search diff --git a/src/tm_devices/commands/_mdo4k_commands.py b/src/tm_devices/commands/_mdo4k_commands.py index 1cc1ae87e..014631ce9 100644 --- a/src/tm_devices/commands/_mdo4k_commands.py +++ b/src/tm_devices/commands/_mdo4k_commands.py @@ -67,37 +67,37 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._163n04_mdo.search import Search -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mdo4kb_commands.py b/src/tm_devices/commands/_mdo4kb_commands.py index 034c7a0bb..84f5e9663 100644 --- a/src/tm_devices/commands/_mdo4kb_commands.py +++ b/src/tm_devices/commands/_mdo4kb_commands.py @@ -67,37 +67,37 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._16x4xq_mdo.search import Search -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mdo4kc_commands.py b/src/tm_devices/commands/_mdo4kc_commands.py index 33f0d42d9..8cd4abc4f 100644 --- a/src/tm_devices/commands/_mdo4kc_commands.py +++ b/src/tm_devices/commands/_mdo4kc_commands.py @@ -68,36 +68,36 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso2_commands.py b/src/tm_devices/commands/_mso2_commands.py index 6ab7d05e4..297000b8f 100644 --- a/src/tm_devices/commands/_mso2_commands.py +++ b/src/tm_devices/commands/_mso2_commands.py @@ -37,22 +37,6 @@ from ._1zn03_mso.select import Select from ._1zn03_mso.touchscreen import Touchscreen from ._1zn03_mso.trigger import Trigger -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3h2zs_lpdmso.afg import Afg from ._e3h2zs_lpdmso.autosavepitimeout import Autosavepitimeout from ._e3h2zs_lpdmso.autosaveuitimeout import Autosaveuitimeout @@ -76,20 +60,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso2k_commands.py b/src/tm_devices/commands/_mso2k_commands.py index 30bce6598..dfb531eb3 100644 --- a/src/tm_devices/commands/_mso2k_commands.py +++ b/src/tm_devices/commands/_mso2k_commands.py @@ -20,34 +20,34 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fkjfe8_msodpodsa.time import Time +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory from ._u301s_msodpo.acquire import Acquire from ._u301s_msodpo.alias import Alias diff --git a/src/tm_devices/commands/_mso2kb_commands.py b/src/tm_devices/commands/_mso2kb_commands.py index 26310c141..93d7710b1 100644 --- a/src/tm_devices/commands/_mso2kb_commands.py +++ b/src/tm_devices/commands/_mso2kb_commands.py @@ -20,34 +20,34 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fkjfe8_msodpodsa.time import Time +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory from ._u301s_msodpo.acquire import Acquire from ._u301s_msodpo.alias import Alias diff --git a/src/tm_devices/commands/_mso4_commands.py b/src/tm_devices/commands/_mso4_commands.py index 1df37317c..aa530101a 100644 --- a/src/tm_devices/commands/_mso4_commands.py +++ b/src/tm_devices/commands/_mso4_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso4b_commands.py b/src/tm_devices/commands/_mso4b_commands.py index 462dbe69a..e742da5af 100644 --- a/src/tm_devices/commands/_mso4b_commands.py +++ b/src/tm_devices/commands/_mso4b_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso4k_commands.py b/src/tm_devices/commands/_mso4k_commands.py index e1a7fdfde..444260d9b 100644 --- a/src/tm_devices/commands/_mso4k_commands.py +++ b/src/tm_devices/commands/_mso4k_commands.py @@ -68,36 +68,36 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso4kb_commands.py b/src/tm_devices/commands/_mso4kb_commands.py index 7c1d4db5e..9d258c72e 100644 --- a/src/tm_devices/commands/_mso4kb_commands.py +++ b/src/tm_devices/commands/_mso4kb_commands.py @@ -68,36 +68,36 @@ from ._1nmc1o_msodpomdo.usbdevice import Usbdevice from ._1nmc1o_msodpomdo.usbtmc import Usbtmc from ._1nmc1o_msodpomdo.verbose import Verbose -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso5_commands.py b/src/tm_devices/commands/_mso5_commands.py index d98c98689..16a3dd394 100644 --- a/src/tm_devices/commands/_mso5_commands.py +++ b/src/tm_devices/commands/_mso5_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso5b_commands.py b/src/tm_devices/commands/_mso5b_commands.py index 3ec021d28..f8a588f74 100644 --- a/src/tm_devices/commands/_mso5b_commands.py +++ b/src/tm_devices/commands/_mso5b_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso5k_commands.py b/src/tm_devices/commands/_mso5k_commands.py new file mode 100644 index 000000000..83954ddca --- /dev/null +++ b/src/tm_devices/commands/_mso5k_commands.py @@ -0,0 +1,3986 @@ +# pylint: disable=too-many-lines +"""The MSO5K commands module. + +THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED. + +Please report an issue if one is found. +""" +from typing import Any, Dict, Optional + +from tm_devices.drivers.pi.pi_device import PIDevice + +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fn2qbf_msodpo.errordetector import Errordetector +from ._fn2qbf_msodpo.trigger import Trigger +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock +from ._helpers import DefaultDictPassKeyToFactory + + +# pylint: disable=too-few-public-methods +class MSO5KCommandConstants: + """The MSO5K command argument constants. + + This provides access to all the string constants which can be used as arguments for MSO5K + commands. + """ + + A = "A" + ABSOLUTE = "ABSOLUTE" # ABSolute + AC = "AC" + ACCEPT = "ACCEPT" # ACCept + ACK = "ACK" + ACKERRORREPORT = "ACKERRORREPORT" # ACKErrorreport + ACKMISS = "ACKMISS" + ADDR10 = "ADDR10" + ADDR7 = "ADDR7" + ADDRANDDATA = "ADDRANDDATA" + ADDRESS = "ADDRESS" # ADDress + ALL = "ALL" + ALLFIELDS = "ALLFIELDS" # ALLFields + ALLLINES = "ALLLINES" # ALLLines + AMI = "AMI" + AMPLITUDE = "AMPLITUDE" # AMPlitude + ANALOG = "ANALOG" # ANALog + AND = "AND" + ANY = "ANY" + AREA = "AREA" + # AREA = "AREa" + ARMATRIGB = "ARMATRIGB" # ARMAtrigb + ASCII = "ASCII" # ASCIi + # ASCII = "ASCii" + ATI = "ATI" + ATRIGGER = "ATRIGGER" # ATRIGger + AUTO = "AUTO" + AUXILIARY = "AUXILIARY" # AUXiliary + AVERAGE = "AVERAGE" # AVErage + B = "B" + B3ZS = "B3ZS" + B6ZS = "B6ZS" + B8ZS = "B8ZS" + BACKWARDS = "BACKWARDS" # BACKWards + BASE = "BASE" # BASe + BILEVELCUSTOM = "BILEVELCUSTOM" # BILevelcustom + BINARY = "BINARY" + # BINARY = "BINary" + # BINARY = "Binary" + BIT = "BIT" + BITSTUFFING = "BITSTUFFING" # BITSTUFFing + BLACKMANHARRIS = "BLACKMANHARRIS" # BLACKMANHarris + BLANK = "BLANK" + BLOCK = "BLOCK" + BLOCK1THEN2 = "BLOCK1THEN2" + BMP = "BMP" + BOTH = "BOTH" # BOTh + BTA = "BTA" + BTRIGGER = "BTRIGGER" # BTRIGger + BURST = "BURST" # BURst + BUS = "BUS" + BYPASS = "BYPASS" # BYPass + CAN = "CAN" + CANH = "CANH" + CANL = "CANL" + CAREA = "CAREA" # CARea + CHAR = "CHAR" + CHARACTER = "CHARACTER" + CHECKSUM = "CHECKSUM" # CHecksum + CHECKSUMERROR = "CHECKSUMERROR" # CHECKsumerror + CHKSUMERROR = "CHKSUMERROR" # CHKSUMError + CLEAR = "CLEAR" + CLOCK = "CLOCK" # CLOCk + CMEAN = "CMEAN" # CMEan + CMI = "CMI" + COLOR = "COLOR" # COLOr + COLOROFF = "COLOROFF" + COLORON = "COLORON" + COLUMN = "COLUMN" + COMMAND = "COMMAND" + COMMONMODE = "COMMONMODE" # COMmonmode + COMMUNICATION = "COMMUNICATION" # COMMunication + COMPAT = "COMPAT" + CONTENTION = "CONTENTION" # CONTention + CONTROL = "CONTROL" # CONtrol + COUNT = "COUNT" + CR = "CR" + CRC16 = "CRC16" + CRC5 = "CRC5" + CRMS = "CRMS" # CRMs + CROSSHAIR = "CROSSHAIR" # CROSSHair + CSPLIT = "CSPLIT" + CTRLSKP = "CTRLSKP" + CUSTOM = "CUSTOM" + # CUSTOM = "CUSTom" + DASHED = "DASHED" # DASHed + DATA = "DATA" + # DATA = "DATa" + DATAPACKET = "DATAPACKET" # DATAPacket + DB = "DB" + DBM = "DBM" + DC = "DC" + DCREJECT = "DCREJECT" # DCREJect + DCSLONGREAD = "DCSLONGREAD" # DCSLONGRead + DCSLONGWRITE = "DCSLONGWRITE" # DCSLONGWrite + DCSR = "DCSR" + DCSRR2 = "DCSRR2" + DCSSRR1 = "DCSSRR1" + DDRREAD = "DDRREAD" # DDRRead + DDRREADWRITE = "DDRREADWRITE" # DDRREADWrite + DDRWRITE = "DDRWRITE" # DDRWrite + DECIMAL = "DECIMAL" # DECImal + DECODEFILENAME = "DECODEFILENAME" # decodeFileName + DEFAULT = "DEFAULT" + # DEFAULT = "DEFAult" + # DEFAULT = "DEFault" + DELAY = "DELAY" # DELay + DELAYED = "DELAYED" # DELayed + DELETE = "DELETE" # DELEte + DETAILED = "DETAILED" # DETAiled + DIFFERENTIAL = "DIFFERENTIAL" # DIFFerential + DIGITAL = "DIGITAL" # DIGItal + DISABLE = "DISABLE" # DISable + DISTDUTY = "DISTDUTY" # DISTDUty + DONE = "DONE" + DONTCARE = "DONTCARE" # DONTCare + # DONTCARE = "DONTcare" + DP = "DP" + DSINR = "DSINR" + DSIVC = "DSIVC" + DSIVIOLATION = "DSIVIOLATION" # DSIViolation + DYNAMIC = "DYNAMIC" + ECCERROR = "ECCERROR" # ECCError + ECCMBERROR = "ECCMBERROR" # ECCMBError + ECCSBERROR = "ECCSBERROR" # ECCSBError + ECCWARN = "ECCWARN" # ECCWarn + ECL = "ECL" + EDGE = "EDGE" + EI = "EI" + EIE = "EIE" + EIGHTYTWENTY = "EIGHTYTWENTY" # EIGHtytwenty + EITHER = "EITHER" # EITHer + # EITHER = "EITher" + EMBEDDED = "EMBEDDED" # EMBEDded + ENABLE = "ENABLE" # ENable + ENET100BASETX = "ENET100BASETX" + ENET100FX = "ENET100FX" + ENET10BASET = "ENET10BASET" + ENET1250 = "ENET1250" + ENETXAUI = "ENETXAUI" + ENETXAUI2 = "ENETXAUI2" + ENTERSWINDOW = "ENTERSWINDOW" # ENTERSWindow + ENV = "ENV" + ENVELOPE = "ENVELOPE" # ENVelope + EOF = "EOF" + EOP = "EOP" + # EOP = "EOp" + EOT = "EOT" + EOTSYNC = "EOTSYNC" # EOTSync + EQUAL = "EQUAL" # EQUal + # EQUAL = "EQual" + ERR = "ERR" + ERROR = "ERROR" + # ERROR = "ERRor" + ESCMODE = "ESCMODE" # ESCMode + ESCMODEERROR = "ESCMODEERROR" # ESCMODEError + ET = "ET" + ETHERNET = "ETHERNET" # ETHernet + EVEN = "EVEN" + EVENT = "EVENT" + EVENTS = "EVENTS" + EXECUTE = "EXECUTE" # EXECute + EXITSWINDOW = "EXITSWINDOW" # EXITSWindow + EXTENDED = "EXTENDED" # EXTENDed + # EXTENDED = "EXTENded" + EXTINCTDB = "EXTINCTDB" + EXTINCTPCT = "EXTINCTPCT" + EXTINCTRATIO = "EXTINCTRATIO" + EYE = "EYE" + EYEDIAGRAM = "EYEDIAGRAM" # EYEdiagram + EYEHEIGHT = "EYEHEIGHT" # EYEHeight + FALL = "FALL" + FALLING = "FALLING" # FALling + FALSE = "FALSE" # FALSe + FAST = "FAST" + FASTERTHAN = "FASTERTHAN" # FASTERthan + FASTEST = "FASTEST" # FAStest + FC1063 = "FC1063" + FC133 = "FC133" + FC2125 = "FC2125" + FC266 = "FC266" + FC4250 = "FC4250" + FC531 = "FC531" + FCE = "FCE" + FCSERROR = "FCSERROR" # FCSError + FFWD = "FFWD" + FIFTYFIFTY = "FIFTYFIFTY" # FIFtyfifty + FIRST = "FIRST" # FIRst + FLATTOP2 = "FLATTOP2" + FLEXRAY = "FLEXRAY" + FORCE = "FORCE" # FORCe + FORWARD = "FORWARD" # FORWard + FORWARDS = "FORWARDS" # FORWards + FP = "FP" + FPBINARY = "FPBINARY" # FPBinary + FRAME = "FRAME" + # FRAME = "FRAme" + FRAMEEND = "FRAMEEND" # FRAMEEnd + FRAMESTART = "FRAMESTART" # FRAMEStart + FRAMETYPE = "FRAMETYPE" # FRAMEtype + FREQUENCY = "FREQUENCY" # FREQuency + FREV = "FREV" + FTS = "FTS" + FULL = "FULL" + # FULL = "FULl" + FULLNOMENU = "FULLNOMENU" # FULLNOmenu + FULLSCREEN = "FULLSCREEN" + FULLSPEED = "FULLSPEED" # FULLSPeed + FW1394BS1600B = "FW1394BS1600B" + FW1394BS400B = "FW1394BS400B" + FW1394BS800B = "FW1394BS800B" + FWD = "FWD" + GAUSSIAN = "GAUSSIAN" # GAUSSian + GLITCH = "GLITCH" # GLItch + GLONGREAD = "GLONGREAD" # GLONGRead + GLONGWRITE = "GLONGWRITE" # GLONGWrite + GND = "GND" + GPIB = "GPIB" # GPIb + GRATICULE = "GRATICULE" # GRAticule + GREATERTHAN = "GREATERTHAN" # GREATerthan + GRID = "GRID" # GRId + HAMMING = "HAMMING" # HAMMing + HANDSHAKEPACKET = "HANDSHAKEPACKET" # HANDSHAKEPacket + HANNING = "HANNING" # HANNing + HBARS = "HBARS" # HBArs + HD1080I50 = "HD1080I50" + HD1080I60 = "HD1080I60" + HD1080P24 = "HD1080P24" + HD1080P25 = "HD1080P25" + HD1080P30 = "HD1080P30" + HD1080P50 = "HD1080P50" + HD1080P60 = "HD1080P60" + HD1080SF24 = "HD1080SF24" + HD480P60 = "HD480P60" + HD576P50 = "HD576P50" + HD720P30 = "HD720P30" + HD720P50 = "HD720P50" + HD720P60 = "HD720P60" + HD875I60 = "HD875I60" + HDB3 = "HDB3" + HERTZ = "HERTZ" # HERtz + HEX = "HEX" + HEXADECIMAL = "HEXADECIMAL" # HEXadecimal + HFREJ = "HFREJ" # HFRej + HIGH = "HIGH" + # HIGH = "high" + HIRES = "HIRES" # HIRes + HISTOGRAM = "HISTOGRAM" # HIStogram + HITS = "HITS" # HITs + HLS = "HLS" + HORIZONTAL = "HORIZONTAL" + # HORIZONTAL = "HORizontal" + HSRTERROR = "HSRTERROR" # HSRTError + HSYNCEND = "HSYNCEND" # HSYNCEnd + HSYNCSTART = "HSYNCSTART" # HSYNCStart + I2C = "I2C" + IDANDDATA = "IDANDDATA" + IDENTIFIER = "IDENTIFIER" # IDENTifier + IDLE = "IDLE" + IN = "IN" + INDEPENDENT = "INDEPENDENT" # INDependent + INFINIBAND = "INFINIBAND" + INFPERSIST = "INFPERSIST" # INFPersist + INHERIT = "INHERIT" + INIT = "INIT" + INKSAVER = "INKSAVER" # INKSaver + INRANGE = "INRANGE" # INrange + INSIDE = "INSIDE" # INSide + INSIDEGREATER = "INSIDEGREATER" # INSIDEGreater + INVALID = "INVALID" + INVERTED = "INVERTED" # INVERTed + # INVERTED = "INVerted" + IRE = "IRE" + ISOALL = "ISOALL" + ISOEND = "ISOEND" + ISOMID = "ISOMID" + ISOSTART = "ISOSTART" + IT = "IT" + ITP = "ITP" + JPEG = "JPEG" + KAISERBESSEL = "KAISERBESSEL" # KAISERBessel + LANDSCAPE = "LANDSCAPE" # LANdscape + LARGE = "LARGE" + # LARGE = "LARge" + LAST = "LAST" + LEARN = "LEARN" + LESSEQUAL = "LESSEQUAL" # LESSEQual + LESSTHAN = "LESSTHAN" # LESSThan + # LESSTHAN = "LESSthan" + LF = "LF" + LFREJ = "LFREJ" # LFRej + LIN = "LIN" + LINE = "LINE" + LINEAR = "LINEAR" # LINEAr + LINEEND = "LINEEND" # LINEEnd + LINES = "LINES" + LINESTART = "LINESTART" # LINEStart + LINE_X = "LINE_X" + LIVE = "LIVE" + LMP = "LMP" + LMPCONFIG = "LMPCONFIG" # LMPConfig + LMPDEVICE = "LMPDEVICE" # LMPDevice + LMPLINK = "LMPLINK" # LMPLink + LMPRESPONSE = "LMPRESPONSE" # LMPResponse + LMPUTWO = "LMPUTWO" # LMPUtwo + LOCK = "LOCK" + # LOCK = "LOck" + LOGIC = "LOGIC" + # LOGIC = "LOGIc" + LONG = "LONG" + LOW = "LOW" + # LOW = "low" + LOWSPEED = "LOWSPEED" # LOWSPeed + LPDATA = "LPDATA" + LPS666 = "LPS666" + LPTSERROR = "LPTSERROR" # LPTSError + LSB = "LSB" + MACADDRESS = "MACADDRESS" # MACADDRess + MANCHESTER = "MANCHESTER" # MANCHester + MANUAL = "MANUAL" + # MANUAL = "MANual" + MAXIMUM = "MAXIMUM" # MAXimum + MAXRETSIZE = "MAXRETSIZE" # MAXRETsize + MDATA = "MDATA" + MEAN = "MEAN" + MEANSTDDEV = "MEANSTDDEV" # MEANSTDdev + MEDIAN = "MEDIAN" # MEDian + MEDIUM = "MEDIUM" # MEDium + MHZ10 = "MHZ10" + MHZ100 = "MHZ100" + MINIMIZED = "MINIMIZED" + MINIMUM = "MINIMUM" # MINImum + MINMAX = "MINMAX" # MINMax + MINUSONE = "MINUSONE" # MINUSOne + MIPICSITWO = "MIPICSITWO" # MIPICSITWo + MIPIDSIONE = "MIPIDSIONE" # MIPIDSIOne + MISO = "MISO" + MISOMOSI = "MISOMOSI" + MIXED = "MIXED" # MIXed + MLT3 = "MLT3" + MONOGRAY = "MONOGRAY" + MONOGREEN = "MONOGREEN" + MOREEQUA = "MOREEQUA" # MOREEQua + MOREEQUAL = "MOREEQUAL" # MOREEQual + MORETHAN = "MORETHAN" # MOREThan + # MORETHAN = "MOREthan" + MOSI = "MOSI" + MSB = "MSB" + MV = "MV" + NAK = "NAK" + NAND = "NAND" # NANd + NCROSS = "NCROSS" # NCROss + NDUTY = "NDUTY" # NDUty + NEGATIVE = "NEGATIVE" # NEGAtive + NEXT = "NEXT" + NO = "NO" + # NO = "No" + NOCARE = "NOCARE" + NOISEREJ = "NOISEREJ" # NOISErej + NOPARITY = "NOPARITY" # NOPARity + NOR = "NOR" + NORMAL = "NORMAL" # NORMal + NOVERSHOOT = "NOVERSHOOT" # NOVershoot + NRZ = "NRZ" + NTSC = "NTSC" + # NTSC = "NTSc" + NULL = "NULL" + NUMERIC = "NUMERIC" # NUMERic + NWIDTH = "NWIDTH" # NWIdth + NYET = "NYET" + OC1 = "OC1" + OC12 = "OC12" + OC3 = "OC3" + OCCURS = "OCCURS" # OCCurs + ODD = "ODD" + OFF = "OFF" + ON = "ON" + ONE = "ONE" + OR = "OR" + OUT = "OUT" + OUTRANGE = "OUTRANGE" # OUTrange + OUTSIDE = "OUTSIDE" # OUTside + OUTSIDEGREATER = "OUTSIDEGREATER" # OUTSIDEGreater + OVERLAY = "OVERLAY" # OVERlay + OVERLOAD = "OVERLOAD" + # OVERLOAD = "OVERLoad" + PACKET = "PACKET" + PAL = "PAL" + PARALLEL = "PARALLEL" # PARallel + PARITY = "PARITY" # PARity + PARITYERROR = "PARITYERROR" # PARItyerror + PASS = "PASS" + PATTERN = "PATTERN" # PATtern + PAYLOAD = "PAYLOAD" # PAYload + PBASE = "PBASE" # PBASe + PCIE = "PCIE" + PCIEXPRESS = "PCIEXPRESS" # PCIExpress + PCIEXPRESS2 = "PCIEXPRESS2" # PCIExpress2 + PCROSS = "PCROSS" # PCROss + PCTCROSS = "PCTCROSS" # PCTCROss + PCX = "PCX" + PDUTY = "PDUTY" # PDUty + PEAKDETECT = "PEAKDETECT" # PEAKdetect + PEAKHITS = "PEAKHITS" # PEAKHits + PENDING = "PENDING" + PERCENT = "PERCENT" # PERCent + PERIOD = "PERIOD" # PERIod + PHASE = "PHASE" # PHAse + PID = "PID" + PING = "PING" + PK2PK = "PK2PK" # PK2Pk + PKPKJITTER = "PKPKJITTER" # PKPKJitter + PKPKNOISE = "PKPKNOISE" # PKPKNoise + PLUSONE = "PLUSONE" # PLUSOne + PNG = "PNG" + POLARCOORD = "POLARCOORD" # POLARCoord + PORTRAIT = "PORTRAIT" # PORTRait + POSITIVE = "POSITIVE" # POSITIVe + PPS101010 = "PPS101010" + PPS121212 = "PPS121212" + PPS565 = "PPS565" + PPS666 = "PPS666" + PPS888 = "PPS888" + PRBS7 = "PRBS7" + PRBS9 = "PRBS9" + PRE = "PRE" + PREVIOUS = "PREVIOUS" # PREVious + PRODUCT = "PRODUCT" # PRODuct + PULSE = "PULSE" # PULse + PWIDTH = "PWIDTH" # PWIdth + QFACTOR = "QFACTOR" # QFACtor + QTAG = "QTAG" + RANDOM = "RANDOM" + RATE10000 = "RATE10000" + RATE12000 = "RATE12000" + RATE1250 = "RATE1250" + RATE14000 = "RATE14000" + RATE1500 = "RATE1500" + RATE2125 = "RATE2125" + RATE2500 = "RATE2500" + RATE3000 = "RATE3000" + RATE3125 = "RATE3125" + RATE4250 = "RATE4250" + RATE5000 = "RATE5000" + RATE6000 = "RATE6000" + RATE6250 = "RATE6250" + RATIO = "RATIO" # RATio + RAW10 = "RAW10" + RAW12 = "RAW12" + RAW14 = "RAW14" + RDMINUS = "RDMINUS" + RDPLUS = "RDPLUS" + READ = "READ" + RECOVERED = "RECOVERED" # RECOVered + RECTANGULAR = "RECTANGULAR" # RECTANGular + # RECTANGULAR = "RECTangular" + REFOUT = "REFOUT" + REJECT = "REJECT" # REJect + RELOAD = "RELOAD" # RELoad + REMOTE = "REMOTE" # REMote + REPEATSTART = "REPEATSTART" # REPEATstart + RESERVED = "RESERVED" + RESET = "RESET" + # RESET = "RESet" + RESETLIVE = "RESETLIVE" # RESETLive + RESTORE = "RESTORE" # RESTore + RESUME = "RESUME" + REV = "REV" + REVERSE = "REVERSE" # REVErse + RGB444 = "RGB444" + RGB555 = "RGB555" + RGB565 = "RGB565" + RGB666 = "RGB666" + RGB888 = "RGB888" + RI = "RI" + RIBINARY = "RIBINARY" # RIBinary + RIO_1G = "RIO_1G" + RIO_2G = "RIO_2G" + RIO_500M = "RIO_500M" + RIO_750M = "RIO_750M" + RIO_SERIAL_1G = "RIO_SERIAL_1G" + RIO_SERIAL_2_5G = "RIO_SERIAL_2_5G" + RIO_SERIAL_3G = "RIO_SERIAL_3G" + RISE = "RISE" + # RISE = "RISe" + RISING = "RISING" # RISing + RMS = "RMS" + RMSJITTER = "RMSJITTER" # RMSJitter + RMSNOISE = "RMSNOISE" # RMSNoise + RP = "RP" + RPBINARY = "RPBINARY" # RPBinary + RS232 = "RS232" + RT = "RT" + RUNSTOP = "RUNSTOP" # RUNSTop + RUNT = "RUNT" + RX = "RX" + S8B10B = "S8B10B" + SAMPLE = "SAMPLE" # SAMple + SAS6_0 = "SAS6_0" + SATA1_5 = "SATA1_5" + SATA3_0 = "SATA3_0" + SATA6_0 = "SATA6_0" + SAVE = "SAVE" # SAVe + SCREEN = "SCREEN" + SDASHED = "SDASHED" # SDASHed + SDS = "SDS" + SEARCHTOTRIGGER = "SEARCHTOTRIGGER" # SEARCHtotrigger + SECAM = "SECAM" + SECONDS = "SECONDS" # SECOnds + SELECTED = "SELECTED" + SEQUENCE = "SEQUENCE" # SEQuence + SEQUENTIAL = "SEQUENTIAL" + SERIAL = "SERIAL" + SETHOLD = "SETHOLD" # SETHold + SETLEVEL = "SETLEVEL" # SETLevel + SETUP = "SETUP" + SFPBINARY = "SFPBINARY" # SFPbinary + SHORT = "SHORT" + # SHORT = "SHORt" + SHUTDOWN = "SHUTDOWN" # SHUTDown + SIGMA1 = "SIGMA1" + SIGMA2 = "SIGMA2" + SIGMA3 = "SIGMA3" + SINGLEENDED = "SINGLEENDED" # SINGleended + SINX = "SINX" + SIXSIGMAJIT = "SIXSIGMAJIT" # SIXSigmajit + SKP = "SKP" + SLOWERTHAN = "SLOWERTHAN" # SLOWERthan + SMALL = "SMALL" # SMAll + SNAP = "SNAP" # SNAp + SNRATIO = "SNRATIO" # SNRatio + SOF = "SOF" + SOLID = "SOLID" + SOT = "SOT" + SOTERROR = "SOTERROR" # SOTError + SOTSYNC = "SOTSYNC" # SOTSync + SPACE = "SPACE" # SPace + SPECIALPACKET = "SPECIALPACKET" # SPECIALPacket + SPECTRAL = "SPECTRAL" # SPECTral + SPI = "SPI" + SPLIT = "SPLIT" + SRCDEPENDENT = "SRCDEPENDENT" # SRCDependent + SRCINDEPENDENT = "SRCINDEPENDENT" # SRCIndependent + SRIBINARY = "SRIBINARY" # SRIbinary + SRPBINARY = "SRPBINARY" # SRPbinary + SS = "SS" + SSPLIT = "SSPLIT" + STABLE = "STABLE" # STABle + STALL = "STALL" + STANDARD = "STANDARD" + # STANDARD = "STANdard" + # STANDARD = "STandard" + START = "START" + # START = "STARt" + STARTUP = "STARTUP" # STARTup + STATE = "STATE" + STATIC = "STATIC" + STATUS = "STATUS" + # STATUS = "STATus" + STAYSHIGH = "STAYSHIGH" # STAYSHigh + STAYSLOW = "STAYSLOW" # STAYSLow + STDDEV = "STDDEV" # STDdev + STOP = "STOP" + SUBSYS = "SUBSYS" + SUSPEND = "SUSPEND" + SYMBOL = "SYMBOL" + SYMBOLIC = "SYMBOLIC" # SYMBolic + SYNC = "SYNC" + TCPHEADER = "TCPHEADER" # TCPHeader + TEAR = "TEAR" + TEKEXPONENTIAL = "TEKEXPONENTIAL" # TEKEXPonential + TEMPERATURE = "TEMPERATURE" # TEMPErature + TEST = "TEST" + # TEST = "TESt" + TIFF = "TIFF" + TIME = "TIME" + # TIME = "TIMe" + TIMEOUT = "TIMEOUT" # TIMEOut + TOGGLE = "TOGGLE" + TOKENPACKET = "TOKENPACKET" # TOKENPacket + TP = "TP" + TPACK = "TPACK" + TPERDY = "TPERDY" + TPNOTIFY = "TPNOTIFY" # TPNotify + TPNRDY = "TPNRDY" + TPPING = "TPPING" # TPPing + TPRESPONSE = "TPRESPONSE" # TPResponse + TPSTALL = "TPSTALL" # TPSTall + TPSTATUS = "TPSTATUS" # TPStatus + TRACK = "TRACK" # TRACk + TRAINING = "TRAINING" # TRAining + TRANSITION = "TRANSITION" # TRANsition + TRIGGERTOSEARCH = "TRIGGERTOSEARCH" # TRIGgertosearch + TRILEVELCUSTOM = "TRILEVELCUSTOM" # TRILevelcustom + TRUE = "TRUE" # TRUe + TTL = "TTL" + TURNON = "TURNON" + TX = "TX" + ULTRALP = "ULTRALP" + UNDEFINED = "UNDEFINED" + UNDO = "UNDO" # UNDo + UNEQUAL = "UNEQUAL" # UNEQual + UNLOCK = "UNLOCK" + USB = "USB" + USER = "USER" # USEr + V1X = "V1X" + V2X = "V2X" + VALUEMEAN = "VALUEMEAN" # VALUEMean + VBARS = "VBARS" # VBArs + VERTICAL = "VERTICAL" + # VERTICAL = "VERTical" + VFIELDS = "VFIELDS" # VFields + VIDEO = "VIDEO" # VIDeo + VLINES = "VLINES" # VLines + VSROC192 = "VSROC192" + VSYNCEND = "VSYNCEND" # VSYNCEnd + VSYNCSTART = "VSYNCSTART" # VSYNCStart + WAIT = "WAIT" + WARNING = "WARNING" # WARNing + WAVEFORM = "WAVEFORM" # WAVEform + WAVEFORMS = "WAVEFORMS" + WFMDB = "WFMDB" + WIDERTHAN = "WIDERTHAN" # WIDERthan + WIDTH = "WIDTH" # WIDth + WINDOW = "WINDOW" # WINdow + WITHIN = "WITHIN" # WITHin + # WITHIN = "WIThin" + WRITE = "WRITE" + X = "X" + XFF = "XFF" + XLARGE = "XLARGE" + XSMALL = "XSMALL" # XSMAll + XY = "XY" + XYZ = "XYZ" + Y = "Y" + YCBCR12 = "YCBCR12" + YCBCR16 = "YCBCR16" + YCBCR20 = "YCBCR20" + YCBCR24 = "YCBCR24" + YES = "YES" + # YES = "Yes" + YT = "YT" + YUV420B10 = "YUV420B10" + YUV420B8 = "YUV420B8" + YUV420C10 = "YUV420C10" + YUV420C8 = "YUV420C8" + YUV420L8 = "YUV420L8" + YUV422B10 = "YUV422B10" + YUV422B8 = "YUV422B8" + ZERO = "ZERO" + + +# pylint: disable=too-many-instance-attributes,too-many-public-methods +class MSO5KCommands: + """The MSO5K commands. + + This provides access to all the commands for the MSO5K device. See the documentation of each + property for more usage information. + + Properties: + - ``.acquire``: The ``ACQuire`` command tree. + - ``.alias``: The ``ALIas`` command. + - ``.allev``: The ``ALLEv`` command. + - ``.allocate``: The ``ALLOcate`` command tree. + - ``.application``: The ``APPLication`` command tree. + - ``.autoset``: The ``AUTOSet`` command. + - ``.auxin``: The ``AUXIn`` command tree. + - ``.auxout``: The ``AUXout`` command. + - ``.bell``: The ``BELl`` command. + - ``.bus``: The ``BUS`` command tree. + - ``.busy``: The ``BUSY`` command. + - ``.cal``: The ``*CAL`` command. + - ``.calibrate``: The ``CALibrate`` command. + - ``.ch``: The ``CH`` command. + - ``.clear``: The ``CLEAR`` command. + - ``.cls``: The ``*CLS`` command. + - ``.cmdbatch``: The ``CMDBatch`` command. + - ``.counter``: The ``COUnter`` command tree. + - ``.cq``: The ``CQ`` command tree. + - ``.cursor``: The ``CURSor`` command. + - ``.curve``: The ``CURVe`` command. + - ``.curvenext``: The ``CURVENext`` command. + - ``.curvestream``: The ``CURVEStream`` command. + - ``.custom``: The ``CUSTOM`` command tree. + - ``.d``: The ``D`` command tree. + - ``.data``: The ``DATa`` command. + - ``.date``: The ``DATE`` command. + - ``.ddt``: The ``*DDT`` command. + - ``.delete``: The ``DELEte`` command tree. + - ``.dese``: The ``DESE`` command. + - ``.diag``: The ``DIAg`` command tree. + - ``.display``: The ``DISplay`` command. + - ``.email``: The ``EMail`` command. + - ``.errordetector``: The ``ERRORDetector`` command tree. + - ``.ese``: The ``*ESE`` command. + - ``.esr``: The ``*ESR`` command. + - ``.event``: The ``EVENT`` command. + - ``.evmsg``: The ``EVMsg`` command. + - ``.evqty``: The ``EVQty`` command. + - ``.export``: The ``EXPort`` command. + - ``.factory``: The ``FACtory`` command. + - ``.fastacq``: The ``FASTAcq`` command. + - ``.filesystem``: The ``FILESystem`` command. + - ``.gpibusb``: The ``GPIBUsb`` command tree. + - ``.hardcopy``: The ``HARDCopy`` command. + - ``.hdr``: The ``HDR`` command. + - ``.header``: The ``HEADer`` command. + - ``.histogram``: The ``HIStogram`` command. + - ``.horizontal``: The ``HORizontal`` command. + - ``.id``: The ``ID`` command. + - ``.idn``: The ``*IDN`` command. + - ``.limit``: The ``LIMit`` command. + - ``.linktraining``: The ``LINKTRaining`` command tree. + - ``.lock``: The ``LOCk`` command. + - ``.lrn``: The ``*LRN`` command. + - ``.mark``: The ``MARK`` command. + - ``.mask``: The ``MASK`` command. + - ``.math``: The ``MATH`` command. + - ``.matharbflt``: The ``MATHArbflt`` command tree. + - ``.mathvar``: The ``MATHVAR`` command. + - ``.mch``: The ``MCH`` command tree. + - ``.measurement``: The ``MEASUrement`` command. + - ``.multiscope``: The ``MULTiscope`` command tree. + - ``.newpass``: The ``NEWpass`` command. + - ``.opc``: The ``*OPC`` command. + - ``.opcextended``: The ``OPCEXtended`` command. + - ``.opt``: The ``*OPT`` command. + - ``.password``: The ``PASSWord`` command. + - ``.pcenable``: The ``PCENable`` command. + - ``.psc``: The ``*PSC`` command. + - ``.pud``: The ``*PUD`` command. + - ``.rcl``: The ``*RCL`` command. + - ``.recall``: The ``RECAll`` command tree. + - ``.ref``: The ``REF`` command tree. + - ``.rem``: The ``REM`` command. + - ``.rosc``: The ``ROSc`` command tree. + - ``.rst``: The ``*RST`` command. + - ``.sav``: The ``*SAV`` command. + - ``.save``: The ``SAVe`` command tree. + - ``.saveon``: The ``SAVEON`` command. + - ``.sds``: The ``*SDS`` command. + - ``.search``: The ``SEARCH`` command tree. + - ``.select``: The ``SELect`` command. + - ``.set``: The ``SET`` command. + - ``.setup``: The ``SETUp`` command tree. + - ``.sre``: The ``*SRE`` command. + - ``.stb``: The ``*STB`` command. + - ``.system``: The ``SYSTem`` command tree. + - ``.teklink``: The ``TEKLink`` command tree. + - ``.teksecure``: The ``TEKSecure`` command. + - ``.test``: The ``TEST`` command. + - ``.time``: The ``TIME`` command. + - ``.trg``: The ``*TRG`` command. + - ``.trig``: The ``TRIG`` command tree. + - ``.trigger``: The ``TRIGger`` command. + - ``.tst``: The ``*TST`` command. + - ``.unlock``: The ``UNLock`` command. + - ``.usbtmc``: The ``USBTMC`` command tree. + - ``.verbose``: The ``VERBose`` command. + - ``.visual``: The ``VISual`` command. + - ``.wai``: The ``*WAI`` command. + - ``.wavfrm``: The ``WAVFrm`` command. + - ``.wavfrmstream``: The ``WAVFRMStream`` command. + - ``.wfminpre``: The ``WFMInpre`` command. + - ``.wfmoutpre``: The ``WFMOutpre`` command. + - ``.wfmpre``: The ``WFMPre`` command tree. + - ``.zoom``: The ``ZOOm`` command. + """ + + # pylint: disable=too-many-statements + def __init__(self, device: Optional[PIDevice] = None) -> None: # noqa: PLR0915 + self._acquire = Acquire(device) + self._alias = Alias(device) + self._allev = Allev(device) + self._allocate = Allocate(device) + self._application = Application(device) + self._autoset = Autoset(device) + self._auxin = Auxin(device) + self._auxout = Auxout(device) + self._bell = Bell(device) + self._bus = Bus(device) + self._busy = Busy(device) + self._cal = Cal(device) + self._calibrate = Calibrate(device) + self._ch: Dict[int, Channel] = DefaultDictPassKeyToFactory( + lambda x: Channel(device, f"CH{x}") + ) + self._clear = Clear(device) + self._cls = Cls(device) + self._cmdbatch = Cmdbatch(device) + self._counter = Counter(device) + self._cq: Dict[int, CqItem] = DefaultDictPassKeyToFactory( + lambda x: CqItem(device, f"CQ{x}") + ) + self._cursor = Cursor(device) + self._curve = Curve(device) + self._curvenext = Curvenext(device) + self._curvestream = Curvestream(device) + self._custom = Custom(device) + self._d: Dict[int, DigitalBit] = DefaultDictPassKeyToFactory( + lambda x: DigitalBit(device, f"D{x}") + ) + self._data = Data(device) + self._date = Date(device) + self._ddt = Ddt(device) + self._delete = Delete(device) + self._dese = Dese(device) + self._diag = Diag(device) + self._display = Display(device) + self._email = Email(device) + self._errordetector = Errordetector(device) + self._ese = Ese(device) + self._esr = Esr(device) + self._event = Event(device) + self._evmsg = Evmsg(device) + self._evqty = Evqty(device) + self._export = Export(device) + self._factory = Factory(device) + self._fastacq = Fastacq(device) + self._filesystem = Filesystem(device) + self._gpibusb = Gpibusb(device) + self._hardcopy = Hardcopy(device) + self._hdr = Hdr(device) + self._header = Header(device) + self._histogram = Histogram(device) + self._horizontal = Horizontal(device) + self._id = Id(device) + self._idn = Idn(device) + self._limit = Limit(device) + self._linktraining = Linktraining(device) + self._lock = Lock(device) + self._lrn = Lrn(device) + self._mark = Mark(device) + self._mask = Mask(device) + self._math: Dict[int, MathItem] = DefaultDictPassKeyToFactory( + lambda x: MathItem(device, f"MATH{x}") + ) + self._matharbflt: Dict[int, MatharbfltItem] = DefaultDictPassKeyToFactory( + lambda x: MatharbfltItem(device, f"MATHArbflt{x}") + ) + self._mathvar = Mathvar(device) + self._mch: Dict[int, MchItem] = DefaultDictPassKeyToFactory( + lambda x: MchItem(device, f"MCH{x}") + ) + self._measurement = Measurement(device) + self._multiscope = Multiscope(device) + self._newpass = Newpass(device) + self._opc = Opc(device) + self._opcextended = Opcextended(device) + self._opt = Opt(device) + self._password = Password(device) + self._pcenable = Pcenable(device) + self._psc = Psc(device) + self._pud = Pud(device) + self._rcl = Rcl(device) + self._recall = Recall(device) + self._ref: Dict[int, RefItem] = DefaultDictPassKeyToFactory( + lambda x: RefItem(device, f"REF{x}") + ) + self._rem = Rem(device) + self._rosc = Rosc(device) + self._rst = Rst(device) + self._sav = Sav(device) + self._save = Save(device) + self._saveon = Saveon(device) + self._sds = Sds(device) + self._search = Search(device) + self._select = Select(device) + self._set = Set(device) + self._setup = Setup(device) + self._sre = Sre(device) + self._stb = Stb(device) + self._system = System(device) + self._teklink = Teklink(device) + self._teksecure = Teksecure(device) + self._test = Test(device) + self._time = Time(device) + self._trg = Trg(device) + self._trig = Trig(device) + self._trigger = Trigger(device) + self._tst = Tst(device) + self._unlock = Unlock(device) + self._usbtmc = Usbtmc(device) + self._verbose = Verbose(device) + self._visual = Visual(device) + self._wai = Wai(device) + self._wavfrm = Wavfrm(device) + self._wavfrmstream = Wavfrmstream(device) + self._wfminpre = Wfminpre(device) + self._wfmoutpre = Wfmoutpre(device) + self._wfmpre = Wfmpre(device) + self._zoom = Zoom(device) + + @property + def acquire(self) -> Acquire: + """Return the ``ACQuire`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ACQuire?`` query. + - Using the ``.verify(value)`` method will send the ``ACQuire?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.enhancedenob``: The ``ACQuire:ENHANCEDEnob`` command. + - ``.interpeightbit``: The ``ACQuire:INTERPEightbit`` command. + - ``.magnivu``: The ``ACQuire:MAGnivu`` command. + - ``.mode``: The ``ACQuire:MODe`` command. + - ``.numacq``: The ``ACQuire:NUMACq`` command. + - ``.numavg``: The ``ACQuire:NUMAVg`` command. + - ``.numenv``: The ``ACQuire:NUMEnv`` command. + - ``.numframesacquired``: The ``ACQuire:NUMFRAMESACQuired`` command. + - ``.numsamples``: The ``ACQuire:NUMSAMples`` command. + - ``.samplingmode``: The ``ACQuire:SAMPlingmode`` command. + - ``.state``: The ``ACQuire:STATE`` command. + - ``.stopafter``: The ``ACQuire:STOPAfter`` command. + - ``.syncsamples``: The ``ACQuire:SYNcsamples`` command. + """ + return self._acquire + + @property + def alias(self) -> Alias: + """Return the ``ALIas`` command. + + **Description:** + - This command sets or queries the state of alias functionality, and it is identical to + the ``ALIAS:STATE`` command. + + **Usage:** + - Using the ``.query()`` method will send the ``ALIas?`` query. + - Using the ``.verify(value)`` method will send the ``ALIas?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ALIas value`` command. + + **SCPI Syntax:** + + :: + + - ALIas {OFF|ON|} + - ALIas? + + **Info:** + - ``OFF`` turns Alias expansion off. + - ``ON`` turns Alias expansion on. When a defined alias is received, the specified + command sequence is substituted for the alias and executed. + - ```` = 0 disables Alias mode; any other value enables Alias mode. + + Sub-properties: + - ``.catalog``: The ``ALIas:CATalog`` command. + - ``.define``: The ``ALIas:DEFine`` command. + - ``.delete``: The ``ALIas:DELEte`` command. + - ``.state``: The ``ALIas:STATE`` command. + """ + return self._alias + + @property + def allev(self) -> Allev: + """Return the ``ALLEv`` command. + + **Description:** + - This query-only command prompts the instrument to return all events and their messages + (delimited by commas), and removes the returned events from the Event Queue. Use the + ``*ESR?`` query to enable the events to be returned. This command is similar to + repeatedly sending ``*EVMsg?`` queries to the instrument. + + **Usage:** + - Using the ``.query()`` method will send the ``ALLEv?`` query. + - Using the ``.verify(value)`` method will send the ``ALLEv?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ALLEv? + """ + return self._allev + + @property + def allocate(self) -> Allocate: + """Return the ``ALLOcate`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ALLOcate?`` query. + - Using the ``.verify(value)`` method will send the ``ALLOcate?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.waveform``: The ``ALLOcate:WAVEform`` command tree. + """ + return self._allocate + + @property + def application(self) -> Application: + """Return the ``APPLication`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``APPLication?`` query. + - Using the ``.verify(value)`` method will send the ``APPLication?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.activate``: The ``APPLication:ACTivate`` command. + - ``.scopeapp``: The ``APPLication:SCOPEAPP`` command tree. + """ + return self._application + + @property + def autoset(self) -> Autoset: + """Return the ``AUTOSet`` command. + + **Description:** + - This command (no query format) sets the vertical, horizontal, and trigger controls of + the instrument to automatically acquire and display the selected waveform. (To autoset + a video waveform, the video trigger must be set to video standard, not custom. Video + arguments require video hardware.) This is equivalent to pressing the front panel + AUTOSET button. For a detailed description of autoset functionality, see Autoset in + the index of the online help for your instrument. + + **Usage:** + - Using the ``.write(value)`` method will send the ``AUTOSet value`` command. + + **SCPI Syntax:** + + :: + + - AUTOSet {EXECute|UNDo|VFields|VIDeo|VLines} + + **Info:** + - ``EXECute`` runs the autoset routine; this is equivalent to pressing the front panel + AUTOSET button. If the display is set to a PAL, MV, or IRE graticule, this argument + forces the graticule display to full mode (frame, grid, and cross hair). + - ``UNDo`` returns the instrument to the setting prior to executing an autoset. + - ``VFields`` autosets the displayed waveform. + - ``VIDeo`` autosets the displayed waveform. + - ``VLines`` autosets the displayed waveform. + + Sub-properties: + - ``.overlay``: The ``AUTOSet:OVErlay`` command. + - ``.percent``: The ``AUTOSet:PERcent`` command. + """ + return self._autoset + + @property + def auxin(self) -> Auxin: + """Return the ``AUXIn`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``AUXIn?`` query. + - Using the ``.verify(value)`` method will send the ``AUXIn?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.bandwidth``: The ``AUXIn:BANdwidth`` command. + - ``.coupling``: The ``AUXIn:COUPling`` command. + - ``.offset``: The ``AUXIn:OFFSet`` command. + - ``.probefunc``: The ``AUXIn:PROBEFunc`` command tree. + - ``.probe``: The ``AUXIn:PRObe`` command tree. + - ``.vterm``: The ``AUXIn:VTERm`` command tree. + """ + return self._auxin + + @property + def auxout(self) -> Auxout: + """Return the ``AUXout`` command. + + **Description:** + - This query-only command returns the auxiliary output setup and is equivalent to + selecting External Signals. From the Utilities menu, and then viewing the current + settings for the AUX OUT Configuration. + + **Usage:** + - Using the ``.query()`` method will send the ``AUXout?`` query. + - Using the ``.verify(value)`` method will send the ``AUXout?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - AUXout? + + Sub-properties: + - ``.edge``: The ``AUXout:EDGE`` command. + - ``.source``: The ``AUXout:SOUrce`` command. + """ + return self._auxout + + @property + def bell(self) -> Bell: + """Return the ``BELl`` command. + + **Description:** + - This command was previously used to beep an audio indicator and is provided for + backward compatibility. + + **Usage:** + - Using the ``.write()`` method will send the ``BELl`` command. + + **SCPI Syntax:** + + :: + + - BELl + """ + return self._bell + + @property + def bus(self) -> Bus: + """Return the ``BUS`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``BUS?`` query. + - Using the ``.verify(value)`` method will send the ``BUS?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.b1``: The ``BUS:B1`` command tree. + - ``.b``: The ``BUS:B`` command tree. + - ``.ch``: The ``BUS:CH`` command tree. + - ``.math``: The ``BUS:MATH`` command tree. + - ``.ref``: The ``BUS:REF`` command tree. + """ + return self._bus + + @property + def busy(self) -> Busy: + """Return the ``BUSY`` command. + + **Description:** + - This query-only command returns the status of the instrument. This command allows you + to synchronize the operation of the instrument with your application program. + + **Usage:** + - Using the ``.query()`` method will send the ``BUSY?`` query. + - Using the ``.verify(value)`` method will send the ``BUSY?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - BUSY? + """ + return self._busy + + @property + def cal(self) -> Cal: + """Return the ``*CAL`` command. + + **Description:** + - This query-only command starts signal path calibration (SPC) and returns the status + upon completion. + + **Usage:** + - Using the ``.query()`` method will send the ``*CAL?`` query. + - Using the ``.verify(value)`` method will send the ``*CAL?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *CAL? + """ + return self._cal + + @property + def calibrate(self) -> Calibrate: + """Return the ``CALibrate`` command. + + **Description:** + - This query returns the status of signal path calibration. + + **Usage:** + - Using the ``.query()`` method will send the ``CALibrate?`` query. + - Using the ``.verify(value)`` method will send the ``CALibrate?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CALibrate? + + Sub-properties: + - ``.calprobe``: The ``CALibrate:CALProbe`` command tree. + - ``.internal``: The ``CALibrate:INTERNal`` command. + - ``.probestate``: The ``CALibrate:PRObestate`` command tree. + - ``.results``: The ``CALibrate:RESults`` command. + """ + return self._calibrate + + @property + def ch(self) -> Dict[int, Channel]: + """Return the ``CH`` command. + + **Description:** + - This query-only command returns the vertical parameters for the specified channel. The + channel is specified by x. + + **Usage:** + - Using the ``.query()`` method will send the ``CH?`` query. + - Using the ``.verify(value)`` method will send the ``CH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CH? + + Sub-properties: + - ``.atiactive``: The ``CH:ATIACTive`` command. + - ``.available``: The ``CH:AVAILable`` command. + - ``.bandwidth``: The ``CH:BANdwidth`` command. + - ``.coupling``: The ``CH:COUPling`` command. + - ``.deskew``: The ``CH:DESKew`` command. + - ``.fastacqcapable``: The ``CH:FASTAcqcapable`` command. + - ``.fastframecapable``: The ``CH:FASTFRamecapable`` command. + - ``.icapture``: The ``CH:ICAPture`` command tree. + - ``.invert``: The ``CH:INVert`` command. + - ``.label``: The ``CH:LABel`` command tree. + - ``.offset``: The ``CH:OFFSet`` command. + - ``.opti``: The ``CH:OPTI`` command tree. + - ``.optical``: The ``CH:OPTIcal`` command tree. + - ``.position``: The ``CH:POSition`` command. + - ``.probecontrol``: The ``CH:PROBECOntrol`` command. + - ``.probecal``: The ``CH:PROBECal`` command. + - ``.probefunc``: The ``CH:PROBEFunc`` command tree. + - ``.probe``: The ``CH:PRObe`` command. + - ``.scale``: The ``CH:SCAle`` command. + - ``.termination``: The ``CH:TERmination`` command. + - ``.threshold``: The ``CH:THRESHold`` command. + - ``.vterm``: The ``CH:VTERm`` command tree. + """ + return self._ch + + @property + def clear(self) -> Clear: + """Return the ``CLEAR`` command. + + **Description:** + - This command clears acquisitions, measurements, and waveforms. + + **Usage:** + - Using the ``.write(value)`` method will send the ``CLEAR value`` command. + + **SCPI Syntax:** + + :: + + - CLEAR {ALL} + """ + return self._clear + + @property + def cls(self) -> Cls: + """Return the ``*CLS`` command. + + **Description:** + - This command (no query form) clears the following: Event Queue Standard Event Status + Register Status Byte Register (except the MAV bit) If the ``*CLS`` command immediately + follows an , the Output Queue and MAV bit (Status Byte Register bit 4) are also + cleared. MAV indicates that information is in the output queue. The device clear (DCL) + control message will clear the output queue and thus MAV. ``*CLS`` does not clear the + output queue or MAV. ``*CLS`` can suppress a Service Request that is to be generated + by an ``*OPC``. This will happen if a single sequence acquisition operation is still + being processed when the ``*CLS`` command is executed. + + **Usage:** + - Using the ``.write()`` method will send the ``*CLS`` command. + + **SCPI Syntax:** + + :: + + - *CLS + """ + return self._cls + + @property + def cmdbatch(self) -> Cmdbatch: + """Return the ``CMDBatch`` command. + + **Description:** + - This command sets or queries the state of command batching. By batching commands, + database transactions can be optimized, increasing command throughput. Also, batching + allows for ALL commands in an individual batch to be order independent and accomplish + the same result as if the commands were coupled. The Batch state is persistent and + will be saved across power cycles, but will not be saved and recalled as part of a + setup. In a setup scenario, the factory initial value is enabled. + + **Usage:** + - Using the ``.query()`` method will send the ``CMDBatch?`` query. + - Using the ``.verify(value)`` method will send the ``CMDBatch?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CMDBatch value`` command. + + **SCPI Syntax:** + + :: + + - CMDBatch {OFF|ON} + - CMDBatch? + + **Info:** + - ```` = 0 turns command batching off; any other value turns command batching on. + - ``OFF`` turns command batching off. + - ``ON`` turns command batching on. + """ + return self._cmdbatch + + @property + def counter(self) -> Counter: + """Return the ``COUnter`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``COUnter?`` query. + - Using the ``.verify(value)`` method will send the ``COUnter?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.results``: The ``COUnter:RESULTs`` command. + """ + return self._counter + + @property + def cq(self) -> Dict[int, CqItem]: + """Return the ``CQ`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``CQ?`` query. + - Using the ``.verify(value)`` method will send the ``CQ?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.threshold``: The ``CQ:THRESHold`` command. + """ + return self._cq + + @property + def cursor(self) -> Cursor: + """Return the ``CURSor`` command. + + **Description:** + - Returns all of the current cursor settings. + + **Usage:** + - Using the ``.query()`` method will send the ``CURSor?`` query. + - Using the ``.verify(value)`` method will send the ``CURSor?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CURSor? + + Sub-properties: + - ``.function``: The ``CURSor:FUNCtion`` command. + - ``.hbars``: The ``CURSor:HBArs`` command. + - ``.linestyle``: The ``CURSor:LINESTyle`` command. + - ``.mode``: The ``CURSor:MODe`` command. + - ``.screen``: The ``CURSor:SCREEN`` command tree. + - ``.source1``: The ``CURSor:SOUrce1`` command. + - ``.state``: The ``CURSor:STATE`` command. + - ``.vbars``: The ``CURSor:VBArs`` command. + - ``.waveform``: The ``CURSor:WAVEform`` command. + - ``.xy``: The ``CURSor:XY`` command. + """ + return self._cursor + + @property + def curve(self) -> Curve: + """Return the ``CURVe`` command. + + **Description:** + - The ``CURVe`` command transfers the waveform data points the oscilloscope's internal + reference memory location (REF1-4), which is specified by the to ``DATa:DESTination`` + command. The ``CURVe?`` query transfers data the oscilloscope; the source waveform is + specified by the from ``DATa:SOUrce`` command. The first and last data points are + specified by the ``DATa:STARt`` and ``DATa:STOP`` commands. Associated with each + waveform transferred using the ``CURVe`` command or query is a waveform preamble that + provides the data format, scale and associated information needed to interpret the + waveform data points. The preamble information for waveforms sent the oscilloscope is + specified using the to WFMInpre commands. The preamble information for waveforms + transferred the oscilloscope is specified or queried using the from WFMOutpre + commands. If the waveform is not displayed, the query form generates an error. The + ``CURVe`` command and ``CURVe?`` query transfer waveform data in ASCII or binary + format. ASCII data is sent as a comma-separated list of decimal values. Binary data is + sent with the IEEE488.2 binary block header immediately followed by the binary data. + The IEEE488.2 binary block header is defined as follows: #N where: N is a + single decimal or hexadecimal digit indicating the number of digits to follow. + are the decimal digits representing the number of bytes in the data that + immediately follows this binary block header. The Waveform Transfer command group text + contains more comprehensive information. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVe?`` query. + - Using the ``.verify(value)`` method will send the ``CURVe?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CURVe value`` command. + + **SCPI Syntax:** + + :: + + - CURVe {|} + - CURVe? + + **Info:** + - ```` is the waveform data in binary format. The waveform is formatted as + follows. + - ```` is the waveform data in ASCII format. The format for ASCII data is + [,..], where each represents a data point. For RF frequency domain + waveforms, the data is transmitted as 4-byte floating point values (NR2 or NR3). + """ + return self._curve + + @property + def curvenext(self) -> Curvenext: + """Return the ``CURVENext`` command. + + **Description:** + - This query-only command returns unique waveform data from the instrument. This query + performs just like CURVE?, except multiple uses guarantee that the waveform returned + is always a new acquisition since the previous CURVENEXT. Note that if the instrument + is acquiring waveform records at a slow rate (high resolution mode), you must + configure the controller for long timeout thresholds. Data will not be transferred + until a new waveform is acquired since the previous ``:CURVENext?`` response. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVENext?`` query. + - Using the ``.verify(value)`` method will send the ``CURVENext?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - CURVENext? + """ + return self._curvenext + + @property + def curvestream(self) -> Curvestream: + """Return the ``CURVEStream`` command. + + **Description:** + - This query continuously transfers waveform data from the instrument as it is acquired. + This command puts the instrument into a talk-only mode, allowing the controller to + receive waveform records as fast as (and as soon as) they are acquired. Use the + ``DATA:SOURCE`` command to specify the waveform sources. The command does the same + thing as the CURVE command. Control of the instrument through the user interface or + other external client is not possible while in streaming mode. The GPIB controller + must take the instrument out of this continuous talking mode to terminate the query + and allow other input sources to resume communication with the instrument. The + following options are available to transition out of streaming curve mode: send a + device clear over the bus or send another query to the instrument (a MEPE Query + Interrupted error will occur, but the instrument will be placed back into its normal + talk/listen mode). Turning the waveform screen display mode off + (``:DISPLAY:WAVEFORM OFF``) will increase waveform throughput during streaming mode. + While in streaming mode, two extreme conditions can occur. If the waveform records are + being acquired slowly (high resolution), configure the controller for long time-out + thresholds, as the data is not sent out until each complete record is acquired. If the + waveform records are being acquired rapidly (low resolution), and the controller is + not reading the data off the bus fast enough, the trigger rate is slowed to allow each + waveform to be sent sequentially. + + **Usage:** + - Using the ``.query()`` method will send the ``CURVEStream?`` query. + - Using the ``.verify(value)`` method will send the ``CURVEStream?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``CURVEStream value`` command. + + **SCPI Syntax:** + + :: + + - CURVEStream {|} + - CURVEStream? + """ + return self._curvestream + + @property + def custom(self) -> Custom: + """Return the ``CUSTOM`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``CUSTOM?`` query. + - Using the ``.verify(value)`` method will send the ``CUSTOM?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.gate``: The ``CUSTOM:GATE`` command tree. + - ``.select``: The ``CUSTOM:SELECT`` command tree. + """ + return self._custom + + @property + def d(self) -> Dict[int, DigitalBit]: + """Return the ``D`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``D?`` query. + - Using the ``.verify(value)`` method will send the ``D?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.label``: The ``D:LABEL`` command. + - ``.position``: The ``D:POSition`` command. + - ``.probe``: The ``D:PROBE`` command tree. + - ``.threshold``: The ``D:THRESHold`` command. + """ + return self._d + + @property + def data(self) -> Data: + """Return the ``DATa`` command. + + **Description:** + - This command sets or queries the format and location of the waveform data that is + transferred with the CURVE command. + + **Usage:** + - Using the ``.query()`` method will send the ``DATa?`` query. + - Using the ``.verify(value)`` method will send the ``DATa?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DATa value`` command. + + **SCPI Syntax:** + + :: + + - DATa {INIT|SNAp} + - DATa? + + **Info:** + - ``INIT`` initializes the waveform data parameters to their factory defaults except for + ``DATa:STOP``, which isset to the current acquisition record length. + - ``SNAp`` Sets ``DATa:STARt`` and ``DATa:STOP`` to match the current waveform cursor + positions of WAVEVIEW1 CURSOR1 if these waveform cursors are currently on. If these + waveform cursors are not on when the ``DATa SNAp`` command is sent, it is silently + ignored and ``DATa:STARt`` and ``:STOP`` remain unchanged. + + Sub-properties: + - ``.destination``: The ``DATa:DESTination`` command. + - ``.encdg``: The ``DATa:ENCdg`` command. + - ``.framestart``: The ``DATa:FRAMESTARt`` command. + - ``.framestop``: The ``DATa:FRAMESTOP`` command. + - ``.source``: The ``DATa:SOUrce`` command. + - ``.start``: The ``DATa:STARt`` command. + - ``.stop``: The ``DATa:STOP`` command. + - ``.syncsources``: The ``DATa:SYNCSOUrces`` command. + """ + return self._data + + @property + def date(self) -> Date: + """Return the ``DATE`` command. + + **Description:** + - This command specifies the date the oscilloscope displays. + + **Usage:** + - Using the ``.query()`` method will send the ``DATE?`` query. + - Using the ``.verify(value)`` method will send the ``DATE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DATE value`` command. + + **SCPI Syntax:** + + :: + + - DATE + - DATE? + + **Info:** + - ```` is a date in the form 'yyyy-mm-dd' where yyyy refers to a four-digit + year number, mm refers to a two-digit month number from 01 to 12, and dd refers to a + two-digit day number in the month. + """ + return self._date + + @property + def ddt(self) -> Ddt: + """Return the ``*DDT`` command. + + **Description:** + - This command allows you to specify a command or a list of commands that are executed + when the instrument receives a TRG command. Define Device Trigger ( ``*DDT`` ) is a + special alias that the ``*TRG`` command uses. + + **Usage:** + - Using the ``.query()`` method will send the ``*DDT?`` query. + - Using the ``.verify(value)`` method will send the ``*DDT?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*DDT value`` command. + + **SCPI Syntax:** + + :: + + - *DDT {|} + - *DDT? + + **Info:** + - ```` is a complete sequence of program messages. The messages can contain only + valid commands that must be separated by semicolons and must follow all rules for + concatenating commands. The sequence must be less than or equal to 80 characters. The + format of this argument is always returned as a query. + - ```` is a complete sequence of program messages. The messages can contain + only valid commands that must be separated by semicolons and must follow all rules for + concatenating commands. The sequence must be less than or equal to 80 characters. + """ + return self._ddt + + @property + def delete(self) -> Delete: + """Return the ``DELEte`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``DELEte?`` query. + - Using the ``.verify(value)`` method will send the ``DELEte?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.setup``: The ``DELEte:SETUp`` command. + - ``.waveform``: The ``DELEte:WAVEform`` command. + """ + return self._delete + + @property + def dese(self) -> Dese: + """Return the ``DESE`` command. + + **Description:** + - This command sets and queries the bits in the Device Event Status Enable Register + (DESER). The DESER is the mask that determines whether events are reported to the + Standard Event Status Register (SESR), and entered into the Event Queue. For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``DESE?`` query. + - Using the ``.verify(value)`` method will send the ``DESE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``DESE value`` command. + + **SCPI Syntax:** + + :: + + - DESE + - DESE? + + **Info:** + - ```` The binary bits of the DESER are set according to this value, which ranges + from 1 through 255. For example, ``DESE 209`` sets the DESER to the binary value + 11010001 (that is, the most significant bit in the register is set to 1, the next most + significant bit to 1, the next bit to 0, etc.). + """ + return self._dese + + @property + def diag(self) -> Diag: + """Return the ``DIAg`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``DIAg?`` query. + - Using the ``.verify(value)`` method will send the ``DIAg?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.control``: The ``DIAg:CONTROL`` command tree. + - ``.execute``: The ``DIAg:EXECUTE`` command. + - ``.failures``: The ``DIAg:FAILURES`` command tree. + - ``.item``: The ``DIAg:ITEM`` command. + - ``.level``: The ``DIAg:LEVEL`` command. + - ``.loops``: The ``DIAg:LOOPS`` command. + - ``.name``: The ``DIAg:NAMe`` command. + - ``.numitems``: The ``DIAg:NUMITEMS`` command. + - ``.results``: The ``DIAg:RESults`` command. + - ``.select``: The ``DIAg:SELect`` command tree. + - ``.state``: The ``DIAg:STATE`` command. + - ``.stop``: The ``DIAg:STOP`` command. + """ + return self._diag + + @property + def display(self) -> Display: + """Return the ``DISplay`` command. + + **Description:** + - This query-only command returns the current Display settings. + + **Usage:** + - Using the ``.query()`` method will send the ``DISplay?`` query. + - Using the ``.verify(value)`` method will send the ``DISplay?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - DISplay? + + Sub-properties: + - ``.clock``: The ``DISplay:CLOCk`` command. + - ``.color``: The ``DISplay:COLOr`` command. + - ``.data``: The ``DISplay:DATa`` command. + - ``.deskew``: The ``DISplay:DESKew`` command. + - ``.digital``: The ``DISplay:DIGital`` command tree. + - ``.dpojetplot``: The ``DISplay:DPOJETPlot`` command. + - ``.filter``: The ``DISplay:FILTer`` command. + - ``.format``: The ``DISplay:FORMat`` command. + - ``.graticule``: The ``DISplay:GRAticule`` command. + - ``.intensity``: The ``DISplay:INTENSITy`` command. + - ``.persistence``: The ``DISplay:PERSistence`` command. + - ``.screentext``: The ``DISplay:SCREENTExt`` command. + - ``.showremote``: The ``DISplay:SHOWREmote`` command. + - ``.style``: The ``DISplay:STYle`` command. + - ``.trigbar``: The ``DISplay:TRIGBar`` command. + - ``.trigt``: The ``DISplay:TRIGT`` command. + - ``.varpersist``: The ``DISplay:VARpersist`` command. + - ``.waveform``: The ``DISplay:WAVEform`` command. + """ + return self._display + + @property + def email(self) -> Email: + """Return the ``EMail`` command. + + **Description:** + - This command (no query form) sends a test e-mail message or sets the current e-mail + sent count to zero. + + **Usage:** + - Using the ``.write(value)`` method will send the ``EMail value`` command. + + **SCPI Syntax:** + + :: + + - EMail {TESt|RESET} + + **Info:** + - ``TESt`` argument sends a test e-mail message. + - ``RESET`` argument sets the e-mail sent count to zero. + + Sub-properties: + - ``.attempts``: The ``EMail:ATTempts`` command. + - ``.authlogin``: The ``EMail:AUTHLogin`` command. + - ``.authpassword``: The ``EMail:AUTHPassword`` command. + - ``.count``: The ``EMail:COUNt`` command. + - ``.from``: The ``EMail:FROm`` command. + - ``.hostwanted``: The ``EMail:HOSTwanted`` command. + - ``.image``: The ``EMail:IMAGe`` command. + - ``.limit``: The ``EMail:LIMit`` command. + - ``.mask``: The ``EMail:MASK`` command. + - ``.maxsize``: The ``EMail:MAXSize`` command. + - ``.measurement``: The ``EMail:MEASUrement`` command. + - ``.numemails``: The ``EMail:NUMEMails`` command. + - ``.smtpport``: The ``EMail:SMTPPort`` command. + - ``.smtpserver``: The ``EMail:SMTPServer`` command. + - ``.status``: The ``EMail:STATUS`` command. + - ``.timeout``: The ``EMail:TIMEOut`` command. + - ``.to``: The ``EMail:TO`` command. + - ``.trigger``: The ``EMail:TRIGger`` command. + - ``.waveform``: The ``EMail:WAVEform`` command. + """ + return self._email + + @property + def errordetector(self) -> Errordetector: + """Return the ``ERRORDetector`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ERRORDetector?`` query. + - Using the ``.verify(value)`` method will send the ``ERRORDetector?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.alert``: The ``ERRORDetector:ALERT`` command. + - ``.aligncharacter``: The ``ERRORDetector:ALIGNCHARacter`` command. + - ``.alignprimitive``: The ``ERRORDetector:ALIGNPRIMitive`` command. + - ``.bit``: The ``ERRORDetector:BIT`` command tree. + - ``.bitrate``: The ``ERRORDetector:BITRate`` command. + - ``.channel``: The ``ERRORDetector:CHANnel`` command. + - ``.duration``: The ``ERRORDetector:DURATION`` command tree. + - ``.errorlimit``: The ``ERRORDetector:ERRORLIMIT`` command. + - ``.file``: The ``ERRORDetector:FILE`` command tree. + - ``.fontsize``: The ``ERRORDetector:FONTSIze`` command. + - ``.frame``: The ``ERRORDetector:FRAme`` command. + - ``.maxaligns``: The ``ERRORDetector:MAXALIGNS`` command. + - ``.patternname``: The ``ERRORDetector:PATTERNNAME`` command. + - ``.preset``: The ``ERRORDetector:PREset`` command. + - ``.saveimage``: The ``ERRORDetector:SAVEIMAGE`` command. + - ``.savewfm``: The ``ERRORDetector:SAVEWFM`` command. + - ``.scrambled``: The ``ERRORDetector:SCRAMBLED`` command. + - ``.sendemail``: The ``ERRORDetector:SENDEMAIL`` command. + - ``.signaltype``: The ``ERRORDetector:SIGnaltype`` command. + - ``.ssc``: The ``ERRORDetector:SSC`` command. + - ``.standard``: The ``ERRORDetector:STANdard`` command. + - ``.state``: The ``ERRORDetector:STATE`` command. + - ``.status``: The ``ERRORDetector:STATus`` command. + - ``.stopwhen``: The ``ERRORDetector:STOPWHEN`` command. + - ``.symbol``: The ``ERRORDetector:SYMBOL`` command. + - ``.timeformat``: The ``ERRORDetector:TIMEformat`` command. + - ``.type``: The ``ERRORDetector:TYPe`` command. + """ + return self._errordetector + + @property + def ese(self) -> Ese: + """Return the ``*ESE`` command. + + **Description:** + - This command sets and queries the bits in the Event Status Enable Register (ESER). The + ESER prevents events from being reported to the Status Byte Register (STB). For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*ESE?`` query. + - Using the ``.verify(value)`` method will send the ``*ESE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*ESE value`` command. + + **SCPI Syntax:** + + :: + + - *ESE + - *ESE? + + **Info:** + - ```` specifies the binary bits of the ESER according to this value, which ranges + from 0 through 255. + """ + return self._ese + + @property + def esr(self) -> Esr: + """Return the ``*ESR`` command. + + **Description:** + - This query-only command returns the contents of the Standard Event Status Register + (SESR). ``*ESR?`` also clears the SESR (since reading the SESR clears it). For a more + detailed discussion of the use of these registers, see Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*ESR?`` query. + - Using the ``.verify(value)`` method will send the ``*ESR?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *ESR? + """ + return self._esr + + @property + def event(self) -> Event: + """Return the ``EVENT`` command. + + **Description:** + - This query-only command returns an event code from the Event Queue that provides + information about the results of the last ESR read. ``EVENT?`` also removes the + returned value from the Event Queue. + + **Usage:** + - Using the ``.query()`` method will send the ``EVENT?`` query. + - Using the ``.verify(value)`` method will send the ``EVENT?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVENT? + """ + return self._event + + @property + def evmsg(self) -> Evmsg: + """Return the ``EVMsg`` command. + + **Description:** + - This query-only command removes a single event code from the Event Queue that is + associated with the results of the last ESR read and returns the event code with an + explanatory message. For more information, see Event Handling. + + **Usage:** + - Using the ``.query()`` method will send the ``EVMsg?`` query. + - Using the ``.verify(value)`` method will send the ``EVMsg?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVMsg? + """ + return self._evmsg + + @property + def evqty(self) -> Evqty: + """Return the ``EVQty`` command. + + **Description:** + - This query-only command returns the number of events that are enabled in the queue. + This is useful when using the ALLEV query, since it lets you know exactly how many + events will be returned. + + **Usage:** + - Using the ``.query()`` method will send the ``EVQty?`` query. + - Using the ``.verify(value)`` method will send the ``EVQty?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - EVQty? + """ + return self._evqty + + @property + def export(self) -> Export: + """Return the ``EXPort`` command. + + **Description:** + - This command sends a copy of the waveform to the file path specified by + ``EXPORT:FILENAME``. The ``EXPort`` query returns image format and file information. + + **Usage:** + - Using the ``.query()`` method will send the ``EXPort?`` query. + - Using the ``.verify(value)`` method will send the ``EXPort?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``EXPort value`` command. + + **SCPI Syntax:** + + :: + + - EXPort STARt + - EXPort? + + **Info:** + - ``STARt`` initiates the export. + + Sub-properties: + - ``.filename``: The ``EXPort:FILEName`` command. + - ``.format``: The ``EXPort:FORMat`` command. + - ``.palette``: The ``EXPort:PALEtte`` command. + - ``.readouts``: The ``EXPort:READOuts`` command. + - ``.view``: The ``EXPort:VIEW`` command. + """ + return self._export + + @property + def factory(self) -> Factory: + """Return the ``FACtory`` command. + + **Description:** + - This command (no query form) resets the instrument to its factory default settings. + This command is equivalent to pressing the DEFAULT SETUP button located on the + instrument front panel or selecting Default Setup from the File menu. This command + Performs the following in addition to what is done for the ``*RST`` command: Clears + any pending OPC operations. Resets the following IEEE488.2 registers: ``*ESE 0`` + (Event Status Enable Register) ``*SRE 0`` (Service Request Enable Register) DESE 255 + (Device Event Status Enable Register) ``*PSC 1`` (Power-on Status Clear Flag) Deletes + all defined aliases. Enables command headers (``:HEADer 1``). + + **Usage:** + - Using the ``.write()`` method will send the ``FACtory`` command. + + **SCPI Syntax:** + + :: + + - FACtory + """ + return self._factory + + @property + def fastacq(self) -> Fastacq: + """Return the ``FASTAcq`` command. + + **Description:** + - This query-only command returns the state of Fast Acquisitions. This command is + equivalent to pressing the FASTACQ button on the front panel. + + **Usage:** + - Using the ``.query()`` method will send the ``FASTAcq?`` query. + - Using the ``.verify(value)`` method will send the ``FASTAcq?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - FASTAcq? + + Sub-properties: + - ``.hiacqrate``: The ``FASTAcq:HIACQRATE`` command. + - ``.state``: The ``FASTAcq:STATE`` command. + """ + return self._fastacq + + @property + def filesystem(self) -> Filesystem: + """Return the ``FILESystem`` command. + + **Description:** + - This query-only command returns the directory listing of the current working + directory. This query is the same as the ``FILESystem:DIR?`` query. + + **Usage:** + - Using the ``.query()`` method will send the ``FILESystem?`` query. + - Using the ``.verify(value)`` method will send the ``FILESystem?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - FILESystem? + + Sub-properties: + - ``.copy``: The ``FILESystem:COPy`` command. + - ``.cwd``: The ``FILESystem:CWD`` command. + - ``.delete``: The ``FILESystem:DELEte`` command. + - ``.dir``: The ``FILESystem:DIR`` command. + - ``.mkdir``: The ``FILESystem:MKDir`` command. + - ``.print``: The ``FILESystem:PRInt`` command. + - ``.readfile``: The ``FILESystem:READFile`` command. + - ``.rename``: The ``FILESystem:REName`` command. + - ``.rmdir``: The ``FILESystem:RMDir`` command. + - ``.writefile``: The ``FILESystem:WRITEFile`` command. + """ + return self._filesystem + + @property + def gpibusb(self) -> Gpibusb: + """Return the ``GPIBUsb`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``GPIBUsb?`` query. + - Using the ``.verify(value)`` method will send the ``GPIBUsb?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.address``: The ``GPIBUsb:ADDress`` command. + - ``.hwversion``: The ``GPIBUsb:HWVersion`` command. + - ``.id``: The ``GPIBUsb:ID`` command. + """ + return self._gpibusb + + @property + def hardcopy(self) -> Hardcopy: + """Return the ``HARDCopy`` command. + + **Description:** + - This command sends a copy of the screen display to the port specified by + ``HARDCopy:PORT``. This command is equivalent to pressing the PRINT button on the + front panel. When printing to a file, the file format can be BMP, JPG, PNG, PCX or + TIFF. The format of the saved screen capture is set by the ``EXPORT:FORMAT`` command. + The file format setting is persistent, and will not be affected by a default setup or + ``*RST`` command sent to the instrument. The ``HARDCopy`` query returns the port and + file path. + + **Usage:** + - Using the ``.query()`` method will send the ``HARDCopy?`` query. + - Using the ``.verify(value)`` method will send the ``HARDCopy?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HARDCopy value`` command. + + **SCPI Syntax:** + + :: + + - HARDCopy STARt + - HARDCopy? + + **Info:** + - ``STARt`` initiates a screen copy to a file or the default system printer, as + specified by the ``:HARDCopy:PORT`` selection. The default system printer is set + within the Windows operating system. If you need information about how to set the + default system printer, refer to Microsoft Windows online help. + + Sub-properties: + - ``.filename``: The ``HARDCopy:FILEName`` command. + - ``.layout``: The ``HARDCopy:LAYout`` command. + - ``.palette``: The ``HARDCopy:PALEtte`` command. + - ``.port``: The ``HARDCopy:PORT`` command. + - ``.readouts``: The ``HARDCopy:READOuts`` command. + - ``.view``: The ``HARDCopy:VIEW`` command. + """ + return self._hardcopy + + @property + def hdr(self) -> Hdr: + """Return the ``HDR`` command. + + **Description:** + - This command is identical to the HEADer query and is included for backward + compatibility purposes. + + **Usage:** + - Using the ``.query()`` method will send the ``HDR?`` query. + - Using the ``.verify(value)`` method will send the ``HDR?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HDR value`` command. + + **SCPI Syntax:** + + :: + + - HDR {|OFF|ON} + - HDR? + + **Info:** + - ```` = 0 sets the Response Header Enable State to false; any other value sets + this state to true, which causes the instrument to send headers on query responses. + - ``OFF`` sets the Response Header Enable State to false. This causes the instrument to + omit headers on query responses, so that only the argument is returned. + - ``ON`` sets the Response Header Enable State to true. This causes the instrument to + include headers on applicable query responses. You can then use the query response as + a command. + """ + return self._hdr + + @property + def header(self) -> Header: + """Return the ``HEADer`` command. + + **Description:** + - This command sets or queries the Response Header Enable State that causes the + instrument to either include or omit headers on query responses. Whether the long or + short form of header keywords and enumerations are returned is dependent upon the + state of ``:VERBose``. + + **Usage:** + - Using the ``.query()`` method will send the ``HEADer?`` query. + - Using the ``.verify(value)`` method will send the ``HEADer?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``HEADer value`` command. + + **SCPI Syntax:** + + :: + + - HEADer {|OFF|ON} + - HEADer? + + **Info:** + - ```` = 0 sets the Response Header Enable State to false; any other value sets + this state to true. + - ``OFF`` sets the Response Header Enable State to false. This causes the instrument to + omit headers on query responses, so that only the argument is returned. + - ``ON`` sets the Response Header Enable State to true. This causes the instrument to + include headers on applicable query responses. You can then use the query response as + a command. + """ + return self._header + + @property + def histogram(self) -> Histogram: + """Return the ``HIStogram`` command. + + **Description:** + - This query-only query returns all histogram parameters; it queries the state of all + histogram parameters that the user can set. This command is equivalent to selecting + Waveform Histograms from the Measure menu. + + **Usage:** + - Using the ``.query()`` method will send the ``HIStogram?`` query. + - Using the ``.verify(value)`` method will send the ``HIStogram?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - HIStogram? + + Sub-properties: + - ``.box``: The ``HIStogram:BOX`` command. + - ``.boxpcnt``: The ``HIStogram:BOXPcnt`` command. + - ``.count``: The ``HIStogram:COUNt`` command. + - ``.data``: The ``HIStogram:DATa`` command. + - ``.display``: The ``HIStogram:DISplay`` command. + - ``.function``: The ``HIStogram:FUNCtion`` command. + - ``.mode``: The ``HIStogram:MODe`` command. + - ``.size``: The ``HIStogram:SIZe`` command. + - ``.source``: The ``HIStogram:SOUrce`` command. + - ``.state``: The ``HIStogram:STATE`` command. + """ + return self._histogram + + @property + def horizontal(self) -> Horizontal: + """Return the ``HORizontal`` command. + + **Description:** + - Queries the current horizontal settings. + + **Usage:** + - Using the ``.query()`` method will send the ``HORizontal?`` query. + - Using the ``.verify(value)`` method will send the ``HORizontal?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - HORizontal? + + Sub-properties: + - ``.acqduration``: The ``HORizontal:ACQDURATION`` command. + - ``.acqlength``: The ``HORizontal:ACQLENGTH`` command. + - ``.digital``: The ``HORizontal:DIGital`` command tree. + - ``.divisions``: The ``HORizontal:DIVisions`` command. + - ``.fastframe``: The ``HORizontal:FASTframe`` command. + - ``.main``: The ``HORizontal:MAIn`` command. + - ``.mode``: The ``HORizontal:MODE`` command. + - ``.position``: The ``HORizontal:POSition`` command. + - ``.roll``: The ``HORizontal:ROLL`` command. + - ``.timestamp``: The ``HORizontal:TIMEStamp`` command tree. + """ + return self._horizontal + + @property + def id(self) -> Id: + """Return the ``ID`` command. + + **Description:** + - This query-only command returns identifying information about the instrument and + related firmware similar to that returned by the ``*IDN?`` IEEE488.2 common query but + does not include the instrument serial number. + + **Usage:** + - Using the ``.query()`` method will send the ``ID?`` query. + - Using the ``.verify(value)`` method will send the ``ID?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - ID? + """ + return self._id + + @property + def idn(self) -> Idn: + """Return the ``*IDN`` command. + + **Description:** + - This query-only command returns the instrument identification code. + + **Usage:** + - Using the ``.query()`` method will send the ``*IDN?`` query. + - Using the ``.verify(value)`` method will send the ``*IDN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *IDN? + """ + return self._idn + + @property + def limit(self) -> Limit: + """Return the ``LIMit`` command. + + **Description:** + - This query-only command returns all settings for the Limit commands. + + **Usage:** + - Using the ``.query()`` method will send the ``LIMit?`` query. + - Using the ``.verify(value)`` method will send the ``LIMit?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - LIMit? + + Sub-properties: + - ``.beep``: The ``LIMit:BEEP`` command. + - ``.compare``: The ``LIMit:COMpare`` command. + - ``.email``: The ``LIMit:EMail`` command. + - ``.hardcopy``: The ``LIMit:HARDCopy`` command. + - ``.highlighthits``: The ``LIMit:HIGHLIGHTHits`` command. + - ``.lock``: The ``LIMit:LOCk`` command. + - ``.log``: The ``LIMit:LOG`` command. + - ``.savewfm``: The ``LIMit:SAVEWFM`` command. + - ``.srq``: The ``LIMit:SRQ`` command. + - ``.state``: The ``LIMit:STATE`` command. + - ``.status``: The ``LIMit:STATus`` command. + - ``.stoponviolation``: The ``LIMit:STOPOnviolation`` command. + - ``.template``: The ``LIMit:TEMPlate`` command tree. + """ + return self._limit + + @property + def linktraining(self) -> Linktraining: + """Return the ``LINKTRaining`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``LINKTRaining?`` query. + - Using the ``.verify(value)`` method will send the ``LINKTRaining?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.acqtime``: The ``LINKTRaining:ACQTime`` command. + - ``.armscope``: The ``LINKTRaining:ARMscope`` command. + - ``.decode``: The ``LINKTRaining:DECOde`` command. + - ``.equalizationch``: The ``LINKTRaining:EQUalizationCH`` command. + - ``.lane``: The ``LINKTRaining:LANE`` command. + - ``.mark``: The ``LINKTRaining:MARK`` command. + - ``.setup``: The ``LINKTRaining:SETUP`` command. + """ + return self._linktraining + + @property + def lock(self) -> Lock: + """Return the ``LOCk`` command. + + **Description:** + - This command enables or disables the touch screen and all front panel buttons and + knobs. There is no front panel equivalent. When the front panel is locked, the front + panel commands will not work and will not generate error events. You can work around a + locked front panel, by using the appropriate programmatic interface commands, instead + of the front-panel commands. For example, to set the trigger level to 50%, you could + use ``TRIGger:A SETLevel``. To force a trigger, you could use TRIGger FORCe. + + **Usage:** + - Using the ``.query()`` method will send the ``LOCk?`` query. + - Using the ``.verify(value)`` method will send the ``LOCk?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``LOCk value`` command. + + **SCPI Syntax:** + + :: + + - LOCk {ALL|NONe} + - LOCk? + + **Info:** + - ``ALL`` disables all front panel controls and the touch screen. + - ``NONe`` enables all front panel controls and the touch screen. The UNLock ALL command + only unlocks the front panel controls. + - ``NONe`` command has no effect. For more information, see the ANSI/IEEE Std 488.1-1987 + Standard Digital Interface for Programmable Instrumentation, section 2.8.3 on RL State + Descriptions. + """ + return self._lock + + @property + def lrn(self) -> Lrn: + """Return the ``*LRN`` command. + + **Description:** + - This query-only command returns the commands that list the instrument settings, + allowing you to record or 'learn' the current instrument settings. You can use these + commands to return the instrument to the state it was in when you made the ``*LRN?`` + query. This command is identical to the SET command. + + **Usage:** + - Using the ``.query()`` method will send the ``*LRN?`` query. + - Using the ``.verify(value)`` method will send the ``*LRN?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *LRN? + """ + return self._lrn + + @property + def mark(self) -> Mark: + """Return the ``MARK`` command. + + **Description:** + - Moves to the next or previous reference mark on the waveform. Returns the current mark + position. + + **Usage:** + - Using the ``.query()`` method will send the ``MARK?`` query. + - Using the ``.verify(value)`` method will send the ``MARK?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``MARK value`` command. + + **SCPI Syntax:** + + :: + + - MARK {NEXT|PREVious} + - MARK? + + **Info:** + - ``NEXT`` moves to the next reference mark on the right. + - ``PREVious`` moves to the next reference mark on the left. + + Sub-properties: + - ``.create``: The ``MARK:CREATE`` command. + - ``.delete``: The ``MARK:DELEte`` command. + - ``.free``: The ``MARK:FREE`` command. + - ``.selected``: The ``MARK:SELECTED`` command tree. + - ``.total``: The ``MARK:TOTal`` command. + """ + return self._mark + + @property + def mask(self) -> Mask: + """Return the ``MASK`` command. + + **Description:** + - This query-only command returns the states of all settable mask parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``MASK?`` query. + - Using the ``.verify(value)`` method will send the ``MASK?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MASK? + + Sub-properties: + - ``.autoadjust``: The ``MASK:AUTOAdjust`` command. + - ``.autoset``: The ``MASK:AUTOSet`` command tree. + - ``.copy``: The ``MASK:COPy`` command tree. + - ``.count``: The ``MASK:COUNt`` command. + - ``.display``: The ``MASK:DISplay`` command. + - ``.filter``: The ``MASK:FILTer`` command. + - ``.highlighthits``: The ``MASK:HIGHLIGHTHits`` command. + - ``.invert``: The ``MASK:INVert`` command. + - ``.lock``: The ``MASK:LOCk`` command. + - ``.margin``: The ``MASK:MARgin`` command tree. + - ``.maskpre``: The ``MASK:MASKPRE`` command tree. + - ``.polarity``: The ``MASK:POLarity`` command. + - ``.seg``: The ``MASK:SEG`` command. + - ``.source``: The ``MASK:SOUrce`` command. + - ``.standard``: The ``MASK:STANdard`` command. + - ``.stoponviolation``: The ``MASK:STOPOnviolation`` command. + - ``.test``: The ``MASK:TESt`` command tree. + - ``.user``: The ``MASK:USER`` command tree. + """ + return self._mask + + @property + def math(self) -> Dict[int, MathItem]: + """Return the ``MATH`` command. + + **Description:** + - This query-only command returns the definition for the math waveform specified by , + which ranges from 1 through 4. + + **Usage:** + - Using the ``.query()`` method will send the ``MATH?`` query. + - Using the ``.verify(value)`` method will send the ``MATH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MATH? + + Sub-properties: + - ``.define``: The ``MATH:DEFine`` command. + - ``.filter``: The ``MATH:FILTer`` command tree. + - ``.label``: The ``MATH:LABel`` command tree. + - ``.numavg``: The ``MATH:NUMAVg`` command. + - ``.spectral``: The ``MATH:SPECTral`` command. + - ``.threshold``: The ``MATH:THRESHold`` command. + - ``.unitstring``: The ``MATH:UNITString`` command. + - ``.vertical``: The ``MATH:VERTical`` command tree. + """ + return self._math + + @property + def matharbflt(self) -> Dict[int, MatharbfltItem]: + """Return the ``MATHArbflt`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MATHArbflt?`` query. + - Using the ``.verify(value)`` method will send the ``MATHArbflt?`` query and raise + an AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.filepath``: The ``MATHArbflt:FILepath`` command. + - ``.readfile``: The ``MATHArbflt:READFile`` command. + """ + return self._matharbflt + + @property + def mathvar(self) -> Mathvar: + """Return the ``MATHVAR`` command. + + **Description:** + - Queries both numerical values you can use within math expressions. + + **Usage:** + - Using the ``.query()`` method will send the ``MATHVAR?`` query. + - Using the ``.verify(value)`` method will send the ``MATHVAR?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MATHVAR? + + Sub-properties: + - ``.var``: The ``MATHVAR:VAR`` command. + """ + return self._mathvar + + @property + def mch(self) -> Dict[int, MchItem]: + """Return the ``MCH`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MCH?`` query. + - Using the ``.verify(value)`` method will send the ``MCH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.minamplitude``: The ``MCH:MINAMPLitude`` command. + - ``.maxamplitude``: The ``MCH:MAXAMPLitude`` command. + """ + return self._mch + + @property + def measurement(self) -> Measurement: + """Return the ``MEASUrement`` command. + + **Description:** + - This query-only command returns all measurement parameters. + + **Usage:** + - Using the ``.query()`` method will send the ``MEASUrement?`` query. + - Using the ``.verify(value)`` method will send the ``MEASUrement?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - MEASUrement? + + Sub-properties: + - ``.annotation``: The ``MEASUrement:ANNOTation`` command tree. + - ``.dpojetstatistics``: The ``MEASUrement:DPOJETSTATistics`` command. + - ``.gating``: The ``MEASUrement:GATing`` command. + - ``.immed``: The ``MEASUrement:IMMed`` command. + - ``.meas``: The ``MEASUrement:MEAS`` command. + - ``.method``: The ``MEASUrement:METHod`` command. + - ``.noise``: The ``MEASUrement:NOISe`` command. + - ``.reflevel``: The ``MEASUrement:REFLevel`` command. + - ``.source1``: The ``MEASUrement:SOUrce1`` command tree. + - ``.statistics``: The ``MEASUrement:STATIstics`` command tree. + """ + return self._measurement + + @property + def multiscope(self) -> Multiscope: + """Return the ``MULTiscope`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``MULTiscope?`` query. + - Using the ``.verify(value)`` method will send the ``MULTiscope?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.config``: The ``MULTiscope:CONFig`` command. + - ``.exit``: The ``MULTiscope:EXIT`` command. + - ``.restart``: The ``MULTiscope:RESTART`` command. + - ``.status``: The ``MULTiscope:STATUS`` command. + """ + return self._multiscope + + @property + def newpass(self) -> Newpass: + """Return the ``NEWpass`` command. + + **Description:** + - This command (no query form) changes the password that enables access to password + protected data. The PASSWord command must be successfully executed before using this + command or an execution error will be generated. + + **Usage:** + - Using the ``.write(value)`` method will send the ``NEWpass value`` command. + + **SCPI Syntax:** + + :: + + - NEWpass + + **Info:** + - ```` is the new password, which can contain up to 10 characters. + """ + return self._newpass + + @property + def opc(self) -> Opc: + """Return the ``*OPC`` command. + + **Description:** + - This command generates the operation complete message in the Standard Event Status + Register (SESR) when all pending commands that generate an OPC message are complete. + The ``*OPC?`` query places the ASCII character '1' into the output queue when all such + OPC commands are complete. The ``*OPC?`` response is not available to read until all + pending operations finish. For a complete discussion of the use of these registers and + the output queue, see Registers and Queues. The ``*OPC`` command allows you to + synchronize the operation of the instrument with your application program. For more + information, see Synchronization Methods. Refer to the Oscilloscope operations that + can generate OPC table for a list of commands that generate an OPC message. + + **Usage:** + - Using the ``.query()`` method will send the ``*OPC?`` query. + - Using the ``.verify(value)`` method will send the ``*OPC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write()`` method will send the ``*OPC`` command. + + **SCPI Syntax:** + + :: + + - *OPC + - *OPC? + """ + return self._opc + + @property + def opcextended(self) -> Opcextended: + """Return the ``OPCEXtended`` command. + + **Description:** + - This command sets or queries the behavior of OPC commands and queries. When enabled, + operations referenced in the ``*OPC`` command description notify when their overlapped + functionality has completed. When disabled, the operations notify as they have in the + past (only once updated in the instrument state database). Command synchronization + Operation PI sequence Single sequence with ttOff ``:ACQUIRE:STOPAFTER SEQUENCE`` + ``:ACQUIRE:STATE 1``;``*OPC?``;``:WFMOUTPRE:XZERO?`` Single sequence with Measurement + Annotation ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MEASUREMENT:MEAS1:STATE 1``;TYPE PK2PK + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:ANNOTATION:X1?`` Single sequence with + Cursors ``:ACQUIRE:STOPAFTER SEQUENCE``;``:CURSOR:FUNCTION WAVEFORM``;SOURCE CH1;STATE + 1 ``:ACQUIRE:STATE 1``;``*OPC?`` Single sequence with Math + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MATH1:DEFINE`` 'Ch1``*Ch2``';``:SELECT:MATH1 1`` + ``:ACQUIRE:STATE 1``;``*OPC?`` Default setup followed by Save Waveform + ``*RST``;``*OPC?`` ``:SAVE:WAVEFORM`` CH1,REF1;``*WAI`` ``:SELECT:REF1 1`` Math On + during Acq Run mode ``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 ``:MATH1:DEFINE`` + 'CH1``*CH1``';``:SELECT:MATH1 1`` ``:DATA:ENCDG ASCII``;SOURCE REF1;START 1;STOP 10 + ``:SELECT:MATH1 0`` {Wait a couple sec..longer in release mode?} + ``:SELECT:MATH1 1``;``*WAI``;``:CURVE?`` Save Math to Ref + ``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 ``:MATH1:DEFINE`` + 'CH1``*CH1``';``:SELECT:MATH1 1``;``*WAI``; ``:SAVE:WAVEFORM`` + MATH1,REF1;``:SELECT:REF1 1`` ``:DATA:ENCDG ASCII``;SOURCE REF1;START 1;STOP 10 CURVE? + Trigger state ``:ACQUIRE:STOPAFTER SEQUENCE`` + ``:ACQUIRE:STATE 1``;``*OPC?``;``:TRIGGER:STATE?`` Single sequence with Measurement + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:MEASUREMENT:MEAS1:STATE 1``;TYPE AMPLITUDE + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:MEAS1:VALUE?`` Single sequence with + Measurement on Math + ``:ACQUIRE:STOPAFTER SEQUENCE``;``:HORIZONTAL:MODE MANUAL``;RECORDLENGTH 2500000 + ``:MATH1:DEFINE`` 'CH1``*CH1``';``:SELECT:MATH1 1`` + ``:MEASUREMENT:MEAS1:STATE 1``;TYPE AMPLITUDE;SOURCE MATH1 + ``:ACQUIRE:STATE 1``;``*OPC?``;``:MEASUREMENT:MEAS1:VALUE?`` Acq Count + ``*RST``;``*WAI``;``:ACQUIRE:NUMACQ?`` Acq state after single sequence + ``:ACQUIRE:STOPAFTER SEQUENCE``;STATE 1;``*WAI``;``:ACQUIRE:STATE?`` + + **Usage:** + - Using the ``.query()`` method will send the ``OPCEXtended?`` query. + - Using the ``.verify(value)`` method will send the ``OPCEXtended?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``OPCEXtended value`` command. + + **SCPI Syntax:** + + :: + + - OPCEXtended {|OFF|ON} + - OPCEXtended? + + **Info:** + - ``ON`` turns on extended OPC behavior. + - ``OFF`` turns off extended OPC behavior. + - ```` = 0 turns off extended OPC behavior; any other value turns on extended OPC + behavior. + """ + return self._opcextended + + @property + def opt(self) -> Opt: + """Return the ``*OPT`` command. + + **Description:** + - This query-only command returns a comma separated list of installed options as an + arbitrary ASCII string (no quotes) of the form: + ``:``,``:``... The last + section of each entry (the text following the last hyphen) indicates the license type. + If no options are found, NONE is returned. + + **Usage:** + - Using the ``.query()`` method will send the ``*OPT?`` query. + - Using the ``.verify(value)`` method will send the ``*OPT?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *OPT? + """ + return self._opt + + @property + def password(self) -> Password: + """Return the ``PASSWord`` command. + + **Description:** + - This command (no query form) enables the ``*PUD`` and NEWpass set commands. Sending + ``PASSWord`` without any arguments disables these same commands. Once the password is + successfully entered, the ``*PUD`` and NEWpass commands are enabled until the + instrument is powered off, or until the FACtory command, the ``PASSWord`` command with + no arguments, or the ``*RST`` command is issued. To change the password, you must + first enter the valid password with the ``PASSWord`` command and then change to your + new password with the NEWpass command. Remember that the password is case sensitive. + + **Usage:** + - Using the ``.write(value)`` method will send the ``PASSWord value`` command. + + **SCPI Syntax:** + + :: + + - PASSWord + + **Info:** + - ```` is the password, which can contain up to 10 characters. The factory + default password is 'XYZZY' and is always valid. + """ + return self._password + + @property + def pcenable(self) -> Pcenable: + """Return the ``PCENable`` command. + + **Description:** + - Sets or queries the enable state of the User Preference Probe compensation. + + **Usage:** + - Using the ``.query()`` method will send the ``PCENable?`` query. + - Using the ``.verify(value)`` method will send the ``PCENable?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``PCENable value`` command. + + **SCPI Syntax:** + + :: + + - PCENable OFF | ON + - PCENable? + """ + return self._pcenable + + @property + def psc(self) -> Psc: + """Return the ``*PSC`` command. + + **Description:** + - This command sets and queries the power-on status flag that controls the automatic + power-on handling of the DESER, SRER, and ESER registers. When ``*PSC`` is true, the + DESER register is set to 255 and the SRER and ESER registers are set to 0 at power-on. + When ``*PSC`` is false, the current values in the DESER, SRER, and ESER registers are + preserved in nonvolatile memory when power is shut off and are restored at power-on. + + **Usage:** + - Using the ``.query()`` method will send the ``*PSC?`` query. + - Using the ``.verify(value)`` method will send the ``*PSC?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*PSC value`` command. + + **SCPI Syntax:** + + :: + + - *PSC {|OFF|ON} + - *PSC? + + **Info:** + - ```` = 0 sets the power-on status clear flag to false, disables the power-on + clear and allows the instrument to possibly assert SRQ after power-on; any other value + sets the power-on status clear flag to true, enabling the power-on status clear and + prevents any SRQ assertion after power on. + - ``OFF`` sets the power-on status clear flag to false, disables the power-on clear and + allows the instrument to possibly assert SRQ after power-on. + - ``ON`` sets the power-on status clear flag to true, enabling the power-on status clear + and prevents any SRQ assertion after power on. + """ + return self._psc + + @property + def pud(self) -> Pud: + """Return the ``*PUD`` command. + + **Description:** + - This command sets or queries a string of Protected User Data. This data is protected + by the PASSWord command. You can modify it only by first entering the correct + password. This password is not necessary to query the data. + + **Usage:** + - Using the ``.query()`` method will send the ``*PUD?`` query. + - Using the ``.verify(value)`` method will send the ``*PUD?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*PUD value`` command. + + **SCPI Syntax:** + + :: + + - *PUD {|} + - *PUD? + + **Info:** + - ```` is a block containing up to 100 characters. + - ```` is a string containing up to 100 characters. + """ + return self._pud + + @property + def rcl(self) -> Rcl: + """Return the ``*RCL`` command. + + **Description:** + - This command restores the state of the oscilloscope from a copy of the settings stored + in memory (The settings are stored using the ``*SAV`` command). + + **Usage:** + - Using the ``.write(value)`` method will send the ``*RCL value`` command. + + **SCPI Syntax:** + + :: + + - *RCL + + **Info:** + - ```` is a value in the range from 1 to 10, which specifies a saved setup storage + location. + """ + return self._rcl + + @property + def recall(self) -> Recall: + """Return the ``RECAll`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``RECAll?`` query. + - Using the ``.verify(value)`` method will send the ``RECAll?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.mask``: The ``RECAll:MASK`` command. + - ``.setup``: The ``RECAll:SETUp`` command. + - ``.waveform``: The ``RECAll:WAVEform`` command. + """ + return self._recall + + @property + def ref(self) -> Dict[int, RefItem]: + """Return the ``REF`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``REF?`` query. + - Using the ``.verify(value)`` method will send the ``REF?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.horizontal``: The ``REF:HORizontal`` command tree. + - ``.label``: The ``REF:LABel`` command. + - ``.threshold``: The ``REF:THRESHold`` command. + - ``.vertical``: The ``REF:VERTical`` command tree. + """ + return self._ref + + @property + def rem(self) -> Rem: + """Return the ``REM`` command. + + **Description:** + - This command (no query form) embeds a comment within programs as a means of internally + documenting the programs. This is how to embed comments in a .set file. The instrument + ignores these embedded comment lines. + + **Usage:** + - Using the ``.write(value)`` method will send the ``REM value`` command. + + **SCPI Syntax:** + + :: + + - REM + + **Info:** + - ```` is a string that can contain a maximum of 80 characters. + """ + return self._rem + + @property + def rosc(self) -> Rosc: + """Return the ``ROSc`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``ROSc?`` query. + - Using the ``.verify(value)`` method will send the ``ROSc?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.out``: The ``ROSc:OUT`` command tree. + - ``.source``: The ``ROSc:SOUrce`` command. + - ``.state``: The ``ROSc:STATE`` command. + - ``.tracking``: The ``ROSc:TRACking`` command. + """ + return self._rosc + + @property + def rst(self) -> Rst: + """Return the ``*RST`` command. + + **Description:** + - This command (no query form) resets the instrument to the factory default settings. + This command does the following: Recalls the default instrument setup. Clears the + current ``*DDT`` command. Disables aliases (``:ALIAS:STATE 0``). Disables the user + password (for the ``*PUD`` command). The ``*RST`` command does not change the + following: The current working directory ( ``:FILESystem:CWD`` command). The state of + command headers ( ``:HEADer`` command). The state of keyword and enumeration verbosity + ( ``:VERBose`` command). The Power-on Status Clear Flag ( ``*PSC`` command). The Event + Status Enable Register ( ``*ESE`` command). The Service Request Enable Register ( + ``*SRE`` command). The Device Event Status Enable Register ( DESE command). The user + password for protected user data ( ``:PASSWord`` command). The content of protected + user data ( ``*PUD`` command). The enabled state of the socket server ( + ``:SOCKETServer:ENAble`` command). The socket server port number ( + ``:SOCKETServer:PORT`` command). The socket server protocol ( + ``:SOCKETServer:PROTOCol`` command). The USBTMC port configuration ( + ``:USBDevice:CONFigure`` command). The destination reference waveform or file path for + the ``:CURVe`` command ( ``:DATa:DESTination`` command). The source waveform for the + ``:CURVe?`` or ``:WAVFrm?`` queries ( ``:DATa:SOUrce`` command). The waveform data + encoding for the ``:CURVe`` command or query or the ``:WAVFrm?`` query ( + ``:DATa:ENCdg`` command). The starting point for ``:CURVe?`` queries ( ``:DATa:STARt`` + command). The ending point for ``:CURVe?`` queries ( ``:DATa:STOP`` command). All + settings associated the ``:WFMInpre`` commands. All user settable settings associated + with the WFMOutpre commands. ``*RST`` only resets the programmable interface settings, + it does not change the user interface settings. + + **Usage:** + - Using the ``.write()`` method will send the ``*RST`` command. + + **SCPI Syntax:** + + :: + + - *RST + """ + return self._rst + + @property + def sav(self) -> Sav: + """Return the ``*SAV`` command. + + **Description:** + - Stores the state of the oscilloscope to a specified memory location. You can use the + ``*RCL`` command to restore the oscilloscope to this saved state at a later time. + + **Usage:** + - Using the ``.write(value)`` method will send the ``*SAV value`` command. + + **SCPI Syntax:** + + :: + + - *SAV + + **Info:** + - ```` specifies a location in which to save the state of the oscilloscope. + Location values range from 1 through 10. Using an out-of-range location value causes + an execution error. Any settings that have been stored previously at this location + will be overwritten. + """ + return self._sav + + @property + def save(self) -> Save: + """Return the ``SAVe`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SAVe?`` query. + - Using the ``.verify(value)`` method will send the ``SAVe?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.eventtable``: The ``SAVe:EVENTtable`` command tree. + - ``.marks``: The ``SAVe:MARKS`` command. + - ``.mask``: The ``SAVe:MASK`` command. + - ``.setup``: The ``SAVe:SETUp`` command. + - ``.waveform``: The ``SAVe:WAVEform`` command. + """ + return self._save + + @property + def saveon(self) -> Saveon: + """Return the ``SAVEON`` command. + + **Description:** + - Sets the auto-increment file count to 0. Once the number of saved files has reached + the limit that you set (using the ``SAVEON:NUMevents`` command), no files will be + saved until you reset the count. + + **Usage:** + - Using the ``.write(value)`` method will send the ``SAVEON value`` command. + + **SCPI Syntax:** + + :: + + - SAVEON {RESET} + + **Info:** + - ``RESET`` sets the file count to 0. + + Sub-properties: + - ``.count``: The ``SAVEON:COUNt`` command. + - ``.file``: The ``SAVEON:FILE`` command tree. + - ``.image``: The ``SAVEON:IMAGe`` command. + - ``.limit``: The ``SAVEON:LIMit`` command. + - ``.mask``: The ``SAVEON:MASK`` command. + - ``.measurement``: The ``SAVEON:MEASUrement`` command. + - ``.numevents``: The ``SAVEON:NUMEvents`` command. + - ``.setup``: The ``SAVEON:SETUP`` command. + - ``.trigger``: The ``SAVEON:TRIGger`` command. + - ``.waveform``: The ``SAVEON:WAVEform`` command. + """ + return self._saveon + + @property + def sds(self) -> Sds: + """Return the ``*SDS`` command. + + **Description:** + - This command (no query form) changes the specified setup to reference the factory + setup instead of the specific user setup slot. The content of the setup slot is + unchanged, but the data will no longer be accessible to you. This command is + equivalent to selecting Delete from the File menu, and then choosing the specified + setup. + + **Usage:** + - Using the ``.write(value)`` method will send the ``*SDS value`` command. + + **SCPI Syntax:** + + :: + + - *SDS + + **Info:** + - ```` specifies a user setup location to delete. Setup storage location values + range from 1 through 10; using an out-of-range value causes an error. + """ + return self._sds + + @property + def search(self) -> Search: + """Return the ``SEARCH`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SEARCH?`` query. + - Using the ``.verify(value)`` method will send the ``SEARCH?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.markallevents``: The ``SEARCH:MARKALLevents`` command. + - ``.search``: The ``SEARCH:SEARCH`` command. + - ``.stop``: The ``SEARCH:STOP`` command. + """ + return self._search + + @property + def select(self) -> Select: + """Return the ``SELect`` command. + + **Description:** + - Queries which waveforms are displayed. + + **Usage:** + - Using the ``.query()`` method will send the ``SELect?`` query. + - Using the ``.verify(value)`` method will send the ``SELect?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - SELect? + + Sub-properties: + - ``.b``: The ``SELect:B`` command. + - ``.ch``: The ``SELect:CH`` command. + - ``.control``: The ``SELect:CONTROl`` command. + - ``.d``: The ``SELect:D`` command. + - ``.dall``: The ``SELect:DALL`` command. + - ``.digtraces``: The ``SELect:DIGTraces`` command tree. + - ``.math``: The ``SELect:MATH`` command. + - ``.ref``: The ``SELect:REF`` command. + """ + return self._select + + @property + def set_(self) -> Set: + """Return the ``SET`` command. + + **Description:** + - This query-only command returns the commands that list the instrument settings, except + for configuration information for the calibration values. You can use these commands + to return the instrument to the state it was in when you made the ``SET?`` query. The + ``SET?`` query always returns command headers, regardless of the setting of the HEADER + command. This is because the returned commands are intended to be sent back to the + instrument as a command string. The VERBOSE command can still be used to specify + whether the returned headers should be abbreviated or full-length. This command is + identical to the LRN command. + + **Usage:** + - Using the ``.query()`` method will send the ``SET?`` query. + - Using the ``.verify(value)`` method will send the ``SET?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - SET? + """ + return self._set + + @property + def setup(self) -> Setup: + """Return the ``SETUp`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SETUp?`` query. + - Using the ``.verify(value)`` method will send the ``SETUp?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.name``: The ``SETUp:NAMe`` command. + """ + return self._setup + + @property + def sre(self) -> Sre: + """Return the ``*SRE`` command. + + **Description:** + - The ``*SRE`` (Service Request Enable) command sets and queries the bits in the Service + Request Enable Register. For more information, refer to Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*SRE?`` query. + - Using the ``.verify(value)`` method will send the ``*SRE?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``*SRE value`` command. + + **SCPI Syntax:** + + :: + + - *SRE + - *SRE? + + **Info:** + - ```` is a value in the range from 0 through 255. The binary bits of the SRER are + set according to this value. Using an out-of-range value causes an execution error. + The power-on default for SRER is 0 if ``*PSC`` is 1. If ``*PSC`` is 0, the SRER + maintains the previous power cycle value through the current power cycle. + """ + return self._sre + + @property + def stb(self) -> Stb: + """Return the ``*STB`` command. + + **Description:** + - The ``*STB?`` (Read Status Byte) query returns the contents of the Status Byte + Register (SBR) using the Master Summary Status (MSS) bit. For more information, refer + to Registers. + + **Usage:** + - Using the ``.query()`` method will send the ``*STB?`` query. + - Using the ``.verify(value)`` method will send the ``*STB?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *STB? + """ + return self._stb + + @property + def system(self) -> System: + """Return the ``SYSTem`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``SYSTem?`` query. + - Using the ``.verify(value)`` method will send the ``SYSTem?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.setup``: The ``SYSTem:SETup`` command. + """ + return self._system + + @property + def teklink(self) -> Teklink: + """Return the ``TEKLink`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TEKLink?`` query. + - Using the ``.verify(value)`` method will send the ``TEKLink?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.connection``: The ``TEKLink:CONNection`` command. + - ``.refclk``: The ``TEKLink:REFClk`` command. + """ + return self._teklink + + @property + def teksecure(self) -> Teksecure: + """Return the ``TEKSecure`` command. + + **Description:** + - This command initializes, for the current user, both waveform and setup memories, + overwriting any previously stored data. Equivalent to invoking Teksecure from the + Utility menu. This is a time-consuming operation (3 to 5 minutes) and the instrument + is inoperable until the TekSecure operation is complete. + + **Usage:** + - Using the ``.write()`` method will send the ``TEKSecure`` command. + + **SCPI Syntax:** + + :: + + - TEKSecure + """ + return self._teksecure + + @property + def test(self) -> Test: + """Return the ``TEST`` command. + + **Description:** + - This command provides the ability to select and execute an item at any level of the + test hierarchy (Test, Area or Subsystem). The query returns the last command sent. + This command is equivalent to selecting Instrument Diagnostics from the Utilities + menu, choosing a test and then pressing Run. + + **Usage:** + - Using the ``.query()`` method will send the ``TEST?`` query. + - Using the ``.verify(value)`` method will send the ``TEST?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TEST value`` command. + + **SCPI Syntax:** + + :: + + - TEST + - TEST? + + **Info:** + - ```` sets the test ID, which ranges from 0 through 3 characters. If no test + ID is specified, all available diagnostics are executed. + + Sub-properties: + - ``.results``: The ``TEST:RESults`` command. + - ``.stop``: The ``TEST:STOP`` command. + """ + return self._test + + @property + def time(self) -> Time: + """Return the ``TIME`` command. + + **Description:** + - This command sets or queries the time that the instrument displays. This command is + equivalent to selecting Set Time & Date from the Utilities menu and then setting the + fields in the Time group box. + + **Usage:** + - Using the ``.query()`` method will send the ``TIME?`` query. + - Using the ``.verify(value)`` method will send the ``TIME?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TIME value`` command. + + **SCPI Syntax:** + + :: + + - TIME + - TIME? + + **Info:** + - ```` is a time in the form '``hh:mm:ss``' where hh refers to a two-digit hour + number, mm refers to a two-digit minute number from 01 to 60, and ss refers to a + two-digit second number from 01 to 60. + """ + return self._time + + @property + def trg(self) -> Trg: + """Return the ``*TRG`` command. + + **Description:** + - Performs a group execute trigger on commands defined by ``*DDT``. + + **Usage:** + - Using the ``.write()`` method will send the ``*TRG`` command. + + **SCPI Syntax:** + + :: + + - *TRG + """ + return self._trg + + @property + def trig(self) -> Trig: + """Return the ``TRIG`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIG?`` query. + - Using the ``.verify(value)`` method will send the ``TRIG?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.a``: The ``TRIG:A`` command tree. + """ + return self._trig + + @property + def trigger(self) -> Trigger: + """Return the ``TRIGger`` command. + + **Description:** + - This command forces a trigger event to occur. The query returns the current trigger + parameters for the instrument. + + **Usage:** + - Using the ``.query()`` method will send the ``TRIGger?`` query. + - Using the ``.verify(value)`` method will send the ``TRIGger?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``TRIGger value`` command. + + **SCPI Syntax:** + + :: + + - TRIGger FORCe + - TRIGger? + + **Info:** + - ``FORCe`` creates a trigger event. If ``TRIGger:STATE`` is set to READy, the + acquisition will complete. Otherwise, this command will be ignored. This is equivalent + to pressing the Force button on the front panel. + + Sub-properties: + - ``.a``: The ``TRIGger:A`` command. + - ``.auxlevel``: The ``TRIGger:AUXLevel`` command. + - ``.b``: The ``TRIGger:B`` command. + - ``.enhanced``: The ``TRIGger:ENHanced`` command. + - ``.equation``: The ``TRIGger:EQUation`` command. + - ``.lvlsrcpreference``: The ``TRIGger:LVLSrcpreference`` command. + - ``.main``: The ``TRIGger:MAIn`` command tree. + - ``.multiscope``: The ``TRIGger:MULTiscope`` command. + - ``.qualification``: The ``TRIGger:QUALification`` command tree. + - ``.sensitivity``: The ``TRIGger:SENSITivity`` command. + - ``.showequation``: The ``TRIGger:SHOWEQuation`` command. + - ``.state``: The ``TRIGger:STATE`` command. + """ + return self._trigger + + @property + def tst(self) -> Tst: + """Return the ``*TST`` command. + + **Description:** + - Tests (self-test) the interface and returns a 0. + + **Usage:** + - Using the ``.query()`` method will send the ``*TST?`` query. + - Using the ``.verify(value)`` method will send the ``*TST?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - *TST? + """ + return self._tst + + @property + def unlock(self) -> Unlock: + """Return the ``UNLock`` command. + + **Description:** + - This command (no query form) unlocks the front panel controls only. To unlock the + front panel controls and the touch screen use the LOCk NONe command. The command + ``TOUCHSCReen:STATE ON`` enables the touch screen only. + + **Usage:** + - Using the ``.write(value)`` method will send the ``UNLock value`` command. + + **SCPI Syntax:** + + :: + + - UNLock ALL + + **Info:** + - ``ALL`` specifies that all front panel buttons and knobs are unlocked. + """ + return self._unlock + + @property + def usbtmc(self) -> Usbtmc: + """Return the ``USBTMC`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``USBTMC?`` query. + - Using the ``.verify(value)`` method will send the ``USBTMC?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.productid``: The ``USBTMC:PRODUCTID`` command tree. + - ``.serialnumber``: The ``USBTMC:SERIALnumber`` command. + - ``.vendorid``: The ``USBTMC:VENDORID`` command tree. + """ + return self._usbtmc + + @property + def verbose(self) -> Verbose: + """Return the ``VERBose`` command. + + **Description:** + - This command sets or queries the Verbose state that controls the length of keywords on + query responses. Keywords can be both headers and arguments. + + **Usage:** + - Using the ``.write(value)`` method will send the ``VERBose value`` command. + + **SCPI Syntax:** + + :: + + - VERBose {|OFF|ON} + + **Info:** + - ```` = 0 disables Verbose, any other value enables Verbose. + - ``OFF`` sets the Verbose state to false, which returns minimum-length keywords for + applicable setting queries. + - ``ON`` sets the Verbose state to true, which returns full-length keywords for + applicable setting queries. + """ + return self._verbose + + @property + def visual(self) -> Visual: + """Return the ``VISual`` command. + + **Description:** + - This query-only command returns the settings for each visual trigger area. + + **Usage:** + - Using the ``.query()`` method will send the ``VISual?`` query. + - Using the ``.verify(value)`` method will send the ``VISual?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - VISual? + + Sub-properties: + - ``.area``: The ``VISual:AREA`` command. + - ``.areacolor``: The ``VISual:AREACOLOr`` command. + - ``.aspectratio``: The ``VISual:ASPECTratio`` command. + - ``.deletearea``: The ``VISual:DELETEAREA`` command. + - ``.enable``: The ``VISual:ENAble`` command. + - ``.file``: The ``VISual:FILE`` command tree. + """ + return self._visual + + @property + def wai(self) -> Wai: + """Return the ``*WAI`` command. + + **Description:** + - The ``*WAI`` (Wait) command (no query form) prevents the instrument from executing + further commands or queries until all pending commands that generate an OPC message + are complete. This command allows you to synchronize the operation of the instrument + with your application program. For more information, refer to Synchronization Methods. + + **Usage:** + - Using the ``.write()`` method will send the ``*WAI`` command. + + **SCPI Syntax:** + + :: + + - *WAI + """ + return self._wai + + @property + def wavfrm(self) -> Wavfrm: + """Return the ``WAVFrm`` command. + + **Description:** + - This query-only command provides the Tektronix standard waveform query which returns + the waveform preamble followed by the waveform data for the source specified by + ``:DATa:SOUrce`` using the ``:DATa`` settings for encoding, width, and so forth. + + **Usage:** + - Using the ``.query()`` method will send the ``WAVFrm?`` query. + - Using the ``.verify(value)`` method will send the ``WAVFrm?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WAVFrm? + """ + return self._wavfrm + + @property + def wavfrmstream(self) -> Wavfrmstream: + """Return the ``WAVFRMStream`` command. + + **Description:** + - This query only command returns WFMQUTPRE? and CURVESTREAM? data for the waveforms + specified by the DATASOURCE command. This command is similar to sending both + WFMOUTPRE? and CURVESTREAM?, with the additional provision that each CURVESTREAM + response to WAVFRMS? has a WFMOUTPRE response prepended to it. This helps guarantee a + continuous synchronized preamble and curve. + + **Usage:** + - Using the ``.query()`` method will send the ``WAVFRMStream?`` query. + - Using the ``.verify(value)`` method will send the ``WAVFRMStream?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WAVFRMStream? + """ + return self._wavfrmstream + + @property + def wfminpre(self) -> Wfminpre: + """Return the ``WFMInpre`` command. + + **Description:** + - Returns the waveform formatting and scaling specifications to be applied to the next + incoming CURVe command data. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMInpre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMInpre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WFMInpre? + + Sub-properties: + - ``.bit_nr``: The ``WFMInpre:BIT_Nr`` command. + - ``.bn_fmt``: The ``WFMInpre:BN_Fmt`` command. + - ``.byt_nr``: The ``WFMInpre:BYT_Nr`` command. + - ``.byt_or``: The ``WFMInpre:BYT_Or`` command. + - ``.encdg``: The ``WFMInpre:ENCdg`` command. + - ``.nr_fr``: The ``WFMInpre:NR_FR`` command. + - ``.nr_pt``: The ``WFMInpre:NR_Pt`` command. + - ``.pt_fmt``: The ``WFMInpre:PT_Fmt`` command. + - ``.pt_off``: The ``WFMInpre:PT_Off`` command. + - ``.wfid``: The ``WFMInpre:WFId`` command. + - ``.xincr``: The ``WFMInpre:XINcr`` command. + - ``.xunit``: The ``WFMInpre:XUNit`` command. + - ``.xzero``: The ``WFMInpre:XZEro`` command. + - ``.ymult``: The ``WFMInpre:YMUlt`` command. + - ``.yoff``: The ``WFMInpre:YOFf`` command. + - ``.yunit``: The ``WFMInpre:YUNit`` command. + - ``.yzero``: The ``WFMInpre:YZEro`` command. + """ + return self._wfminpre + + @property + def wfmoutpre(self) -> Wfmoutpre: + """Return the ``WFMOutpre`` command. + + **Description:** + - This query-only command queries the waveform formatting data for the waveform + specified by the ``DATA:SOURCE`` command. The preamble components are considered to be + of two types; formatting and interpretation. The formatting components are: ENCdg, + ``BN_Fmt``, ``BYT_Or``, ``BYT_Nr``, ``BIT_Nr``. The interpretation components are + derived from the ``DATa:SOUrce`` specified waveform. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMOutpre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMOutpre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + **SCPI Syntax:** + + :: + + - WFMOutpre? + + Sub-properties: + - ``.bit_nr``: The ``WFMOutpre:BIT_Nr`` command. + - ``.bn_fmt``: The ``WFMOutpre:BN_Fmt`` command. + - ``.byt_nr``: The ``WFMOutpre:BYT_Nr`` command. + - ``.byt_or``: The ``WFMOutpre:BYT_Or`` command. + - ``.encdg``: The ``WFMOutpre:ENCdg`` command. + - ``.nr_fr``: The ``WFMOutpre:NR_FR`` command. + - ``.nr_pt``: The ``WFMOutpre:NR_Pt`` command. + - ``.pt_fmt``: The ``WFMOutpre:PT_Fmt`` command. + - ``.pt_order``: The ``WFMOutpre:PT_ORder`` command. + - ``.pt_off``: The ``WFMOutpre:PT_Off`` command. + - ``.wfid``: The ``WFMOutpre:WFId`` command. + - ``.xincr``: The ``WFMOutpre:XINcr`` command. + - ``.xunit``: The ``WFMOutpre:XUNit`` command. + - ``.xzero``: The ``WFMOutpre:XZEro`` command. + - ``.ymult``: The ``WFMOutpre:YMUlt`` command. + - ``.yoff``: The ``WFMOutpre:YOFf`` command. + - ``.yunit``: The ``WFMOutpre:YUNit`` command. + - ``.yzero``: The ``WFMOutpre:YZEro`` command. + """ + return self._wfmoutpre + + @property + def wfmpre(self) -> Wfmpre: + """Return the ``WFMPre`` command tree. + + **Usage:** + - Using the ``.query()`` method will send the ``WFMPre?`` query. + - Using the ``.verify(value)`` method will send the ``WFMPre?`` query and raise an + AssertionError if the returned value does not match ``value``. + + Sub-properties: + - ``.nr_fr``: The ``WFMPre:NR_FR`` command. + """ + return self._wfmpre + + @property + def zoom(self) -> Zoom: + """Return the ``ZOOm`` command. + + **Description:** + - This command resets the zoom transforms to default values for all traces or live + traces. The ``ZOOm`` query returns the current vertical and horizontal positioning and + scaling of the display. + + **Usage:** + - Using the ``.query()`` method will send the ``ZOOm?`` query. + - Using the ``.verify(value)`` method will send the ``ZOOm?`` query and raise an + AssertionError if the returned value does not match ``value``. + - Using the ``.write(value)`` method will send the ``ZOOm value`` command. + + **SCPI Syntax:** + + :: + + - ZOOm {RESET|RESETLive} + - ZOOm? + + **Info:** + - ``RESET`` resets the zoom transforms to default values for all traces. + - ``RESETLive`` resets the zoom transforms to default values for live traces. + + Sub-properties: + - ``.graticule``: The ``ZOOm:GRAticule`` command tree. + - ``.horizontal``: The ``ZOOm:HORizontal`` command tree. + - ``.math``: The ``ZOOm:MATH`` command tree. + - ``.mode``: The ``ZOOm:MODe`` command. + - ``.ref``: The ``ZOOm:REF`` command tree. + - ``.scroll``: The ``ZOOm:SCROLL`` command tree. + - ``.state``: The ``ZOOm:STATE`` command. + - ``.vertical``: The ``ZOOm:VERTical`` command tree. + - ``.zoom1``: The ``ZOOm:ZOOM1`` command. + """ + return self._zoom + + +class MSO5KMixin: + """A mixin that provides access to the MSO5K commands and constants. + + Properties: + - ``.command_argument_constants``: The MSO5K command argument constants. + - ``.commands``: The MSO5K commands. + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + device = self if isinstance(self, PIDevice) else None + self._command_argument_constants = MSO5KCommandConstants() + self._commands = MSO5KCommands(device) + + @property + def command_argument_constants(self) -> MSO5KCommandConstants: + """Return the MSO5K command argument constants. + + This provides access to all the string constants which can be used as arguments for MSO5K + commands. + """ + return self._command_argument_constants + + @property + def commands(self) -> MSO5KCommands: + """Return the MSO5K commands. + + This provides access to all the commands for the MSO5K device. See the documentation of each + sub-property for more usage information. + + Sub-properties: + - ``.acquire``: The ``ACQuire`` command tree. + - ``.alias``: The ``ALIas`` command. + - ``.allev``: The ``ALLEv`` command. + - ``.allocate``: The ``ALLOcate`` command tree. + - ``.application``: The ``APPLication`` command tree. + - ``.autoset``: The ``AUTOSet`` command. + - ``.auxin``: The ``AUXIn`` command tree. + - ``.auxout``: The ``AUXout`` command. + - ``.bell``: The ``BELl`` command. + - ``.bus``: The ``BUS`` command tree. + - ``.busy``: The ``BUSY`` command. + - ``.cal``: The ``*CAL`` command. + - ``.calibrate``: The ``CALibrate`` command. + - ``.ch``: The ``CH`` command. + - ``.clear``: The ``CLEAR`` command. + - ``.cls``: The ``*CLS`` command. + - ``.cmdbatch``: The ``CMDBatch`` command. + - ``.counter``: The ``COUnter`` command tree. + - ``.cq``: The ``CQ`` command tree. + - ``.cursor``: The ``CURSor`` command. + - ``.curve``: The ``CURVe`` command. + - ``.curvenext``: The ``CURVENext`` command. + - ``.curvestream``: The ``CURVEStream`` command. + - ``.custom``: The ``CUSTOM`` command tree. + - ``.d``: The ``D`` command tree. + - ``.data``: The ``DATa`` command. + - ``.date``: The ``DATE`` command. + - ``.ddt``: The ``*DDT`` command. + - ``.delete``: The ``DELEte`` command tree. + - ``.dese``: The ``DESE`` command. + - ``.diag``: The ``DIAg`` command tree. + - ``.display``: The ``DISplay`` command. + - ``.email``: The ``EMail`` command. + - ``.errordetector``: The ``ERRORDetector`` command tree. + - ``.ese``: The ``*ESE`` command. + - ``.esr``: The ``*ESR`` command. + - ``.event``: The ``EVENT`` command. + - ``.evmsg``: The ``EVMsg`` command. + - ``.evqty``: The ``EVQty`` command. + - ``.export``: The ``EXPort`` command. + - ``.factory``: The ``FACtory`` command. + - ``.fastacq``: The ``FASTAcq`` command. + - ``.filesystem``: The ``FILESystem`` command. + - ``.gpibusb``: The ``GPIBUsb`` command tree. + - ``.hardcopy``: The ``HARDCopy`` command. + - ``.hdr``: The ``HDR`` command. + - ``.header``: The ``HEADer`` command. + - ``.histogram``: The ``HIStogram`` command. + - ``.horizontal``: The ``HORizontal`` command. + - ``.id``: The ``ID`` command. + - ``.idn``: The ``*IDN`` command. + - ``.limit``: The ``LIMit`` command. + - ``.linktraining``: The ``LINKTRaining`` command tree. + - ``.lock``: The ``LOCk`` command. + - ``.lrn``: The ``*LRN`` command. + - ``.mark``: The ``MARK`` command. + - ``.mask``: The ``MASK`` command. + - ``.math``: The ``MATH`` command. + - ``.matharbflt``: The ``MATHArbflt`` command tree. + - ``.mathvar``: The ``MATHVAR`` command. + - ``.mch``: The ``MCH`` command tree. + - ``.measurement``: The ``MEASUrement`` command. + - ``.multiscope``: The ``MULTiscope`` command tree. + - ``.newpass``: The ``NEWpass`` command. + - ``.opc``: The ``*OPC`` command. + - ``.opcextended``: The ``OPCEXtended`` command. + - ``.opt``: The ``*OPT`` command. + - ``.password``: The ``PASSWord`` command. + - ``.pcenable``: The ``PCENable`` command. + - ``.psc``: The ``*PSC`` command. + - ``.pud``: The ``*PUD`` command. + - ``.rcl``: The ``*RCL`` command. + - ``.recall``: The ``RECAll`` command tree. + - ``.ref``: The ``REF`` command tree. + - ``.rem``: The ``REM`` command. + - ``.rosc``: The ``ROSc`` command tree. + - ``.rst``: The ``*RST`` command. + - ``.sav``: The ``*SAV`` command. + - ``.save``: The ``SAVe`` command tree. + - ``.saveon``: The ``SAVEON`` command. + - ``.sds``: The ``*SDS`` command. + - ``.search``: The ``SEARCH`` command tree. + - ``.select``: The ``SELect`` command. + - ``.set``: The ``SET`` command. + - ``.setup``: The ``SETUp`` command tree. + - ``.sre``: The ``*SRE`` command. + - ``.stb``: The ``*STB`` command. + - ``.system``: The ``SYSTem`` command tree. + - ``.teklink``: The ``TEKLink`` command tree. + - ``.teksecure``: The ``TEKSecure`` command. + - ``.test``: The ``TEST`` command. + - ``.time``: The ``TIME`` command. + - ``.trg``: The ``*TRG`` command. + - ``.trig``: The ``TRIG`` command tree. + - ``.trigger``: The ``TRIGger`` command. + - ``.tst``: The ``*TST`` command. + - ``.unlock``: The ``UNLock`` command. + - ``.usbtmc``: The ``USBTMC`` command tree. + - ``.verbose``: The ``VERBose`` command. + - ``.visual``: The ``VISual`` command. + - ``.wai``: The ``*WAI`` command. + - ``.wavfrm``: The ``WAVFrm`` command. + - ``.wavfrmstream``: The ``WAVFRMStream`` command. + - ``.wfminpre``: The ``WFMInpre`` command. + - ``.wfmoutpre``: The ``WFMOutpre`` command. + - ``.wfmpre``: The ``WFMPre`` command tree. + - ``.zoom``: The ``ZOOm`` command. + """ + return self._commands diff --git a/src/tm_devices/commands/_mso5kb_commands.py b/src/tm_devices/commands/_mso5kb_commands.py index bea721522..4bb2403bb 100644 --- a/src/tm_devices/commands/_mso5kb_commands.py +++ b/src/tm_devices/commands/_mso5kb_commands.py @@ -10,104 +10,104 @@ from tm_devices.drivers.pi.pi_device import PIDevice from ._5ri0nj_dpomso.bus import Bus -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom from ._53md2e_dpomso.fpanel import Fpanel from ._561g9r_mso.trigger import Trigger -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso5lp_commands.py b/src/tm_devices/commands/_mso5lp_commands.py index 01dd40f00..dcacb044a 100644 --- a/src/tm_devices/commands/_mso5lp_commands.py +++ b/src/tm_devices/commands/_mso5lp_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso6_commands.py b/src/tm_devices/commands/_mso6_commands.py index 4d07e5c5a..fa67e6cd9 100644 --- a/src/tm_devices/commands/_mso6_commands.py +++ b/src/tm_devices/commands/_mso6_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso6b_commands.py b/src/tm_devices/commands/_mso6b_commands.py index 013784e79..87eedd425 100644 --- a/src/tm_devices/commands/_mso6b_commands.py +++ b/src/tm_devices/commands/_mso6b_commands.py @@ -9,22 +9,6 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm from ._e3e9uu_lpdmso.acquire import Acquire from ._e3e9uu_lpdmso.actonevent import Actonevent from ._e3e9uu_lpdmso.application import Application @@ -86,20 +70,36 @@ from ._e3h2zs_lpdmso.vertical import Vertical from ._e3h2zs_lpdmso.wfmoutpre import Wfmoutpre from ._e4de2d_lpdmsomdo.clear import Clear -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock from ._e6lgg1_lpdmsodpomdo.totaluptime import Totaluptime -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt from ._e6606z_lpdmsomdodpo.pause import Pause from ._e6606z_lpdmsomdodpo.rosc import Rosc -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso70kc_commands.py b/src/tm_devices/commands/_mso70kc_commands.py index e0358d12b..2ebdf0f2b 100644 --- a/src/tm_devices/commands/_mso70kc_commands.py +++ b/src/tm_devices/commands/_mso70kc_commands.py @@ -10,103 +10,103 @@ from tm_devices.drivers.pi.pi_device import PIDevice from ._5ri0nj_dpomso.bus import Bus -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav from ._5vmwut_dpodsamso.trigger import Trigger -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_mso70kdx_commands.py b/src/tm_devices/commands/_mso70kdx_commands.py index 48e9007a8..74eda36f9 100644 --- a/src/tm_devices/commands/_mso70kdx_commands.py +++ b/src/tm_devices/commands/_mso70kdx_commands.py @@ -9,104 +9,104 @@ from tm_devices.drivers.pi.pi_device import PIDevice -from ._5uw825_msodpomdodsa.curve import Curve -from ._5uw825_msodpomdodsa.date import Date -from ._5uw825_msodpomdodsa.mathvar import Mathvar -from ._5uw825_msodpomdodsa.save_and_recall import Rcl, Sav -from ._5x02qd_msodpodsa.time import Time -from ._5xwdsk_dpodsamso.counter import Counter from ._5xwdsk_dpodsamso.errordetector import Errordetector -from ._5xwdsk_dpodsamso.linktraining import Linktraining -from ._5xwdsk_dpodsamso.rosc import Rosc -from ._5y90wx_dpodsamso.acquire import Acquire -from ._5y90wx_dpodsamso.allocate import Allocate -from ._5y90wx_dpodsamso.application import Application -from ._5y90wx_dpodsamso.autoset import Autoset -from ._5y90wx_dpodsamso.auxin import Auxin -from ._5y90wx_dpodsamso.auxout import Auxout -from ._5y90wx_dpodsamso.bell import Bell -from ._5y90wx_dpodsamso.calibrate import Calibrate -from ._5y90wx_dpodsamso.ch import Channel -from ._5y90wx_dpodsamso.clear import Clear -from ._5y90wx_dpodsamso.cmdbatch import Cmdbatch -from ._5y90wx_dpodsamso.cq import CqItem -from ._5y90wx_dpodsamso.cursor import Cursor -from ._5y90wx_dpodsamso.curvenext import Curvenext -from ._5y90wx_dpodsamso.curvestream import Curvestream -from ._5y90wx_dpodsamso.custom import Custom -from ._5y90wx_dpodsamso.d import DigitalBit -from ._5y90wx_dpodsamso.data import Data -from ._5y90wx_dpodsamso.delete import Delete -from ._5y90wx_dpodsamso.diag import Diag -from ._5y90wx_dpodsamso.display import Display from ._5y90wx_dpodsamso.dpojet import Dpojet -from ._5y90wx_dpodsamso.email import Email -from ._5y90wx_dpodsamso.export import Export -from ._5y90wx_dpodsamso.fastacq import Fastacq -from ._5y90wx_dpodsamso.filesystem import Filesystem -from ._5y90wx_dpodsamso.gpibusb import Gpibusb -from ._5y90wx_dpodsamso.hardcopy import Hardcopy -from ._5y90wx_dpodsamso.hdr import Hdr -from ._5y90wx_dpodsamso.histogram import Histogram -from ._5y90wx_dpodsamso.horizontal import Horizontal -from ._5y90wx_dpodsamso.limit import Limit -from ._5y90wx_dpodsamso.mark import Mark -from ._5y90wx_dpodsamso.mask import Mask -from ._5y90wx_dpodsamso.math import MathItem -from ._5y90wx_dpodsamso.matharbflt import MatharbfltItem -from ._5y90wx_dpodsamso.mch import MchItem -from ._5y90wx_dpodsamso.measurement import Measurement -from ._5y90wx_dpodsamso.multiscope import Multiscope -from ._5y90wx_dpodsamso.opcextended import Opcextended -from ._5y90wx_dpodsamso.pcenable import Pcenable -from ._5y90wx_dpodsamso.recall import Recall -from ._5y90wx_dpodsamso.ref import RefItem -from ._5y90wx_dpodsamso.save import Save -from ._5y90wx_dpodsamso.save_and_recall import Sds -from ._5y90wx_dpodsamso.saveon import Saveon -from ._5y90wx_dpodsamso.search import Search -from ._5y90wx_dpodsamso.select import Select -from ._5y90wx_dpodsamso.setup_1 import Setup -from ._5y90wx_dpodsamso.system import System -from ._5y90wx_dpodsamso.teklink import Teklink -from ._5y90wx_dpodsamso.test import Test -from ._5y90wx_dpodsamso.trig import Trig -from ._5y90wx_dpodsamso.usbtmc import Usbtmc -from ._5y90wx_dpodsamso.visual import Visual -from ._5y90wx_dpodsamso.wavfrmstream import Wavfrmstream -from ._5y90wx_dpodsamso.wfminpre import Wfminpre -from ._5y90wx_dpodsamso.wfmoutpre import Wfmoutpre -from ._5y90wx_dpodsamso.wfmpre import Wfmpre -from ._5y90wx_dpodsamso.zoom import Zoom from ._5yyb4r_mso.trigger import Trigger -from ._60ea5c_dpodsamso.bus import Bus -from ._e3bgpz_lpdmsodpomdodsa.allev import Allev -from ._e3bgpz_lpdmsodpomdodsa.busy import Busy -from ._e3bgpz_lpdmsodpomdodsa.dese import Dese -from ._e3bgpz_lpdmsodpomdodsa.event import Event -from ._e3bgpz_lpdmsodpomdodsa.evmsg import Evmsg -from ._e3bgpz_lpdmsodpomdodsa.evqty import Evqty -from ._e3bgpz_lpdmsodpomdodsa.factory import Factory -from ._e3bgpz_lpdmsodpomdodsa.id import Id -from ._e3bgpz_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn -from ._e3bgpz_lpdmsodpomdodsa.newpass import Newpass -from ._e3bgpz_lpdmsodpomdodsa.password import Password -from ._e3bgpz_lpdmsodpomdodsa.rem import Rem -from ._e3bgpz_lpdmsodpomdodsa.set import Set -from ._e3bgpz_lpdmsodpomdodsa.status_and_error import Pud -from ._e3bgpz_lpdmsodpomdodsa.teksecure import Teksecure -from ._e3bgpz_lpdmsodpomdodsa.wavfrm import Wavfrm -from ._e5nqsy_lpdmsodpodsa.alias import Alias -from ._e5nqsy_lpdmsodpodsa.header import Header -from ._e5nqsy_lpdmsodpodsa.status_and_error import Psc -from ._e5nqsy_lpdmsodpodsa.verbose import Verbose -from ._e5td2t_lpdmsodpomdodsa.lock import Lock -from ._e5td2t_lpdmsodpomdodsa.unlock import Unlock -from ._e9znur_lpdmsomdodpoafgawgdsa.status_and_error import Opt -from ._ea3vk0_lpdmsodpomdoafgawgdsa.calibration import Cal -from ._ea3vk0_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst -from ._ea3vk0_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai -from ._ecer2i_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._ffz2xs_dpodsamso.bus import Bus +from ._fhrp27_msodpomdodsa.curve import Curve +from ._fhrp27_msodpomdodsa.date import Date +from ._fhrp27_msodpomdodsa.mathvar import Mathvar +from ._fhrp27_msodpomdodsa.save_and_recall import Rcl, Sav +from ._fk3z56_dpodsamso.acquire import Acquire +from ._fk3z56_dpodsamso.allocate import Allocate +from ._fk3z56_dpodsamso.application import Application +from ._fk3z56_dpodsamso.autoset import Autoset +from ._fk3z56_dpodsamso.auxin import Auxin +from ._fk3z56_dpodsamso.auxout import Auxout +from ._fk3z56_dpodsamso.bell import Bell +from ._fk3z56_dpodsamso.calibrate import Calibrate +from ._fk3z56_dpodsamso.ch import Channel +from ._fk3z56_dpodsamso.clear import Clear +from ._fk3z56_dpodsamso.cmdbatch import Cmdbatch +from ._fk3z56_dpodsamso.cq import CqItem +from ._fk3z56_dpodsamso.cursor import Cursor +from ._fk3z56_dpodsamso.curvenext import Curvenext +from ._fk3z56_dpodsamso.curvestream import Curvestream +from ._fk3z56_dpodsamso.custom import Custom +from ._fk3z56_dpodsamso.d import DigitalBit +from ._fk3z56_dpodsamso.data import Data +from ._fk3z56_dpodsamso.delete import Delete +from ._fk3z56_dpodsamso.diag import Diag +from ._fk3z56_dpodsamso.display import Display +from ._fk3z56_dpodsamso.email import Email +from ._fk3z56_dpodsamso.export import Export +from ._fk3z56_dpodsamso.fastacq import Fastacq +from ._fk3z56_dpodsamso.filesystem import Filesystem +from ._fk3z56_dpodsamso.gpibusb import Gpibusb +from ._fk3z56_dpodsamso.hardcopy import Hardcopy +from ._fk3z56_dpodsamso.hdr import Hdr +from ._fk3z56_dpodsamso.histogram import Histogram +from ._fk3z56_dpodsamso.horizontal import Horizontal +from ._fk3z56_dpodsamso.limit import Limit +from ._fk3z56_dpodsamso.mark import Mark +from ._fk3z56_dpodsamso.mask import Mask +from ._fk3z56_dpodsamso.math import MathItem +from ._fk3z56_dpodsamso.matharbflt import MatharbfltItem +from ._fk3z56_dpodsamso.mch import MchItem +from ._fk3z56_dpodsamso.measurement import Measurement +from ._fk3z56_dpodsamso.multiscope import Multiscope +from ._fk3z56_dpodsamso.opcextended import Opcextended +from ._fk3z56_dpodsamso.pcenable import Pcenable +from ._fk3z56_dpodsamso.recall import Recall +from ._fk3z56_dpodsamso.ref import RefItem +from ._fk3z56_dpodsamso.save import Save +from ._fk3z56_dpodsamso.save_and_recall import Sds +from ._fk3z56_dpodsamso.saveon import Saveon +from ._fk3z56_dpodsamso.search import Search +from ._fk3z56_dpodsamso.select import Select +from ._fk3z56_dpodsamso.setup_1 import Setup +from ._fk3z56_dpodsamso.system import System +from ._fk3z56_dpodsamso.teklink import Teklink +from ._fk3z56_dpodsamso.test import Test +from ._fk3z56_dpodsamso.trig import Trig +from ._fk3z56_dpodsamso.usbtmc import Usbtmc +from ._fk3z56_dpodsamso.visual import Visual +from ._fk3z56_dpodsamso.wavfrmstream import Wavfrmstream +from ._fk3z56_dpodsamso.wfminpre import Wfminpre +from ._fk3z56_dpodsamso.wfmoutpre import Wfmoutpre +from ._fk3z56_dpodsamso.wfmpre import Wfmpre +from ._fk3z56_dpodsamso.zoom import Zoom +from ._fkjfe8_msodpodsa.time import Time +from ._fpx9s1_dpodsamso.counter import Counter +from ._fpx9s1_dpodsamso.linktraining import Linktraining +from ._fpx9s1_dpodsamso.rosc import Rosc +from ._ft5uww_lpdmsodpomdoafgawgdsa.calibration import Cal +from ._ft5uww_lpdmsodpomdoafgawgdsa.miscellaneous import Idn, Trg, Tst +from ._ft5uww_lpdmsodpomdoafgawgdsa.status_and_error import Cls, Esr, Opc, Rst, Stb, Wai +from ._fteabn_lpdmsomdodpoafgawgdsa.status_and_error import Opt +from ._fug7nl_lpdmsodpomdoawgdsa.status_and_error import Ese, Sre +from ._fuzvln_lpdmsodpodsa.alias import Alias +from ._fuzvln_lpdmsodpodsa.header import Header +from ._fuzvln_lpdmsodpodsa.status_and_error import Psc +from ._fuzvln_lpdmsodpodsa.verbose import Verbose +from ._fx54ua_lpdmsodpomdodsa.allev import Allev +from ._fx54ua_lpdmsodpomdodsa.busy import Busy +from ._fx54ua_lpdmsodpomdodsa.dese import Dese +from ._fx54ua_lpdmsodpomdodsa.event import Event +from ._fx54ua_lpdmsodpomdodsa.evmsg import Evmsg +from ._fx54ua_lpdmsodpomdodsa.evqty import Evqty +from ._fx54ua_lpdmsodpomdodsa.factory import Factory +from ._fx54ua_lpdmsodpomdodsa.id import Id +from ._fx54ua_lpdmsodpomdodsa.miscellaneous import Ddt, Lrn +from ._fx54ua_lpdmsodpomdodsa.newpass import Newpass +from ._fx54ua_lpdmsodpomdodsa.password import Password +from ._fx54ua_lpdmsodpomdodsa.rem import Rem +from ._fx54ua_lpdmsodpomdodsa.set import Set +from ._fx54ua_lpdmsodpomdodsa.status_and_error import Pud +from ._fx54ua_lpdmsodpomdodsa.teksecure import Teksecure +from ._fx54ua_lpdmsodpomdodsa.wavfrm import Wavfrm +from ._fzn174_lpdmsodpomdodsa.lock import Lock +from ._fzn174_lpdmsodpomdodsa.unlock import Unlock from ._helpers import DefaultDictPassKeyToFactory diff --git a/src/tm_devices/commands/_smu2450_commands.py b/src/tm_devices/commands/_smu2450_commands.py index dbd42978c..af730be71 100644 --- a/src/tm_devices/commands/_smu2450_commands.py +++ b/src/tm_devices/commands/_smu2450_commands.py @@ -1406,7 +1406,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1430,7 +1432,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -1451,7 +1455,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -1473,7 +1479,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -1497,7 +1505,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -1558,7 +1568,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -1583,7 +1595,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -1608,7 +1622,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2460_commands.py b/src/tm_devices/commands/_smu2460_commands.py index c288668dc..5573e69ce 100644 --- a/src/tm_devices/commands/_smu2460_commands.py +++ b/src/tm_devices/commands/_smu2460_commands.py @@ -1463,7 +1463,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1487,7 +1489,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -1508,7 +1512,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -1530,7 +1536,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -1554,7 +1562,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -1615,7 +1625,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -1640,7 +1652,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -1665,7 +1679,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2461_commands.py b/src/tm_devices/commands/_smu2461_commands.py index fd92a8d37..002dd7bb5 100644 --- a/src/tm_devices/commands/_smu2461_commands.py +++ b/src/tm_devices/commands/_smu2461_commands.py @@ -1471,7 +1471,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1495,7 +1497,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -1516,7 +1520,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -1538,7 +1544,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -1562,7 +1570,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -1623,7 +1633,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -1648,7 +1660,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -1673,7 +1687,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2470_commands.py b/src/tm_devices/commands/_smu2470_commands.py index bbde1f5eb..f9e086179 100644 --- a/src/tm_devices/commands/_smu2470_commands.py +++ b/src/tm_devices/commands/_smu2470_commands.py @@ -1407,7 +1407,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -1431,7 +1433,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -1452,7 +1456,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -1474,7 +1480,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -1498,7 +1506,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -1559,7 +1569,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -1584,7 +1596,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -1609,7 +1623,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2601b_commands.py b/src/tm_devices/commands/_smu2601b_commands.py index 86f727fd2..e83476600 100644 --- a/src/tm_devices/commands/_smu2601b_commands.py +++ b/src/tm_devices/commands/_smu2601b_commands.py @@ -2093,7 +2093,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2318,7 +2320,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2339,7 +2343,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2363,7 +2369,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2622,7 +2630,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2644,7 +2654,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2668,7 +2680,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2728,7 +2742,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2753,7 +2769,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2806,7 +2824,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2849,7 +2869,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2874,7 +2896,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2602b_commands.py b/src/tm_devices/commands/_smu2602b_commands.py index 1a8078238..0d3438832 100644 --- a/src/tm_devices/commands/_smu2602b_commands.py +++ b/src/tm_devices/commands/_smu2602b_commands.py @@ -2199,7 +2199,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2424,7 +2426,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2445,7 +2449,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2469,7 +2475,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2728,7 +2736,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2750,7 +2760,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2774,7 +2786,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2834,7 +2848,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2859,7 +2875,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2912,7 +2930,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2955,7 +2975,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2980,7 +3002,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2604b_commands.py b/src/tm_devices/commands/_smu2604b_commands.py index 0554ac10b..1a5796381 100644 --- a/src/tm_devices/commands/_smu2604b_commands.py +++ b/src/tm_devices/commands/_smu2604b_commands.py @@ -1981,7 +1981,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2206,7 +2208,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2227,7 +2231,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2251,7 +2257,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2510,7 +2518,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2532,7 +2542,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2556,7 +2568,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2616,7 +2630,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2641,7 +2657,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2694,7 +2712,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2737,7 +2757,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2762,7 +2784,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2606b_commands.py b/src/tm_devices/commands/_smu2606b_commands.py index b54036c9c..dae7bbe65 100644 --- a/src/tm_devices/commands/_smu2606b_commands.py +++ b/src/tm_devices/commands/_smu2606b_commands.py @@ -2166,7 +2166,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2391,7 +2393,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2412,7 +2416,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2436,7 +2442,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2695,7 +2703,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2717,7 +2727,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2741,7 +2753,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2801,7 +2815,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2826,7 +2842,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2879,7 +2897,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2922,7 +2942,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2947,7 +2969,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2611b_commands.py b/src/tm_devices/commands/_smu2611b_commands.py index 566edec2c..e46568cec 100644 --- a/src/tm_devices/commands/_smu2611b_commands.py +++ b/src/tm_devices/commands/_smu2611b_commands.py @@ -2090,7 +2090,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2315,7 +2317,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2336,7 +2340,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2360,7 +2366,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2619,7 +2627,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2641,7 +2651,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2665,7 +2677,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2725,7 +2739,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2750,7 +2766,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2803,7 +2821,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2846,7 +2866,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2871,7 +2893,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2612b_commands.py b/src/tm_devices/commands/_smu2612b_commands.py index ea0c25590..707f597fd 100644 --- a/src/tm_devices/commands/_smu2612b_commands.py +++ b/src/tm_devices/commands/_smu2612b_commands.py @@ -2196,7 +2196,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2421,7 +2423,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2442,7 +2446,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2466,7 +2472,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2725,7 +2733,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2747,7 +2757,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2771,7 +2783,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2831,7 +2845,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2856,7 +2872,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2909,7 +2927,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2952,7 +2972,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2977,7 +2999,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2614b_commands.py b/src/tm_devices/commands/_smu2614b_commands.py index 68d636381..f324749c2 100644 --- a/src/tm_devices/commands/_smu2614b_commands.py +++ b/src/tm_devices/commands/_smu2614b_commands.py @@ -1978,7 +1978,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2203,7 +2205,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2224,7 +2228,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2248,7 +2254,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2507,7 +2515,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2529,7 +2539,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2553,7 +2565,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2613,7 +2627,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2638,7 +2654,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2691,7 +2709,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2734,7 +2754,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2759,7 +2781,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2634b_commands.py b/src/tm_devices/commands/_smu2634b_commands.py index 86a5c2b07..f6db9a5a9 100644 --- a/src/tm_devices/commands/_smu2634b_commands.py +++ b/src/tm_devices/commands/_smu2634b_commands.py @@ -1980,7 +1980,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2205,7 +2207,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2226,7 +2230,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2250,7 +2256,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2509,7 +2517,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2531,7 +2541,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2555,7 +2567,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2615,7 +2629,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2640,7 +2656,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2693,7 +2711,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2736,7 +2756,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2761,7 +2783,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2635b_commands.py b/src/tm_devices/commands/_smu2635b_commands.py index 6c68ae751..408c26849 100644 --- a/src/tm_devices/commands/_smu2635b_commands.py +++ b/src/tm_devices/commands/_smu2635b_commands.py @@ -2092,7 +2092,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2317,7 +2319,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2338,7 +2342,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2362,7 +2368,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2621,7 +2629,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2643,7 +2653,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2667,7 +2679,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2727,7 +2741,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2752,7 +2768,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2805,7 +2823,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2848,7 +2868,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2873,7 +2895,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2636b_commands.py b/src/tm_devices/commands/_smu2636b_commands.py index 946608ddd..58ebe6675 100644 --- a/src/tm_devices/commands/_smu2636b_commands.py +++ b/src/tm_devices/commands/_smu2636b_commands.py @@ -2198,7 +2198,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2423,7 +2425,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2444,7 +2448,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2468,7 +2474,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2727,7 +2735,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2749,7 +2759,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2773,7 +2785,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2833,7 +2847,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2858,7 +2874,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2911,7 +2929,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2954,7 +2974,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2979,7 +3001,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2651a_commands.py b/src/tm_devices/commands/_smu2651a_commands.py index 9de557243..672955a52 100644 --- a/src/tm_devices/commands/_smu2651a_commands.py +++ b/src/tm_devices/commands/_smu2651a_commands.py @@ -2128,7 +2128,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2152,7 +2154,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2173,7 +2177,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2197,7 +2203,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2348,7 +2356,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2370,7 +2380,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2394,7 +2406,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2454,7 +2468,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2479,7 +2495,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2532,7 +2550,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2575,7 +2595,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2600,7 +2622,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_smu2657a_commands.py b/src/tm_devices/commands/_smu2657a_commands.py index ef0f08f66..9c20749eb 100644 --- a/src/tm_devices/commands/_smu2657a_commands.py +++ b/src/tm_devices/commands/_smu2657a_commands.py @@ -2127,7 +2127,9 @@ def query_pulse_config(self, tag: int) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"print(QueryPulseConfig({tag}))") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"print(QueryPulseConfig({tag}))" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``QueryPulseConfig()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -2151,7 +2153,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -2172,7 +2176,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -2196,7 +2202,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2347,7 +2355,9 @@ def meminfo(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(meminfo())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(meminfo())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``meminfo()`` function." raise NoDeviceProvidedError(msg) from error @@ -2369,7 +2379,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -2393,7 +2405,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -2453,7 +2467,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -2478,7 +2494,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -2531,7 +2549,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -2574,7 +2594,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -2599,7 +2621,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/commands/_ss3706a_commands.py b/src/tm_devices/commands/_ss3706a_commands.py index 8a8febeea..a8f351d86 100644 --- a/src/tm_devices/commands/_ss3706a_commands.py +++ b/src/tm_devices/commands/_ss3706a_commands.py @@ -791,7 +791,9 @@ def createconfigscript(self, script_name: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f'createconfigscript("{script_name}")') # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f'createconfigscript("{script_name}")' + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``createconfigscript()`` function." # noqa: E501 raise NoDeviceProvidedError(msg) from error @@ -815,7 +817,9 @@ def delay(self, seconds: int) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"delay({seconds})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"delay({seconds})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``delay()`` function." raise NoDeviceProvidedError(msg) from error @@ -836,7 +840,9 @@ def exit(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("exit()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "exit()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``exit()`` function." raise NoDeviceProvidedError(msg) from error @@ -860,7 +866,9 @@ def gettimezone(self) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query("print(gettimezone())") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + "print(gettimezone())" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``gettimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -942,7 +950,9 @@ def opc(self) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write("opc()") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + "opc()" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``opc()`` function." raise NoDeviceProvidedError(msg) from error @@ -966,7 +976,9 @@ def print(self, value: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"print({value})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"print({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``print()`` function." raise NoDeviceProvidedError(msg) from error @@ -1027,7 +1039,9 @@ def printnumber(self, value: str) -> str: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - return self._device.query(f"printnumber({value})") # type: ignore[union-attr] + return self._device.query( # type: ignore[union-attr] + f"printnumber({value})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``printnumber()`` function." raise NoDeviceProvidedError(msg) from error @@ -1052,7 +1066,9 @@ def reset(self, system: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (system,) if x is not None) - self._device.write(f"reset({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"reset({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``reset()`` function." raise NoDeviceProvidedError(msg) from error @@ -1076,7 +1092,9 @@ def settime(self, time: str) -> None: tm_devices.commands.NoDeviceProvidedError: Indicates that no device connection exists. """ try: - self._device.write(f"settime({time})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settime({time})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settime()`` function." raise NoDeviceProvidedError(msg) from error @@ -1119,7 +1137,9 @@ def settimezone( ) if x is not None ) - self._device.write(f"settimezone({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"settimezone({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``settimezone()`` function." raise NoDeviceProvidedError(msg) from error @@ -1144,7 +1164,9 @@ def waitcomplete(self, group: Optional[str] = None) -> None: """ try: function_args = ", ".join(str(x) for x in (group,) if x is not None) - self._device.write(f"waitcomplete({function_args})") # type: ignore[union-attr] + self._device.write( # type: ignore[union-attr] + f"waitcomplete({function_args})" + ) except AttributeError as error: msg = "No TSPDevice object was provided, unable to run the ``waitcomplete()`` function." raise NoDeviceProvidedError(msg) from error diff --git a/src/tm_devices/driver_mixins/licensed_mixin.py b/src/tm_devices/driver_mixins/licensed_mixin.py index 58dc1e0a0..b7136e50d 100644 --- a/src/tm_devices/driver_mixins/licensed_mixin.py +++ b/src/tm_devices/driver_mixins/licensed_mixin.py @@ -1,14 +1,14 @@ """A mixin class providing common methods and attributes for devices with installable licenses.""" - from abc import ABC, abstractmethod -from functools import cached_property from typing import final, Tuple +from tm_devices.helpers import ReadOnlyCachedProperty + class LicensedMixin(ABC): """A mixin class which adds methods and properties for handling licenses.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def license_list(self) -> Tuple[str, ...]: """Return the list of licenses installed on the device.""" diff --git a/src/tm_devices/driver_mixins/usb_drives_mixin.py b/src/tm_devices/driver_mixins/usb_drives_mixin.py index f743fde33..1b9d18e23 100644 --- a/src/tm_devices/driver_mixins/usb_drives_mixin.py +++ b/src/tm_devices/driver_mixins/usb_drives_mixin.py @@ -1,15 +1,15 @@ """A mixin class providing common methods and attributes for devices with usb ports.""" - from abc import ABC, abstractmethod -from functools import cached_property from typing import Tuple +from tm_devices.helpers import ReadOnlyCachedProperty + # pylint: disable=too-few-public-methods class USBDrivesMixin(ABC): """A mixin class which adds the usb_drives property.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def usb_drives(self) -> Tuple[str, ...]: """Return a list of all connected USB drives.""" diff --git a/src/tm_devices/drivers/api/rest_api/margin_testers/margin_tester.py b/src/tm_devices/drivers/api/rest_api/margin_testers/margin_tester.py index 53d17590f..20a8854a5 100644 --- a/src/tm_devices/drivers/api/rest_api/margin_testers/margin_tester.py +++ b/src/tm_devices/drivers/api/rest_api/margin_testers/margin_tester.py @@ -3,7 +3,6 @@ import time from abc import ABC, abstractmethod -from functools import cached_property from typing import Any, Dict, Mapping, MutableMapping, Tuple from packaging.version import Version @@ -11,7 +10,7 @@ from tm_devices.drivers.api.rest_api.rest_api_device import RESTAPIDevice from tm_devices.drivers.device import family_base_class -from tm_devices.helpers import DeviceConfigEntry, DeviceTypes +from tm_devices.helpers import DeviceConfigEntry, DeviceTypes, ReadOnlyCachedProperty @family_base_class @@ -37,22 +36,22 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: ################################################################################################ # Abstract Cached Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty @abstractmethod def adapter(self) -> str: """Return the device's connected adapter.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def fpga_version(self) -> Version: """Return the fpga version of the device.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def fw_version(self) -> Version: """Return the firmware version of the device.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def supported_technologies(self) -> Tuple[str, ...]: """Return the device's supported technologies.""" diff --git a/src/tm_devices/drivers/api/rest_api/margin_testers/tmt4.py b/src/tm_devices/drivers/api/rest_api/margin_testers/tmt4.py index ef185f55f..5b06690f4 100644 --- a/src/tm_devices/drivers/api/rest_api/margin_testers/tmt4.py +++ b/src/tm_devices/drivers/api/rest_api/margin_testers/tmt4.py @@ -1,14 +1,13 @@ """TMT4 series device driver module.""" import time -from functools import cached_property from types import MappingProxyType from typing import Any, cast, Dict, Optional, Tuple from packaging.version import Version from tm_devices.drivers.api.rest_api.margin_testers.margin_tester import MarginTester -from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty class TMT4(MarginTester): @@ -43,12 +42,12 @@ def __init__(self, config_entry: DeviceConfigEntry, verbose: bool) -> None: ################################################################################################ # Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty def adapter(self) -> str: """Return the device's connected adapter.""" return self._about_info["adapter"] - @cached_property + @ReadOnlyCachedProperty def fpga_version(self) -> Version: """Return the fpga version of the device.""" # This key can return strings indicating a reboot is needed instead of Versions. @@ -57,7 +56,7 @@ def fpga_version(self) -> Version: except ValueError: return Version("0") - @cached_property + @ReadOnlyCachedProperty def fw_version(self) -> Version: """Return the firmware version of the device.""" # This key can (also) return strings indicating a reboot is needed instead of Versions. @@ -66,12 +65,12 @@ def fw_version(self) -> Version: except ValueError: return Version("0") - @cached_property + @ReadOnlyCachedProperty def manufacturer(self) -> str: """Return the manufacturer of the device.""" return self._about_info["manufacturer"] - @cached_property + @ReadOnlyCachedProperty def model(self) -> str: """Return the full model of the device.""" return self._about_info["model"] @@ -81,17 +80,17 @@ def port(self) -> Optional[int]: """Return the configured device port, defaults to 5000.""" return super().port or 5000 - @cached_property + @ReadOnlyCachedProperty def serial(self) -> str: """Return the serial number of the device.""" return self._about_info["serialNumber"] - @cached_property + @ReadOnlyCachedProperty def supported_technologies(self) -> Tuple[str, ...]: """Return the device's supported technologies.""" return tuple(self._about_info["supportedTechnologies"].split(",")) - @cached_property + @ReadOnlyCachedProperty def sw_version(self) -> Version: """Return the software version of the device.""" return Version(self._about_info["sw_version"]) diff --git a/src/tm_devices/drivers/device.py b/src/tm_devices/drivers/device.py index c66e1b56f..190182ca9 100644 --- a/src/tm_devices/drivers/device.py +++ b/src/tm_devices/drivers/device.py @@ -25,6 +25,7 @@ DeviceConfigEntry, get_timestamp_string, print_with_timestamp, + ReadOnlyCachedProperty, ) _T = TypeVar("_T") @@ -99,22 +100,22 @@ def __str__(self) -> str: ################################################################################################ # Abstract Cached Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty @abstractmethod def manufacturer(self) -> str: """Return the manufacturer of the device.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def model(self) -> str: """Return the full model of the device.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def serial(self) -> str: """Return the serial number of the device.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def sw_version(self) -> Version: """Return the software version of the device.""" @@ -266,7 +267,7 @@ def port(self) -> Optional[int]: """Return the device port, or None if the device doesn't have a port.""" return self._config_entry.lan_port - @cached_property + @ReadOnlyCachedProperty def series(self) -> str: """Return the series of the device. @@ -283,7 +284,7 @@ def verbose(self) -> bool: ################################################################################################ # Cached Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty def hostname(self) -> str: """Return the hostname of the device or an empty string if unable to fetch that.""" if self._config_entry.connection_type not in {ConnectionTypes.USB}: @@ -294,7 +295,7 @@ def hostname(self) -> str: pass return "" - @cached_property + @ReadOnlyCachedProperty def ip_address(self) -> str: """Return the IPv4 address of the device or an empty string if unable to fetch that.""" if self._config_entry.connection_type not in {ConnectionTypes.USB}: diff --git a/src/tm_devices/drivers/pi/data_acquisition_systems/daq6510.py b/src/tm_devices/drivers/pi/data_acquisition_systems/daq6510.py index 91e386561..e3496d085 100644 --- a/src/tm_devices/drivers/pi/data_acquisition_systems/daq6510.py +++ b/src/tm_devices/drivers/pi/data_acquisition_systems/daq6510.py @@ -1,5 +1,4 @@ """DAQ6510 device driver module.""" -from functools import cached_property from typing import Tuple import pyvisa as visa @@ -9,7 +8,7 @@ from tm_devices.drivers.pi.data_acquisition_systems.data_acquisition_system import ( DataAcquisitionSystem, ) -from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty class DAQ6510(DAQ6510Mixin, DataAcquisitionSystem): @@ -48,7 +47,7 @@ def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds # type: ignore - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/pi/pi_device.py b/src/tm_devices/drivers/pi/pi_device.py index 5d8446624..1774d8860 100644 --- a/src/tm_devices/drivers/pi/pi_device.py +++ b/src/tm_devices/drivers/pi/pi_device.py @@ -7,7 +7,6 @@ from abc import ABC, abstractmethod from contextlib import contextmanager -from functools import cached_property from typing import final, Generator, Optional, Sequence, Tuple, Union import pyvisa as visa @@ -26,6 +25,7 @@ get_visa_backend, print_with_timestamp, PYVISA_PY_BACKEND, + ReadOnlyCachedProperty, ) from tm_devices.helpers.constants_and_dataclasses import UNIT_TEST_TIMEOUT @@ -81,7 +81,7 @@ def __init__( def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" - @cached_property + @ReadOnlyCachedProperty @abstractmethod def total_channels(self) -> int: """Return the total number of channels (all types).""" @@ -185,7 +185,7 @@ def visa_resource(self) -> visa.resources.MessageBasedResource: ################################################################################################ # Cached Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty def sw_version(self) -> Version: """Return the software version of the device.""" id_string_parts = self.idn_string.split(",") @@ -202,27 +202,27 @@ def sw_version(self) -> Version: retval = get_version(sw_version) return retval - @cached_property + @ReadOnlyCachedProperty def idn_string(self) -> str: r"""Return the string returned from the ``*IDN?`` query when the device was created.""" return self.ieee_cmds.idn() - @cached_property + @ReadOnlyCachedProperty def manufacturer(self) -> str: """Return the manufacturer of the device.""" return self.idn_string.split(",")[0].strip() - @cached_property + @ReadOnlyCachedProperty def model(self) -> str: """Return the full model of the device.""" return self.idn_string.split(",")[1].strip() - @cached_property + @ReadOnlyCachedProperty def serial(self) -> str: """Return the serial number of the device.""" return self.idn_string.split(",")[2].strip() - @cached_property + @ReadOnlyCachedProperty def series(self) -> str: """Return the series of the device. @@ -231,7 +231,7 @@ def series(self) -> str: """ return get_model_series(self.model) - @cached_property + @ReadOnlyCachedProperty def visa_backend(self) -> str: """Return the VISA backend in use.""" return get_visa_backend(self._visa_resource.visalib.library_path.path) diff --git a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2200.py b/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2200.py index 4c60dd199..ecdf8348d 100644 --- a/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2200.py +++ b/src/tm_devices/drivers/pi/power_supplies/psu2200/psu2200.py @@ -1,12 +1,11 @@ """2200 Base device driver for the 22xx family of power supplies.""" -from functools import cached_property from typing import Tuple from packaging.version import Version from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.power_supplies.power_supply import PowerSupplyUnit -from tm_devices.helpers import get_version +from tm_devices.helpers import get_version, ReadOnlyCachedProperty @family_base_class @@ -25,7 +24,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" return tuple(f"SOURCE{x+1}" for x in range(self.total_channels)) - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return max(1, int(self.model[2])) if self.model[2].isdecimal() else 1 @@ -33,7 +32,7 @@ def total_channels(self) -> int: ################################################################################################ # Public Methods ################################################################################################ - @cached_property + @ReadOnlyCachedProperty def fpga_version(self) -> Version: """Return the fpga version of the device.""" id_string_parts = self.idn_string.split(",") diff --git a/src/tm_devices/drivers/pi/scopes/scope.py b/src/tm_devices/drivers/pi/scopes/scope.py index 8ce00eefe..6236bc17e 100644 --- a/src/tm_devices/drivers/pi/scopes/scope.py +++ b/src/tm_devices/drivers/pi/scopes/scope.py @@ -2,11 +2,10 @@ import inspect from abc import ABC -from functools import cached_property from typing import Any, List, Optional, Tuple, Union from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.helpers import DeviceTypes +from tm_devices.helpers import DeviceTypes, ReadOnlyCachedProperty class Scope(PIDevice, ABC): @@ -37,7 +36,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" return tuple(f"CH{x+1}" for x in range(self.total_channels)) - @cached_property + @ReadOnlyCachedProperty def opt_string(self) -> str: r"""Return the string returned from the ``*OPT?`` query when the device was created.""" return self.ieee_cmds.opt() diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/mso2.py b/src/tm_devices/drivers/pi/scopes/tekscope/mso2.py index a0a583d57..1f9aa6e47 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/mso2.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope/mso2.py @@ -1,12 +1,11 @@ """MSO2 device driver module.""" -from functools import cached_property from typing import Tuple import pyvisa as visa from tm_devices.commands import MSO2Mixin from tm_devices.drivers.pi.scopes.tekscope.tekscope import TekScope -from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty class MSO2(MSO2Mixin, TekScope): @@ -50,7 +49,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: retval = (*retval[:-1], "DCH1") return retval - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" retval = super().total_channels diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py b/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py index 03af9b22d..4a79ed10e 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope/tekscope.py @@ -4,7 +4,6 @@ from abc import ABC from dataclasses import dataclass -from functools import cached_property from types import MappingProxyType from typing import Any, cast, Dict, List, Literal, Optional, Tuple, Type, Union @@ -38,7 +37,7 @@ from tm_devices.driver_mixins.usb_drives_mixin import USBDrivesMixin from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.helpers import DeviceConfigEntry, SignalSourceFunctionsIAFG +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty, SignalSourceFunctionsIAFG from tm_devices.helpers.constants_and_dataclasses import UNIT_TEST_TIMEOUT @@ -121,7 +120,7 @@ def __init__( ################################################################################################ # Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty def channel(self) -> "MappingProxyType[str, TekScopeChannel]": """Mapping of channel names to any detectable properties, attributes, and settings.""" # TODO: overwrite in MSO2 driver, would remove need for try-except @@ -186,12 +185,12 @@ def commands( """Return the device commands.""" return self._commands # pragma: no cover - @cached_property + @ReadOnlyCachedProperty def hostname(self) -> str: """Return the hostname of the device or an empty string if unable to fetch that.""" return self.query(":ETHERNET:NAME?", verbose=False, remove_quotes=True) - @cached_property + @ReadOnlyCachedProperty def license_list(self) -> Tuple[str, ...]: """Return the list of license AppIDs installed on the scope.""" license_list = self.query( @@ -210,7 +209,7 @@ def source_device_constants(self) -> TekScopeSourceDeviceConstants: """Return the device constants.""" return self._DEVICE_CONSTANTS - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" try: @@ -218,7 +217,7 @@ def total_channels(self) -> int: except ValueError: return 0 - @cached_property + @ReadOnlyCachedProperty def usb_drives(self) -> Tuple[str, ...]: """Return a list of all connected USB drives.""" # Find all USB drives connected to the device diff --git a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopesw.py b/src/tm_devices/drivers/pi/scopes/tekscope/tekscopesw.py index cf83929c4..3d87ba5bd 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope/tekscopesw.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope/tekscopesw.py @@ -1,11 +1,10 @@ """TEKSCOPESW device driver module.""" -from functools import cached_property from typing import Any import pyvisa as visa from tm_devices.drivers.pi.scopes.tekscope.tekscope import TekScope -from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty class TekScopeSW(TekScope): @@ -48,7 +47,7 @@ def commands(self) -> Any: """Return the device commands.""" return self._commands - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return 0 diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3.py b/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3.py index 55d3443de..480145546 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/mdo3.py @@ -1,11 +1,9 @@ """MDO3 device driver module.""" -from functools import cached_property - import pyvisa as visa from tm_devices.commands import MDO3Mixin from tm_devices.drivers.pi.scopes.tekscope_3k_4k.tekscope_3k_4k import TekScope3k4k -from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty class MDO3(MDO3Mixin, TekScope3k4k): @@ -32,7 +30,7 @@ def __init__( ################################################################################################ # Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return int(self.model[-1]) diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/tekscope_3k_4k.py b/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/tekscope_3k_4k.py index 85f6773e9..56748e0bb 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/tekscope_3k_4k.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope_3k_4k/tekscope_3k_4k.py @@ -1,9 +1,9 @@ """Base TekScope3k4k scope device driver module.""" from abc import ABC -from functools import cached_property from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.scopes.scope import Scope +from tm_devices.helpers import ReadOnlyCachedProperty @family_base_class @@ -18,12 +18,12 @@ class TekScope3k4k(Scope, ABC): # Properties ################################################################################################ - @cached_property + @ReadOnlyCachedProperty def hostname(self) -> str: """Return the hostname of the device or an empty string if unable to fetch that.""" return self.query(":ETHERNET:NAME?", verbose=False, remove_quotes=True) - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return int(self.model[6]) diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5k.py b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5k.py index 86b00b97e..b88c4ff33 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5k.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo5k.py @@ -1,8 +1,9 @@ """DPO5K device driver module.""" +from tm_devices.commands import DPO5KMixin from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -class DPO5K(TekScope5k7k70k): +class DPO5K(DPO5KMixin, TekScope5k7k70k): """DPO5K device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7k.py b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7k.py index 555bf1b86..ebfe91bd5 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7k.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/dpo7k.py @@ -1,8 +1,9 @@ """DPO7K device driver module.""" +from tm_devices.commands import DPO7KMixin from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -class DPO7K(TekScope5k7k70k): +class DPO7K(DPO7KMixin, TekScope5k7k70k): """DPO7K device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5k.py b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5k.py index c671d7762..0f52a6b83 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5k.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/mso5k.py @@ -1,8 +1,9 @@ """MSO5K device driver module.""" +from tm_devices.commands import MSO5KMixin from tm_devices.drivers.pi.scopes.tekscope_5k_7k_70k.tekscope_5k_7k_70k import TekScope5k7k70k -class MSO5K(TekScope5k7k70k): +class MSO5K(MSO5KMixin, TekScope5k7k70k): """MSO5K device driver.""" ################################################################################################ diff --git a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py index 28d7e029c..4d2225454 100644 --- a/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py +++ b/src/tm_devices/drivers/pi/scopes/tekscope_5k_7k_70k/tekscope_5k_7k_70k.py @@ -1,12 +1,11 @@ """Base TekScope5k7k70k scope device driver module.""" from abc import ABC -from functools import cached_property import pyvisa as visa from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.scopes.scope import Scope -from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty @family_base_class @@ -50,7 +49,7 @@ def num_dig_bits_in_ch(self) -> int: # TODO: should be part of self.channel return self._num_dig_bits_in_ch - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return self._total_channels diff --git a/src/tm_devices/drivers/pi/signal_sources/afgs/afg.py b/src/tm_devices/drivers/pi/signal_sources/afgs/afg.py index 6724d5560..4a62029be 100644 --- a/src/tm_devices/drivers/pi/signal_sources/afgs/afg.py +++ b/src/tm_devices/drivers/pi/signal_sources/afgs/afg.py @@ -3,13 +3,12 @@ from abc import ABC from dataclasses import dataclass -from functools import cached_property from typing import Literal, Type from tm_devices.driver_mixins.signal_generator_mixin import SourceDeviceConstants from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.signal_sources.signal_source import SignalSource -from tm_devices.helpers import DeviceTypes, SignalSourceFunctionsAFG +from tm_devices.helpers import DeviceTypes, ReadOnlyCachedProperty, SignalSourceFunctionsAFG @dataclass(frozen=True) @@ -33,7 +32,7 @@ def source_device_constants(self) -> AFGSourceDeviceConstants: """Return the device constants.""" return self._DEVICE_CONSTANTS # type: ignore - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" if match := re.match(r"AFG\d+(\d)", self.model): @@ -80,6 +79,7 @@ def generate_waveform( # noqa: C901, PLR0913 # pyright: ignore[reportIncompati # Generate the waveform on the given channel for channel_name in self._validate_channels(channel): # grab the number(s) in the channel name + # noinspection PyTypeChecker channel_num = "".join(filter(str.isdigit, channel_name)) # Temporarily turn off this channel self.set_and_check(f"OUTPUT{channel_num}:STATE", 0) @@ -125,7 +125,7 @@ def generate_waveform( # noqa: C901, PLR0913 # pyright: ignore[reportIncompati self.write("*TRG") # Initiate a phase sync (between CH 1 and CH 2 output waveforms on two channel AFGs) elif ( - self.total_channels > 1 + self.total_channels > 1 # pylint: disable=comparison-with-callable and function != SignalSourceFunctionsAFG.DC and not burst_state ): diff --git a/src/tm_devices/drivers/pi/signal_sources/awgs/awg.py b/src/tm_devices/drivers/pi/signal_sources/awgs/awg.py index 58e62164f..4577842ff 100644 --- a/src/tm_devices/drivers/pi/signal_sources/awgs/awg.py +++ b/src/tm_devices/drivers/pi/signal_sources/awgs/awg.py @@ -5,13 +5,12 @@ from abc import ABC from dataclasses import dataclass -from functools import cached_property from typing import Literal, Type from tm_devices.driver_mixins.signal_generator_mixin import SourceDeviceConstants from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.signal_sources.signal_source import SignalSource -from tm_devices.helpers import DeviceTypes, SignalSourceFunctionsAWG +from tm_devices.helpers import DeviceTypes, ReadOnlyCachedProperty, SignalSourceFunctionsAWG @dataclass(frozen=True) @@ -39,7 +38,7 @@ def source_device_constants(self) -> AWGSourceDeviceConstants: """Return the device constants.""" return self._DEVICE_CONSTANTS # type: ignore - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return int(self.query("AWGControl:CONFigure:CNUMber?", verbose=False)) diff --git a/src/tm_devices/drivers/pi/signal_sources/signal_source.py b/src/tm_devices/drivers/pi/signal_sources/signal_source.py index 7306bd916..4bda52eeb 100644 --- a/src/tm_devices/drivers/pi/signal_sources/signal_source.py +++ b/src/tm_devices/drivers/pi/signal_sources/signal_source.py @@ -3,12 +3,11 @@ Sources include PI devices such as AFGs and AWGs. """ from abc import ABC, abstractmethod -from functools import cached_property from typing import Tuple, Union from tm_devices.driver_mixins.signal_generator_mixin import SignalGeneratorMixin from tm_devices.drivers.pi.pi_device import PIDevice -from tm_devices.helpers import print_with_timestamp +from tm_devices.helpers import print_with_timestamp, ReadOnlyCachedProperty class SignalSource(PIDevice, SignalGeneratorMixin, ABC): @@ -22,7 +21,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" return tuple(f"SOURCE{x+1}" for x in range(self.total_channels)) - @cached_property + @ReadOnlyCachedProperty def opt_string(self) -> str: r"""Return the string returned from the ``*OPT?`` query when the device was created.""" return self.ieee_cmds.opt() diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_interactive.py b/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_interactive.py index 9ee6c913c..add8212ab 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_interactive.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_interactive.py @@ -1,7 +1,5 @@ """SMU2400Interactive device driver module.""" - from abc import ABC -from functools import cached_property from typing import Tuple, Union from tm_devices.commands import ( @@ -13,6 +11,7 @@ from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi._ieee488_2_commands import LegacyTSPIEEE4882Commands from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.helpers import ReadOnlyCachedProperty @family_base_class @@ -45,7 +44,7 @@ def ieee_cmds(self) -> LegacyTSPIEEE4882Commands: """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds # type: ignore - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_standard.py b/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_standard.py index 5eadb1d29..24f2f1a8c 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_standard.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu2400/smu2400_standard.py @@ -2,7 +2,6 @@ from __future__ import annotations from abc import ABC -from functools import cached_property from typing import Optional, Tuple, TYPE_CHECKING, Union from tm_devices.drivers.device import family_base_class @@ -10,6 +9,7 @@ from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.drivers.pi.signal_sources.signal_source import SignalSource from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.helpers import ReadOnlyCachedProperty if TYPE_CHECKING: import os @@ -38,7 +38,7 @@ def ieee_cmds(self) -> IEEE4882Commands: # pyright: ignore [reportIncompatibleM """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu2600/smu2600.py b/src/tm_devices/drivers/pi/source_measure_units/smu2600/smu2600.py index de012b8aa..191faffa8 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu2600/smu2600.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu2600/smu2600.py @@ -2,7 +2,6 @@ import string from abc import ABC -from functools import cached_property from typing import Tuple, Union from tm_devices.commands import ( @@ -22,6 +21,7 @@ ) from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.helpers import ReadOnlyCachedProperty @family_base_class @@ -38,9 +38,9 @@ class SMU2600(SourceMeasureUnit, ABC): @property def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" - return tuple(string.ascii_lowercase[: self.total_channels]) + return tuple(string.ascii_lowercase[: self.total_channels]) # pylint: disable=invalid-slice-index - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" # Grab the total channel count based on whether the last digit in the model is even/odd diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu6000/smu6000.py b/src/tm_devices/drivers/pi/source_measure_units/smu6000/smu6000.py index 24477eb9c..4b589f41b 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu6000/smu6000.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu6000/smu6000.py @@ -4,7 +4,6 @@ import inspect from abc import ABC -from functools import cached_property from typing import Optional, Tuple, TYPE_CHECKING, Union from tm_devices.drivers.device import family_base_class @@ -12,6 +11,7 @@ from tm_devices.drivers.pi.pi_device import PIDevice from tm_devices.drivers.pi.signal_sources.signal_source import SignalSource from tm_devices.drivers.pi.source_measure_units.source_measure_unit import SourceMeasureUnit +from tm_devices.helpers import ReadOnlyCachedProperty if TYPE_CHECKING: import os @@ -40,7 +40,7 @@ def ieee_cmds(self) -> IEEE4882Commands: # pyright: ignore [reportIncompatibleM """Return an internal class containing methods for the standard IEEE 488.2 command set.""" return self._ieee_cmds - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return 1 diff --git a/src/tm_devices/drivers/pi/systems_switches/ss3706a.py b/src/tm_devices/drivers/pi/systems_switches/ss3706a.py index 5b4f73295..6d6ed739d 100644 --- a/src/tm_devices/drivers/pi/systems_switches/ss3706a.py +++ b/src/tm_devices/drivers/pi/systems_switches/ss3706a.py @@ -1,7 +1,6 @@ """SS3706A device driver module.""" import inspect -from functools import cached_property from typing import Tuple import pyvisa as visa @@ -9,7 +8,7 @@ from tm_devices.commands import SS3706AMixin from tm_devices.drivers.device import family_base_class from tm_devices.drivers.pi.systems_switches.systems_switch import SystemsSwitch -from tm_devices.helpers import DeviceConfigEntry +from tm_devices.helpers import DeviceConfigEntry, ReadOnlyCachedProperty @family_base_class @@ -42,7 +41,7 @@ def all_channel_names_list(self) -> Tuple[str, ...]: """Return a tuple containing all the channel names.""" return tuple(f"{x+1}" for x in range(self.total_channels)) - @cached_property + @ReadOnlyCachedProperty def total_channels(self) -> int: """Return the total number of channels (all types).""" return 576 diff --git a/src/tm_devices/helpers/__init__.py b/src/tm_devices/helpers/__init__.py index 38c0f229c..ad59ca6f7 100644 --- a/src/tm_devices/helpers/__init__.py +++ b/src/tm_devices/helpers/__init__.py @@ -38,6 +38,7 @@ print_with_timestamp, sanitize_enum, ) +from tm_devices.helpers.read_only_cached_property import ReadOnlyCachedProperty from tm_devices.helpers.singleton_metaclass import Singleton from tm_devices.helpers.standalone_functions import validate_address @@ -73,6 +74,7 @@ "VALID_DEVICE_CONNECTION_TYPES", "validate_address", "VISA_RESOURCE_EXPRESSION_REGEX", + "ReadOnlyCachedProperty", "SignalSourceFunctionBase", "SignalSourceFunctionsAWG", "SignalSourceFunctionsAFG", diff --git a/src/tm_devices/helpers/alias_dict.py b/src/tm_devices/helpers/alias_dict.py index a69c23e32..c3edfd83b 100644 --- a/src/tm_devices/helpers/alias_dict.py +++ b/src/tm_devices/helpers/alias_dict.py @@ -3,10 +3,12 @@ from typing import Any, Dict, MutableMapping, Type +# TODO: Once Python 3.8 is no longer supported, the dynamic parent class can be removed # pylint: disable=unsubscriptable-object,useless-suppression ParentDictClass: Type[Dict[Any, Any]] = dict if sys.version_info < (3, 9) else dict[Any, Any] +# TODO: Once Python 3.8 is no longer supported, replace the parent class with `dict[Any, Any]` class AliasDict(ParentDictClass): """A custom dictionary class that supports aliases as secondary keys. diff --git a/src/tm_devices/helpers/read_only_cached_property.py b/src/tm_devices/helpers/read_only_cached_property.py new file mode 100644 index 000000000..3541c5a40 --- /dev/null +++ b/src/tm_devices/helpers/read_only_cached_property.py @@ -0,0 +1,68 @@ +"""A read-only version of functools.cached_property.""" +import contextlib + +from functools import cached_property +from typing import TypeVar + +_T = TypeVar("_T") + +# TODO: Remove the pragmas and exception block when support for Python 3.8 is dropped +try: # pragma: py-lt-39 + # pylint: disable=unsubscriptable-object,useless-suppression + class ReadOnlyCachedProperty(cached_property[_T]): # pyright: ignore[reportGeneralTypeIssues] + """An implementation of cached_property that is read-only. + + Examples: + >>> from tm_devices.helpers import ReadOnlyCachedProperty + >>> class ClassWithReadOnlyCachedProperty: + ... @ReadOnlyCachedProperty + ... def c(self) -> str: + ... return "cached value" + """ + + def __set__(self, instance: object, value: _T) -> None: + """Raise an AttributeError when trying to set the property since it is read-only. + + Raises: + AttributeError: Indicates that the property is read-only. + """ + msg = f"{self.attrname} is a read-only attribute" + raise AttributeError(msg) + + def __delete__(self, instance: object) -> None: + """Implement the __delete__ method to enable resetting the cache.""" + cache = instance.__dict__ + # Delete the attribute from the cache, ignoring KeyErrors since that just means the + # attribute already doesn't exist and therefore doesn't need to be deleted. + with contextlib.suppress(KeyError): + del cache[self.attrname] # pyright: ignore[reportGeneralTypeIssues] + +except TypeError: # pragma: py-gte-39 + # pylint: disable=unsubscriptable-object,useless-suppression + class ReadOnlyCachedProperty(cached_property): # pyright: ignore[reportMissingTypeArgument] + """An implementation of cached_property that is read-only. + + Examples: + >>> from tm_devices.helpers import ReadOnlyCachedProperty + >>> class ClassWithReadOnlyCachedProperty: + ... @ReadOnlyCachedProperty + ... def c(self) -> str: + ... return "cached value" + """ + + def __set__(self, instance: object, value: _T) -> None: # pyright: ignore[reportInvalidTypeVarUse] + """Raise an AttributeError when trying to set the property since it is read-only. + + Raises: + AttributeError: Indicates that the property is read-only. + """ + msg = f"{self.attrname} is a read-only attribute" + raise AttributeError(msg) + + def __delete__(self, instance: object) -> None: + """Implement the __delete__ method to enable resetting the cache.""" + cache = instance.__dict__ + # Delete the attribute from the cache, ignoring KeyErrors since that just means the + # attribute already doesn't exist and therefore doesn't need to be deleted. + with contextlib.suppress(KeyError): + del cache[self.attrname] # pyright: ignore[reportGeneralTypeIssues] diff --git a/tests/requirements.txt b/tests/requirements.txt index 53039fa9c..9051b18db 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,3 +1,4 @@ +coverage-conditional-plugin coverage[toml]>=7.2.2 http_server_mock pytest-cov diff --git a/tests/test_afgs.py b/tests/test_afgs.py index 8cf16466f..a48c14689 100644 --- a/tests/test_afgs.py +++ b/tests/test_afgs.py @@ -127,16 +127,10 @@ def test_afg31k(device_manager: DeviceManager, capsys: pytest.CaptureFixture[str # Check hostname assert afg31k.hostname == "AFG31K-HOSTNAME" - # Change hostname to test the reset of cached properties - afg31k.hostname = "temp-hostname" - assert afg31k.hostname == "temp-hostname" # simulate a reboot afg31k.reboot() - # Test that the cached property was reset - assert afg31k.hostname == "AFG31K-HOSTNAME" - stdout = capsys.readouterr().out assert "SYSTem:RESTart" in stdout diff --git a/tests/test_helpers.py b/tests/test_helpers.py index fb725dec1..921fff1e8 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -1,13 +1,14 @@ # pyright: reportPrivateUsage=none """Tests for the helpers subpackage.""" import datetime +import random import socket from collections import OrderedDict from contextlib import redirect_stdout from io import StringIO from subprocess import CalledProcessError, SubprocessError -from typing import Any, Dict, Optional, Tuple +from typing import Any, ClassVar, Dict, List, Optional, Tuple from unittest import mock import pytest @@ -32,6 +33,7 @@ get_visa_backend, ping_address, print_with_timestamp, + ReadOnlyCachedProperty, sanitize_enum, SupportedModels, VALID_DEVICE_CONNECTION_TYPES, @@ -456,3 +458,35 @@ def test_get_version_error() -> None: get_version("1a.2.3.abc") with pytest.raises(InvalidVersion): get_version("invalid-version") + + +def test_read_only_cached_property() -> None: + """Verify the implementation of the read-only cached_property decorator.""" + + # pylint: disable=missing-class-docstring,missing-function-docstring,too-few-public-methods + class ClassWithReadOnlyCachedProperty: + counter = 0 + previous_values: ClassVar[List[int]] = [] + + @ReadOnlyCachedProperty + def c(self) -> int: + self.counter += 1 + while True: + if (val := random.randint(1, 1_000_000)) not in self.previous_values: # noqa: S311 + self.previous_values.append(val) + return val + + instance = ClassWithReadOnlyCachedProperty() + val_1 = instance.c + assert instance.counter == 1 + val_2 = instance.c + assert instance.counter == 1 + assert val_1 == val_2 + + with pytest.raises(AttributeError): + instance.c = -1234 + assert instance.c == val_1 + assert instance.counter == 1 + del instance.c + assert instance.c != val_1 + assert instance.counter == 2 diff --git a/tests/test_rest_api_device.py b/tests/test_rest_api_device.py index 5fa1c4332..04b1a787e 100644 --- a/tests/test_rest_api_device.py +++ b/tests/test_rest_api_device.py @@ -1,6 +1,5 @@ # pyright: reportPrivateUsage=none """Unit tests for rest_api_device.py.""" -from functools import cached_property from types import MappingProxyType from unittest import mock @@ -12,6 +11,7 @@ from mock_server import INDEX_RESPONSE, PORT from tm_devices.drivers.api.rest_api.rest_api_device import RESTAPIDevice, SupportedRequestTypes from tm_devices.drivers.device import family_base_class +from tm_devices.helpers import ReadOnlyCachedProperty from tm_devices.helpers.constants_and_dataclasses import DeviceConfigEntry from tm_devices.helpers.enums import ConnectionTypes, DeviceTypes @@ -47,22 +47,22 @@ def _open(self) -> bool: def _reboot(self) -> None: """Perform the actual rebooting code.""" - @cached_property + @ReadOnlyCachedProperty def manufacturer(self) -> str: """Return the manufacturer of the device.""" return "foo" - @cached_property + @ReadOnlyCachedProperty def model(self) -> str: """Return the full model of the device.""" return "bar" - @cached_property + @ReadOnlyCachedProperty def serial(self) -> str: """Return the serial number of the device.""" return "123" - @cached_property + @ReadOnlyCachedProperty def sw_version(self) -> Version: """Return the software version of the device.""" return Version("0")