[docs]classPmOffsetCls:"""PmOffset commands group definition. 1 total commands, 0 Subgroups, 1 group commands"""def__init__(self,core:Core,parent):self._core=coreself._cmd_group=CommandsGroup("pmOffset",core,parent)
[docs]defset(self,pm_offset:float,probe=repcap.Probe.Default)->None:"""SCPI: [SENSe]:PROBe<pb>:SETup:PMOFfset \n Snippet: driver.sense.probe.setup.pmOffset.set(pm_offset = 1.0, probe = repcap.Probe.Default) \n Sets the P-mode offset. The setting is only available if a modular probe in P-mode is connected to the FSW. The maximum voltage difference between the positive and negative input terminals is 16 V. If the probe is disconnected, the P-mode offset of the probe is reset to 0.0 V. Note that if the offset for DM-mode or CM-mode is changed, the offsets for the P-mode and N-mode are adapted accordingly, and vice versa. For details see 'Using Probes'. \n :param pm_offset: The voltage offset between the positive input terminal and ground. Unit: V :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') """param=Conversions.decimal_value_to_str(pm_offset)probe_cmd_val=self._cmd_group.get_repcap_cmd_value(probe,repcap.Probe)self._core.io.write(f'SENSe:PROBe{probe_cmd_val}:SETup:PMOFfset {param}')
[docs]defget(self,probe=repcap.Probe.Default)->float:"""SCPI: [SENSe]:PROBe<pb>:SETup:PMOFfset \n Snippet: value: float = driver.sense.probe.setup.pmOffset.get(probe = repcap.Probe.Default) \n Sets the P-mode offset. The setting is only available if a modular probe in P-mode is connected to the FSW. The maximum voltage difference between the positive and negative input terminals is 16 V. If the probe is disconnected, the P-mode offset of the probe is reset to 0.0 V. Note that if the offset for DM-mode or CM-mode is changed, the offsets for the P-mode and N-mode are adapted accordingly, and vice versa. For details see 'Using Probes'. \n :param probe: optional repeated capability selector. Default value: Nr1 (settable in the interface 'Probe') :return: pm_offset: The voltage offset between the positive input terminal and ground. Unit: V"""probe_cmd_val=self._cmd_group.get_repcap_cmd_value(probe,repcap.Probe)response=self._core.io.query_str(f'SENSe:PROBe{probe_cmd_val}:SETup:PMOFfset?')returnConversions.str_to_float(response)