Source code for RsSmw.Implementations.Source.Bb.Dvb.Dvbh.Sample

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions


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

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

[docs] def get_length(self) -> int: """ ``[SOURce<HW>]:BB:DVB:DVBH:SAMPle:LENGth`` \n Snippet: ``value: int = driver.source.bb.dvb.dvbh.sample.get_length()`` \n Queries the number of the transmitted samples. :return: length: integer """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBH:SAMPle:LENGth?') return Conversions.str_to_int(response)
[docs] def get_rate(self) -> float: """ ``[SOURce<HW>]:BB:DVB:DVBH:SAMPle:RATE`` \n Snippet: ``value: float = driver.source.bb.dvb.dvbh.sample.get_rate()`` \n Queries the sample rate. :return: rate: float """ response = self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBH:SAMPle:RATE?') return Conversions.str_to_float(response)