Source code for RsFsw.Implementations.Applications.K14x_Nr5G.Configure.Settings.Nr5G.Pinterval

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


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

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

[docs] def set(self, time: float) -> None: """ ``CONFigure:SETTings:NR5G:PINTerval`` \n Snippet: ``driver.applications.k14Xnr5G.configure.settings.nr5G.pinterval.set(time = 1.0)`` \n Defines the polling interval for periodic synchronization between analyzer and generator. Prerequisites for this command \n - IP connection to a signal generator. - Generator control state is on (method ``RsFsw.applications.k18AmplifierEt.configure.generator.control.state.set()`` ) . - Periodic synchronization is on (method ``RsFsw.applications.k14Xnr5G.configure.settings.nr5G.sync.set()`` ) . :param time: Unit: s """ param = Conversions.decimal_value_to_str(time) self._core.io.write(f'CONFigure:SETTings:NR5G:PINTerval {param}')
[docs] def get(self) -> float: """ ``CONFigure:SETTings:NR5G:PINTerval`` \n Snippet: ``value: float = driver.applications.k14Xnr5G.configure.settings.nr5G.pinterval.get()`` \n Defines the polling interval for periodic synchronization between analyzer and generator. Prerequisites for this command \n - IP connection to a signal generator. - Generator control state is on (method ``RsFsw.applications.k18AmplifierEt.configure.generator.control.state.set()`` ) . - Periodic synchronization is on (method ``RsFsw.applications.k14Xnr5G.configure.settings.nr5G.sync.set()`` ) . :return: time: Unit: s """ response = self._core.io.query_str(f'CONFigure:SETTings:NR5G:PINTerval?') return Conversions.str_to_float(response)