[docs]defget_drate(self)->float:"""SCPI: [SOURce<HW>]:BB:DVB:DVBH:DRATe \n Snippet: value: float = driver.source.bb.dvb.dvbh.get_drate() \n Queries the data rate. \n :return: drate: float """response=self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBH:DRATe?')returnConversions.str_to_float(response)
[docs]defget_duration(self)->float:"""SCPI: [SOURce<HW>]:BB:DVB:DVBH:DURation \n Snippet: value: float = driver.source.bb.dvb.dvbh.get_duration() \n Queries the signal duration. \n :return: duration: float """response=self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBH:DURation?')returnConversions.str_to_float(response)
# noinspection PyTypeChecker
[docs]defget_hmode(self)->enums.DvbHierarchyMode:"""SCPI: [SOURce<HW>]:BB:DVB:DVBH:HMODe \n Snippet: value: enums.DvbHierarchyMode = driver.source.bb.dvb.dvbh.get_hmode() \n Queries the mode for hierarchical coding, that is non-hierachical coding. The current firmware does not support hierarchical coding. \n :return: hmode: NHIerarchical Non-hierchical coding using high priority input only. """response=self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBH:HMODe?')returnConversions.str_to_scalar_enum(response,enums.DvbHierarchyMode)
[docs]defset_hmode(self,hmode:enums.DvbHierarchyMode)->None:"""SCPI: [SOURce<HW>]:BB:DVB:DVBH:HMODe \n Snippet: driver.source.bb.dvb.dvbh.set_hmode(hmode = enums.DvbHierarchyMode.HIErarchical) \n Queries the mode for hierarchical coding, that is non-hierachical coding. The current firmware does not support hierarchical coding. \n :param hmode: NHIerarchical Non-hierchical coding using high priority input only. """param=Conversions.enum_scalar_to_str(hmode,enums.DvbHierarchyMode)self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBH:HMODe {param}')
[docs]defget_sframes(self)->int:"""SCPI: [SOURce<HW>]:BB:DVB:DVBH:SFRames \n Snippet: value: int = driver.source.bb.dvb.dvbh.get_sframes() \n Sets the number of super-frames to be transmitted. \n :return: sframes: integer Range: 1 to 1633 (dynamic) """response=self._core.io.query_str('SOURce<HwInstance>:BB:DVB:DVBH:SFRames?')returnConversions.str_to_int(response)
[docs]defset_sframes(self,sframes:int)->None:"""SCPI: [SOURce<HW>]:BB:DVB:DVBH:SFRames \n Snippet: driver.source.bb.dvb.dvbh.set_sframes(sframes = 1) \n Sets the number of super-frames to be transmitted. \n :param sframes: integer Range: 1 to 1633 (dynamic) """param=Conversions.decimal_value_to_str(sframes)self._core.io.write(f'SOURce<HwInstance>:BB:DVB:DVBH:SFRames {param}')
defclone(self)->'DvbhCls':"""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=DvbhCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group