Source code for RsFsw.Implementations.Applications.K60_Transient.Trace.Iq.File.Repetition.Count

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


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

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

[docs] def set(self, repetition_count: float) -> None: """ ``TRACe:IQ:FILE:REPetition:COUNt`` \n Snippet: ``driver.applications.k60Transient.trace.iq.file.repetition.count.set(repetition_count = 1.0)`` \n Determines how often the data stream is repeatedly copied in the I/Q data memory. If the available memory is not sufficient for the specified number of repetitions, the largest possible number of complete data streams is used. :param repetition_count: integer """ param = Conversions.decimal_value_to_str(repetition_count) self._core.io.write(f'TRACe:IQ:FILE:REPetition:COUNt {param}')
[docs] def get(self) -> float: """ ``TRACe:IQ:FILE:REPetition:COUNt`` \n Snippet: ``value: float = driver.applications.k60Transient.trace.iq.file.repetition.count.get()`` \n Determines how often the data stream is repeatedly copied in the I/Q data memory. If the available memory is not sufficient for the specified number of repetitions, the largest possible number of complete data streams is used. :return: repetition_count: integer """ response = self._core.io.query_str(f'TRACe:IQ:FILE:REPetition:COUNt?') return Conversions.str_to_float(response)