[docs]classTriggerCls:"""Trigger commands group definition. 3 total commands, 1 Subgroups, 2 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("trigger",core,parent)@propertydefimmediate(self):"""immediate commands group. 0 Sub-classes, 1 commands."""ifnothasattr(self,'_immediate'):from.ImmediateimportImmediateClsself._immediate=ImmediateCls(self._core,self._cmd_group)returnself._immediate# noinspection PyTypeChecker
[docs]defget_mode(self)->enums.BlerTrigMode:"""SCPI: BERT:TRIGger:MODE \n Snippet: value: enums.BlerTrigMode = driver.bert.trigger.get_mode() \n Selects the type of measurement. \n :return: polarity: AUTO| SINGle AUTO Continuous measurement. Terminates the measurement in progress if one or both termination criteria are met. Delays the restart of a new measurement until the first measurement result has been queried. The resulting brief measurement interruption is irrelevant because the subsequent measurement is synchronized within 24 data bits. SINGle Single measurement, started with method RsSmw.Bert.Trigger.Immediate.set | method RsSmw.Bler.Trigger.Immediate.set. """response=self._core.io.query_str('BERT:TRIGger:MODE?')returnConversions.str_to_scalar_enum(response,enums.BlerTrigMode)
[docs]defset_mode(self,polarity:enums.BlerTrigMode)->None:"""SCPI: BERT:TRIGger:MODE \n Snippet: driver.bert.trigger.set_mode(polarity = enums.BlerTrigMode.AUTO) \n Selects the type of measurement. \n :param polarity: AUTO| SINGle AUTO Continuous measurement. Terminates the measurement in progress if one or both termination criteria are met. Delays the restart of a new measurement until the first measurement result has been queried. The resulting brief measurement interruption is irrelevant because the subsequent measurement is synchronized within 24 data bits. SINGle Single measurement, started with method RsSmw.Bert.Trigger.Immediate.set | method RsSmw.Bler.Trigger.Immediate.set. """param=Conversions.enum_scalar_to_str(polarity,enums.BlerTrigMode)self._core.io.write(f'BERT:TRIGger:MODE {param}')
# noinspection PyTypeChecker
[docs]defget_source(self)->enums.TrigSourBerBler:"""SCPI: BERT:TRIGger:SOURce \n Snippet: value: enums.TrigSourBerBler = driver.bert.trigger.get_source() \n For method RsSmw.Bler.Trigger.modeSINGle, selects the source of the trigger signal. \n :return: polarity: INTernal| EGT1 """response=self._core.io.query_str('BERT:TRIGger:SOURce?')returnConversions.str_to_scalar_enum(response,enums.TrigSourBerBler)
[docs]defset_source(self,polarity:enums.TrigSourBerBler)->None:"""SCPI: BERT:TRIGger:SOURce \n Snippet: driver.bert.trigger.set_source(polarity = enums.TrigSourBerBler.EGT1) \n For method RsSmw.Bler.Trigger.modeSINGle, selects the source of the trigger signal. \n :param polarity: INTernal| EGT1 """param=Conversions.enum_scalar_to_str(polarity,enums.TrigSourBerBler)self._core.io.write(f'BERT:TRIGger:SOURce {param}')
defclone(self)->'TriggerCls':"""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=TriggerCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group