Source code for RsSmbv.Implementations.Source.Pulm.Internal.Train.Trigger.Immediate
from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class ImmediateCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("immediate", core, parent)
[docs]
def perform(self) -> None:
"""
``[SOURce]:PULM:[INTernal]:[TRAin]:TRIGger:IMMediate`` \n
Snippet: ``driver.source.pulm.internal.train.trigger.immediate.perform()`` \n
If method ``RsSmbv.source.pulm.trigger.mode()`` SINGle, triggers the pulse generator.
"""
self._core.io.write(f'SOURce:PULM:INTernal:TRAin:TRIGger:IMMediate')
[docs]
def perform_with_opc(self, opc_timeout_ms: int = -1) -> None:
"""
``[SOURce]:PULM:[INTernal]:[TRAin]:TRIGger:IMMediate`` \n
Snippet: ``driver.source.pulm.internal.train.trigger.immediate.perform_with_opc()`` \n
If method ``RsSmbv.source.pulm.trigger.mode()`` SINGle, triggers the pulse generator.
Same as perform, but waits for the operation to complete before continuing further. Use the RsSmbv.utilities.opc_timeout_set() to set the timeout value.
:param opc_timeout_ms: Maximum time to wait in milliseconds, valid only for this call.
"""
self._core.io.write_with_opc(f'SOURce:PULM:INTernal:TRAin:TRIGger:IMMediate', opc_timeout_ms)