from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class VideoCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("video", core, parent)
[docs]
def set(self, level: float) -> None:
"""
``TRIGger[:SEQuence]:LEVel:VIDeo`` \n
Snippet: ``driver.trigger.sequence.level.video.set(level = 1.0)`` \n
Defines the level the video signal must exceed to cause a trigger event. Note that any RF attenuation or preamplification
is considered when the trigger level is analyzed.
:param level: Range: 0 PCT to 100 PCT, Unit: PCT
"""
param = Conversions.decimal_value_to_str(level)
self._core.io.write(f'TRIGger:SEQuence:LEVel:VIDeo {param}')
[docs]
def get(self) -> float:
"""
``TRIGger[:SEQuence]:LEVel:VIDeo`` \n
Snippet: ``value: float = driver.trigger.sequence.level.video.get()`` \n
Defines the level the video signal must exceed to cause a trigger event. Note that any RF attenuation or preamplification
is considered when the trigger level is analyzed.
:return: level: Range: 0 PCT to 100 PCT, Unit: PCT
"""
response = self._core.io.query_str(f'TRIGger:SEQuence:LEVel:VIDeo?')
return Conversions.str_to_float(response)