Source code for rsrtx.Implementations.Digital.Technology

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums
from ... import repcap


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TechnologyCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("technology", core, parent)

[docs] def set(self, technology: enums.BusTechnology, digitalNull=repcap.DigitalNull.Default) -> None: """ ``DIGital<*>:TECHnology`` \n Snippet: ``driver.digital.technology.set(technology = enums.BusTechnology.CUSTom, digitalNull = repcap.DigitalNull.Default)`` \n Selects the threshold voltage for various types of integrated circuits and applies it to all digital channels. The setting affects only the settings of the first MSO bus (Bus1) . You can set the technology value for all buses with method ``RsRtx.bus.parallel.technology.set()`` . :param technology: See method ``RsRtx.bus.parallel.technology.set()`` :param digitalNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Digital') """ param = Conversions.enum_scalar_to_str(technology, enums.BusTechnology) digitalNull_cmd_val = self._cmd_group.get_repcap_cmd_value(digitalNull, repcap.DigitalNull) self._core.io.write(f'DIGital{digitalNull_cmd_val}:TECHnology {param}')
# noinspection PyTypeChecker
[docs] def get(self, digitalNull=repcap.DigitalNull.Default) -> enums.BusTechnology: """ ``DIGital<*>:TECHnology`` \n Snippet: ``value: enums.BusTechnology = driver.digital.technology.get(digitalNull = repcap.DigitalNull.Default)`` \n Selects the threshold voltage for various types of integrated circuits and applies it to all digital channels. The setting affects only the settings of the first MSO bus (Bus1) . You can set the technology value for all buses with method ``RsRtx.bus.parallel.technology.set()`` . :param digitalNull: optional repeated capability selector. Default value: Nr0 (settable in the interface 'Digital') :return: technology: See method ``RsRtx.bus.parallel.technology.set()`` """ digitalNull_cmd_val = self._cmd_group.get_repcap_cmd_value(digitalNull, repcap.DigitalNull) response = self._core.io.query_str(f'DIGital{digitalNull_cmd_val}:TECHnology?') return Conversions.str_to_scalar_enum(response, enums.BusTechnology)