Source code for RsSmw.Implementations.Source.Bb.Wlay.Pconfig.Psk

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


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

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

[docs] def get_state(self) -> bool: """ ``[SOURce<HW>]:BB:WLAY:PCONfig:PSK:STATe`` \n Snippet: ``value: bool = driver.source.bb.wlay.pconfig.psk.get_state()`` \n Activates Pi/2-8PSK modulation. If activated, the bit in the Pi/2-8-PSK Applied field is 1. If deactivated, applies Pi/2-16QAM modulation. The bit in the Pi/2-8-PSK Applied field is 0. :return: psk_state: 1 | ON | 0| OFF """ response = self._core.io.query_str('SOURce<HwInstance>:BB:WLAY:PCONfig:PSK:STATe?') return Conversions.str_to_bool(response)
[docs] def set_state(self, psk_state: bool) -> None: """ ``[SOURce<HW>]:BB:WLAY:PCONfig:PSK:STATe`` \n Snippet: ``driver.source.bb.wlay.pconfig.psk.set_state(psk_state = False)`` \n Activates Pi/2-8PSK modulation. If activated, the bit in the Pi/2-8-PSK Applied field is 1. If deactivated, applies Pi/2-16QAM modulation. The bit in the Pi/2-8-PSK Applied field is 0. :param psk_state: 1 | ON | 0| OFF """ param = Conversions.bool_to_str(psk_state) self._core.io.write(f'SOURce<HwInstance>:BB:WLAY:PCONfig:PSK:STATe {param}')