Source code for rsrtx.Implementations.Power.Report.Test

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


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TestCls:
	"""
	| Commands in total: 11
	| Subgroups: 6
	| Direct child commands: 5
	"""

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

	@property
	def directory(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_directory'):
			from .Directory import DirectoryCls
			self._directory = DirectoryCls(self._core, self._cmd_group)
		return self._directory

	@property
	def lsend(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_lsend'):
			from .Lsend import LsendCls
			self._lsend = LsendCls(self._core, self._cmd_group)
		return self._lsend

	@property
	def comment(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_comment'):
			from .Comment import CommentCls
			self._comment = CommentCls(self._core, self._cmd_group)
		return self._comment

	@property
	def insert(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_insert'):
			from .Insert import InsertCls
			self._insert = InsertCls(self._core, self._cmd_group)
		return self._insert

	@property
	def remove(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_remove'):
			from .Remove import RemoveCls
			self._remove = RemoveCls(self._core, self._cmd_group)
		return self._remove

	@property
	def count(self):
		"""
		| Commands in total: 1
		| Subgroups: 0
		| Direct child commands: 1
		"""
		if not hasattr(self, '_count'):
			from .Count import CountCls
			self._count = CountCls(self._core, self._cmd_group)
		return self._count

	# noinspection PyTypeChecker
[docs] def get_dsea(self) -> enums.PwrReportResultMeasType: """ ``POWer:REPort:TEST:DSEA`` \n Snippet: ``value: enums.PwrReportResultMeasType = driver.power.report.test.get_dsea()`` \n Manage the selection of reports. :return: meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ response = self._core.io.query_str('POWer:REPort:TEST:DSEA?') return Conversions.str_to_scalar_enum(response, enums.PwrReportResultMeasType)
[docs] def set_dsea(self, meas_type: enums.PwrReportResultMeasType) -> None: """ ``POWer:REPort:TEST:DSEA`` \n Snippet: ``driver.power.report.test.set_dsea(meas_type = enums.PwrReportResultMeasType.DONR)`` \n Manage the selection of reports. :param meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ param = Conversions.enum_scalar_to_str(meas_type, enums.PwrReportResultMeasType) self._core.io.write(f'POWer:REPort:TEST:DSEA {param}')
# noinspection PyTypeChecker
[docs] def get_sea(self) -> enums.PwrReportResultMeasType: """ ``POWer:REPort:TEST:SEA`` \n Snippet: ``value: enums.PwrReportResultMeasType = driver.power.report.test.get_sea()`` \n Manage the selection of reports. :return: meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ response = self._core.io.query_str('POWer:REPort:TEST:SEA?') return Conversions.str_to_scalar_enum(response, enums.PwrReportResultMeasType)
[docs] def set_sea(self, meas_type: enums.PwrReportResultMeasType) -> None: """ ``POWer:REPort:TEST:SEA`` \n Snippet: ``driver.power.report.test.set_sea(meas_type = enums.PwrReportResultMeasType.DONR)`` \n Manage the selection of reports. :param meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ param = Conversions.enum_scalar_to_str(meas_type, enums.PwrReportResultMeasType) self._core.io.write(f'POWer:REPort:TEST:SEA {param}')
# noinspection PyTypeChecker
[docs] def get_ise(self) -> enums.PwrReportResultMeasType: """ ``POWer:REPort:TEST:ISE`` \n Snippet: ``value: enums.PwrReportResultMeasType = driver.power.report.test.get_ise()`` \n Manage the selection of reports. :return: meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ response = self._core.io.query_str('POWer:REPort:TEST:ISE?') return Conversions.str_to_scalar_enum(response, enums.PwrReportResultMeasType)
[docs] def set_ise(self, meas_type: enums.PwrReportResultMeasType) -> None: """ ``POWer:REPort:TEST:ISE`` \n Snippet: ``driver.power.report.test.set_ise(meas_type = enums.PwrReportResultMeasType.DONR)`` \n Manage the selection of reports. :param meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ param = Conversions.enum_scalar_to_str(meas_type, enums.PwrReportResultMeasType) self._core.io.write(f'POWer:REPort:TEST:ISE {param}')
# noinspection PyTypeChecker
[docs] def get_rse(self) -> enums.PwrReportResultMeasType: """ ``POWer:REPort:TEST:RSE`` \n Snippet: ``value: enums.PwrReportResultMeasType = driver.power.report.test.get_rse()`` \n Manage the selection of reports. :return: meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ response = self._core.io.query_str('POWer:REPort:TEST:RSE?') return Conversions.str_to_scalar_enum(response, enums.PwrReportResultMeasType)
[docs] def set_rse(self, meas_type: enums.PwrReportResultMeasType) -> None: """ ``POWer:REPort:TEST:RSE`` \n Snippet: ``driver.power.report.test.set_rse(meas_type = enums.PwrReportResultMeasType.DONR)`` \n Manage the selection of reports. :param meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ param = Conversions.enum_scalar_to_str(meas_type, enums.PwrReportResultMeasType) self._core.io.write(f'POWer:REPort:TEST:RSE {param}')
[docs] def set_add(self, meas_type: enums.PwrReportResultMeasType) -> None: """ ``POWer:REPort:TEST:ADD`` \n Snippet: ``driver.power.report.test.set_add(meas_type = enums.PwrReportResultMeasType.DONR)`` \n Manage reports. :param meas_type: QUAL | RUSH | HARM | MODU | DONR | SLEW | SOA | TURN | SWIT | EFF | RIPP | TRANS | SPEC \n - QUAL: Power Quality - RUSH: Inrush Current - HARM: Current Harmonic - MODU: Modulation Analysis - DONR: Dynamic ON Resistance - SLEW: Slew Rate - SOA: Safe Operating Area (S.O.A.) - TURN: Turn On/Off - SWIT: Switching Loss - EFF: Power Efficiency - RIPP: Ripple - TRANS: Transient Response - SPEC: Spectrum """ param = Conversions.enum_scalar_to_str(meas_type, enums.PwrReportResultMeasType) self._core.io.write(f'POWer:REPort:TEST:ADD {param}')
def clone(self) -> 'TestCls': """ Clones the group by creating new object from it and its whole existing subgroups. Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group. """ new_group = TestCls(self._core, self._cmd_group.parent) self._cmd_group.synchronize_repcaps(new_group) return new_group