[docs]defget_rmode(self)->enums.TrigRunMode:"""SCPI: [SOURce<HW>]:BB:GNSS:TRIGger:RMODe \n Snippet: value: enums.TrigRunMode = driver.source.bb.gnss.trigger.get_rmode() \n Queries the status of waveform output. \n :return: rmode: STOP| RUN """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TRIGger:RMODe?')returnConversions.str_to_scalar_enum(response,enums.TrigRunMode)
[docs]defget_slength(self)->float:"""SCPI: [SOURce<HW>]:BB:GNSS:TRIGger:SLENgth \n Snippet: value: float = driver.source.bb.gnss.trigger.get_slength() \n Defines the length of the signal sequence to be output in the SINGle trigger mode. \n :return: slength: float Range: 0.001 to 46.648730700, Unit: s """response=self._core.io.query_str('SOURce<HwInstance>:BB:GNSS:TRIGger:SLENgth?')returnConversions.str_to_float(response)
[docs]defset_slength(self,slength:float)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:TRIGger:SLENgth \n Snippet: driver.source.bb.gnss.trigger.set_slength(slength = 1.0) \n Defines the length of the signal sequence to be output in the SINGle trigger mode. \n :param slength: float Range: 0.001 to 46.648730700, Unit: s """param=Conversions.decimal_value_to_str(slength)self._core.io.write(f'SOURce<HwInstance>:BB:GNSS:TRIGger:SLENgth {param}')
# noinspection PyTypeChecker
[docs]defget_source(self)->enums.TriggerSourceC:"""SCPI: [SOURce<HW>]:BB:GNSS:TRIGger:SOURce \n Snippet: value: enums.TriggerSourceC = driver.source.bb.gnss.trigger.get_source() \n INTRO_CMD_HELP: Selects the trigger signal source and determines the way the triggering is executed. Provided are the following trigger sources: \n - INTernal: Internal manual triggering of the instrument - INTA|INTB: Internal triggering by a signal from the other basebands - 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 - For secondary instruments (SCONfiguration:MULTiinstrument:MODE SEC) , triggering via the external baseband synchronization signal of the primary instrument: SOURce1:BB:ARB:TRIGger:SOURce BBSY - OBASeband|BEXTernal|EXTernal: Setting only Provided only for backward compatibility with other Rohde & Schwarz signal generators. The R&S SMW200A 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:GNSS:TRIGger:SOURce?')returnConversions.str_to_scalar_enum(response,enums.TriggerSourceC)
[docs]defset_source(self,source:enums.TriggerSourceC)->None:"""SCPI: [SOURce<HW>]:BB:GNSS:TRIGger:SOURce \n Snippet: driver.source.bb.gnss.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 the following trigger sources: \n - INTernal: Internal manual triggering of the instrument - INTA|INTB: Internal triggering by a signal from the other basebands - 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 - For secondary instruments (SCONfiguration:MULTiinstrument:MODE SEC) , triggering via the external baseband synchronization signal of the primary instrument: SOURce1:BB:ARB:TRIGger:SOURce BBSY - OBASeband|BEXTernal|EXTernal: Setting only Provided only for backward compatibility with other Rohde & Schwarz signal generators. The R&S SMW200A 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:GNSS: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