[docs]defget_rmode(self)->enums.TrigRunMode:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:RMODe \n Snippet: value: enums.TrigRunMode = driver.source.bb.lora.trigger.get_rmode() \n Queries the signal generation status. \n :return: rmode: STOP| RUN """response=self._core.io.query_str('SOURce<HwInstance>:BB:LORA:TRIGger:RMODe?')returnConversions.str_to_scalar_enum(response,enums.TrigRunMode)
[docs]defset_rmode(self,rmode:enums.TrigRunMode)->None:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:RMODe \n Snippet: driver.source.bb.lora.trigger.set_rmode(rmode = enums.TrigRunMode.RUN) \n Queries the signal generation status. \n :param rmode: STOP| RUN """param=Conversions.enum_scalar_to_str(rmode,enums.TrigRunMode)self._core.io.write(f'SOURce<HwInstance>:BB:LORA:TRIGger:RMODe {param}')
[docs]defget_slength(self)->int:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:SLENgth \n Snippet: value: int = driver.source.bb.lora.trigger.get_slength() \n Defines the length of the signal sequence that is output in the SINGle trigger mode \n :return: slength: integer Range: 1 to dynamic """response=self._core.io.query_str('SOURce<HwInstance>:BB:LORA:TRIGger:SLENgth?')returnConversions.str_to_int(response)
[docs]defset_slength(self,slength:int)->None:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:SLENgth \n Snippet: driver.source.bb.lora.trigger.set_slength(slength = 1) \n Defines the length of the signal sequence that is output in the SINGle trigger mode \n :param slength: integer Range: 1 to dynamic """param=Conversions.decimal_value_to_str(slength)self._core.io.write(f'SOURce<HwInstance>:BB:LORA:TRIGger:SLENgth {param}')
# noinspection PyTypeChecker
[docs]defget_sl_unit(self)->enums.UnitSlB:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:SLUNit \n Snippet: value: enums.UnitSlB = driver.source.bb.lora.trigger.get_sl_unit() \n Defines the unit for the entry of the signal sequence length. \n :return: sl_unit: SEQuence| SAMPle """response=self._core.io.query_str('SOURce<HwInstance>:BB:LORA:TRIGger:SLUNit?')returnConversions.str_to_scalar_enum(response,enums.UnitSlB)
[docs]defset_sl_unit(self,sl_unit:enums.UnitSlB)->None:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:SLUNit \n Snippet: driver.source.bb.lora.trigger.set_sl_unit(sl_unit = enums.UnitSlB.SAMPle) \n Defines the unit for the entry of the signal sequence length. \n :param sl_unit: SEQuence| SAMPle """param=Conversions.enum_scalar_to_str(sl_unit,enums.UnitSlB)self._core.io.write(f'SOURce<HwInstance>:BB:LORA:TRIGger:SLUNit {param}')
# noinspection PyTypeChecker
[docs]defget_source(self)->enums.TriggerSourceC:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:SOURce \n Snippet: value: enums.TriggerSourceC = driver.source.bb.lora.trigger.get_source() \n INTRO_CMD_HELP: Selects the trigger signal source and determines the way the triggering is executed. Provided are: \n - Internal triggering by a command (INTernal) - External trigger signal via one of the local or global connectors Table Header: \n - EGT1|EGT2: External global trigger - EGC1|EGC2: External global clock - ELTRigger: External local trigger - ELCLock: External local clock - Internal triggering by a signal from the other basebands (INTA|INTB) - OBASeband|BEXTernal|EXTernal: Setting only Provided only for backward compatibility with other Rohde & Schwarz signal generators. The R&S SMW accepts these values and maps them automatically as follows: EXTernal = EGT1, BEXTernal = EGT2, OBASeband = INTA or INTB (depending on the current baseband) \n :return: source: INTB| INTernal| OBASeband| EGT1| EGT2| EGC1| EGC2| ELTRigger| INTA| ELCLock| BEXTernal| EXTernal """response=self._core.io.query_str('SOURce<HwInstance>:BB:LORA:TRIGger:SOURce?')returnConversions.str_to_scalar_enum(response,enums.TriggerSourceC)
[docs]defset_source(self,source:enums.TriggerSourceC)->None:"""SCPI: [SOURce<HW>]:BB:LORA:TRIGger:SOURce \n Snippet: driver.source.bb.lora.trigger.set_source(source = enums.TriggerSourceC.BBSY) \n INTRO_CMD_HELP: Selects the trigger signal source and determines the way the triggering is executed. Provided are: \n - Internal triggering by a command (INTernal) - External trigger signal via one of the local or global connectors Table Header: \n - EGT1|EGT2: External global trigger - EGC1|EGC2: External global clock - ELTRigger: External local trigger - ELCLock: External local clock - Internal triggering by a signal from the other basebands (INTA|INTB) - OBASeband|BEXTernal|EXTernal: Setting only Provided only for backward compatibility with other Rohde & Schwarz signal generators. The R&S SMW accepts these values and maps them automatically as follows: EXTernal = EGT1, BEXTernal = EGT2, OBASeband = INTA or INTB (depending on the current baseband) \n :param source: INTB| INTernal| OBASeband| EGT1| EGT2| EGC1| EGC2| ELTRigger| INTA| ELCLock| BEXTernal| EXTernal """param=Conversions.enum_scalar_to_str(source,enums.TriggerSourceC)self._core.io.write(f'SOURce<HwInstance>:BB:LORA: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