[docs]classTriggerCls:"""Trigger commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("trigger",core,parent)# noinspection PyTypeChecker
[docs]defget_source(self)->enums.TranRecTrigSour:"""SCPI: [SOURce<HW>]:BB:GRAPhics:TRIGger:SOURce \n Snippet: value: enums.TranRecTrigSour = driver.source.bb.graphics.trigger.get_source() \n Defines the trigger for the starting time of the graphic recording. \n :return: source: SOFTware| MARKer """response=self._core.io.query_str('SOURce<HwInstance>:BB:GRAPhics:TRIGger:SOURce?')returnConversions.str_to_scalar_enum(response,enums.TranRecTrigSour)
[docs]defset_source(self,source:enums.TranRecTrigSour)->None:"""SCPI: [SOURce<HW>]:BB:GRAPhics:TRIGger:SOURce \n Snippet: driver.source.bb.graphics.trigger.set_source(source = enums.TranRecTrigSour.MARKer) \n Defines the trigger for the starting time of the graphic recording. \n :param source: SOFTware| MARKer """param=Conversions.enum_scalar_to_str(source,enums.TranRecTrigSour)self._core.io.write(f'SOURce<HwInstance>:BB:GRAPhics:TRIGger:SOURce {param}')