from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions
from ... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class PulseCls:
"""
| Commands in total: 4
| Subgroups: 0
| Direct child commands: 4
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("pulse", core, parent)
# noinspection PyTypeChecker
[docs]
def get_reference(self) -> enums.SignalSource:
"""
``TDRT:PULSe:REFerence`` \n
Snippet: ``value: enums.SignalSource = driver.tdrt.pulse.get_reference()`` \n
Sets the channel to which the Ref connector of the pulse source is connected.
"""
response = self._core.io.query_str_with_opc('TDRT:PULSe:REFerence?')
return Conversions.str_to_scalar_enum(response, enums.SignalSource)
[docs]
def set_reference(self, pulse_source_ref: enums.SignalSource) -> None:
"""
``TDRT:PULSe:REFerence`` \n
Snippet: ``driver.tdrt.pulse.set_reference(pulse_source_ref = enums.SignalSource.AJ1)`` \n
Sets the channel to which the Ref connector of the pulse source is connected.
:param pulse_source_ref: C1W1 | C2W1 | C3W1 | C4W1
"""
param = Conversions.enum_scalar_to_str(pulse_source_ref, enums.SignalSource)
self._core.io.write_with_opc(f'TDRT:PULSe:REFerence {param}')
# noinspection PyTypeChecker
[docs]
def get_out(self) -> enums.SignalSource:
"""
``TDRT:PULSe:OUT`` \n
Snippet: ``value: enums.SignalSource = driver.tdrt.pulse.get_out()`` \n
Sets the channel to which the Out connector of the pulse source is connected via calibration standard or DUT.
"""
response = self._core.io.query_str_with_opc('TDRT:PULSe:OUT?')
return Conversions.str_to_scalar_enum(response, enums.SignalSource)
[docs]
def set_out(self, pulse_source_out: enums.SignalSource) -> None:
"""
``TDRT:PULSe:OUT`` \n
Snippet: ``driver.tdrt.pulse.set_out(pulse_source_out = enums.SignalSource.AJ1)`` \n
Sets the channel to which the Out connector of the pulse source is connected via calibration standard or DUT.
:param pulse_source_out: C1W1 | C2W1 | C3W1 | C4W1
"""
param = Conversions.enum_scalar_to_str(pulse_source_out, enums.SignalSource)
self._core.io.write_with_opc(f'TDRT:PULSe:OUT {param}')
# noinspection PyTypeChecker
[docs]
def get_inv_out(self) -> enums.SignalSource:
"""
``TDRT:PULSe:INVout`` \n
Snippet: ``value: enums.SignalSource = driver.tdrt.pulse.get_inv_out()`` \n
Sets the channel to which the connector of the pulse source is connected via calibration standard or DUT. Only required
for differential measurements.
"""
response = self._core.io.query_str_with_opc('TDRT:PULSe:INVout?')
return Conversions.str_to_scalar_enum(response, enums.SignalSource)
[docs]
def set_inv_out(self, pls_src_out_invert: enums.SignalSource) -> None:
"""
``TDRT:PULSe:INVout`` \n
Snippet: ``driver.tdrt.pulse.set_inv_out(pls_src_out_invert = enums.SignalSource.AJ1)`` \n
Sets the channel to which the connector of the pulse source is connected via calibration standard or DUT. Only required
for differential measurements.
:param pls_src_out_invert: C1W1 | C2W1 | C3W1 | C4W1
"""
param = Conversions.enum_scalar_to_str(pls_src_out_invert, enums.SignalSource)
self._core.io.write_with_opc(f'TDRT:PULSe:INVout {param}')
# noinspection PyTypeChecker
[docs]
def get_inv_reference(self) -> enums.SignalSource:
"""
``TDRT:PULSe:INVReference`` \n
Snippet: ``value: enums.SignalSource = driver.tdrt.pulse.get_inv_reference()`` \n
Sets the channel to which the connector of the pulse source is connected. Only required for differential measurements.
"""
response = self._core.io.query_str_with_opc('TDRT:PULSe:INVReference?')
return Conversions.str_to_scalar_enum(response, enums.SignalSource)
[docs]
def set_inv_reference(self, pls_src_ref_invert: enums.SignalSource) -> None:
"""
``TDRT:PULSe:INVReference`` \n
Snippet: ``driver.tdrt.pulse.set_inv_reference(pls_src_ref_invert = enums.SignalSource.AJ1)`` \n
Sets the channel to which the connector of the pulse source is connected. Only required for differential measurements.
:param pls_src_ref_invert: C1W1 | C2W1 | C3W1 | C4W1
"""
param = Conversions.enum_scalar_to_str(pls_src_ref_invert, enums.SignalSource)
self._core.io.write_with_opc(f'TDRT:PULSe:INVReference {param}')