Source code for rsmxo.Implementations.Status.Questionable.Pll

from typing import List

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


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

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

	# noinspection PyTypeChecker
[docs] def get_condition(self) -> List[enums.StatusQuestionPll]: """ ``STATus:QUEStionable:PLL:CONDition`` \n Snippet: ``value: List[enums.StatusQuestionPll] = driver.status.questionable.pll.get_condition()`` \n Returns the contents of the CONDition part of the status register to check for questionable instrument or measurement states. This part contains information on the action currently being performed in the instrument. Reading the CONDition registers does not delete the contents since it indicates the current hardware status. :return: value: bit dependent, comma-separated values """ response = self._core.io.query_str('STATus:QUEStionable:PLL:CONDition?') return Conversions.str_to_list_enum(response, enums.StatusQuestionPll)
# noinspection PyTypeChecker
[docs] def get_enable(self) -> List[enums.StatusQuestionPll]: """ ``STATus:QUEStionable:PLL:ENABle`` \n Snippet: ``value: List[enums.StatusQuestionPll] = driver.status.questionable.pll.get_enable()`` \n Sets the ENABle part that allows true conditions in the EVENt part to be reported for the summary bit in the status byte. These events can be used for a service request. If a bit in the ENABle part is 1, and the corresponding EVENt bit is true, a positive transition occurs in the summary bit. This transition is reported to the next higher level. See Table 'Source values for STATus:QUEStionable:...:[:EVENt] and STATus:QUEStionable:...:[:ENABLe]' for a list of the return values. :return: value: bit dependent, comma-separated values """ response = self._core.io.query_str('STATus:QUEStionable:PLL:ENABle?') return Conversions.str_to_list_enum(response, enums.StatusQuestionPll)
[docs] def set_enable(self, value: List[enums.StatusQuestionPll]) -> None: """ ``STATus:QUEStionable:PLL:ENABle`` \n Snippet: ``driver.status.questionable.pll.set_enable(value = [StatusQuestionPll.PLL100, StatusQuestionPll.PLL100])`` \n Sets the ENABle part that allows true conditions in the EVENt part to be reported for the summary bit in the status byte. These events can be used for a service request. If a bit in the ENABle part is 1, and the corresponding EVENt bit is true, a positive transition occurs in the summary bit. This transition is reported to the next higher level. See Table 'Source values for STATus:QUEStionable:...:[:EVENt] and STATus:QUEStionable:...:[:ENABLe]' for a list of the return values. :param value: bit dependent, comma-separated values """ param = Conversions.enum_list_to_str(value, enums.StatusQuestionPll) self._core.io.write(f'STATus:QUEStionable:PLL:ENABle {param}')
# noinspection PyTypeChecker
[docs] def get_event(self) -> List[enums.StatusQuestionPll]: """ ``STATus:QUEStionable:PLL[:EVENt]`` \n Snippet: ``value: List[enums.StatusQuestionPll] = driver.status.questionable.pll.get_event()`` \n Returns the contents of the EVENt part of the status register to check if an event has occurred since the last reading. Reading an EVENt register deletes its contents. :return: value: bit dependent, comma-separated values """ response = self._core.io.query_str('STATus:QUEStionable:PLL:EVENt?') return Conversions.str_to_list_enum(response, enums.StatusQuestionPll)
# noinspection PyTypeChecker
[docs] def get_ntransition(self) -> List[enums.StatusQuestionPll]: """ ``STATus:QUEStionable:PLL:NTRansition`` \n Snippet: ``value: List[enums.StatusQuestionPll] = driver.status.questionable.pll.get_ntransition()`` \n Sets the negative transition filter. If a bit is set, a transition from 1 to 0 in the condition part causes an entry to be made in the corresponding bit of the EVENt part of the register. :return: value: Source dependent, comma-separated values """ response = self._core.io.query_str('STATus:QUEStionable:PLL:NTRansition?') return Conversions.str_to_list_enum(response, enums.StatusQuestionPll)
[docs] def set_ntransition(self, value: List[enums.StatusQuestionPll]) -> None: """ ``STATus:QUEStionable:PLL:NTRansition`` \n Snippet: ``driver.status.questionable.pll.set_ntransition(value = [StatusQuestionPll.PLL100, StatusQuestionPll.PLL100])`` \n Sets the negative transition filter. If a bit is set, a transition from 1 to 0 in the condition part causes an entry to be made in the corresponding bit of the EVENt part of the register. :param value: Source dependent, comma-separated values """ param = Conversions.enum_list_to_str(value, enums.StatusQuestionPll) self._core.io.write(f'STATus:QUEStionable:PLL:NTRansition {param}')
# noinspection PyTypeChecker
[docs] def get_ptransition(self) -> List[enums.StatusQuestionPll]: """ ``STATus:QUEStionable:PLL:PTRansition`` \n Snippet: ``value: List[enums.StatusQuestionPll] = driver.status.questionable.pll.get_ptransition()`` \n Sets the positive transition filter. If a bit is set, a transition from 0 to 1 in the condition part causes an entry to be made in the corresponding bit of the EVENt part of the register. :return: value: Source dependent, comma-separated values """ response = self._core.io.query_str('STATus:QUEStionable:PLL:PTRansition?') return Conversions.str_to_list_enum(response, enums.StatusQuestionPll)
[docs] def set_ptransition(self, value: List[enums.StatusQuestionPll]) -> None: """ ``STATus:QUEStionable:PLL:PTRansition`` \n Snippet: ``driver.status.questionable.pll.set_ptransition(value = [StatusQuestionPll.PLL100, StatusQuestionPll.PLL100])`` \n Sets the positive transition filter. If a bit is set, a transition from 0 to 1 in the condition part causes an entry to be made in the corresponding bit of the EVENt part of the register. :param value: Source dependent, comma-separated values """ param = Conversions.enum_list_to_str(value, enums.StatusQuestionPll) self._core.io.write(f'STATus:QUEStionable:PLL:PTRansition {param}')
[docs] def set_rcondition(self, value: List[enums.StatusQuestionPll]) -> None: """ ``STATus:QUEStionable:PLL:RCONdition`` \n Snippet: ``driver.status.questionable.pll.set_rcondition(value = [StatusQuestionPll.PLL100, StatusQuestionPll.PLL100])`` \n Reset condition, allows to continue after an PLL unlock of the external reference. :param value: PLL100 """ param = Conversions.enum_list_to_str(value, enums.StatusQuestionPll) self._core.io.write(f'STATus:QUEStionable:PLL:RCONdition {param}')