[docs]defset(self,state:bool)->None:"""SCPI: [SENSe]:SWEep:EGATe \n Snippet: driver.sense.sweep.egate.set(state = False) \n Turns gated measurements on and off. For measurements with an external trigger gate, the measured values are recorded as long as the gate is opened. During a sweep the gate can be opened and closed several times. The synchronization mechanisms with *OPC, *OPC? and *WAI remain completely unaffected. The measurement ends when a particular number of measurement points has been recorded. (See [SENSe:]SWEep[:WINDow<n>]:POINts) . Performing gated measurements turns the squelch off. \n :param state: ON | OFF | 0 | 1 OFF | 0 Switches the function off ON | 1 Switches the function on """param=Conversions.bool_to_str(state)self._core.io.write(f'SENSe:SWEep:EGATe {param}')
[docs]defget(self)->bool:"""SCPI: [SENSe]:SWEep:EGATe \n Snippet: value: bool = driver.sense.sweep.egate.get() \n Turns gated measurements on and off. For measurements with an external trigger gate, the measured values are recorded as long as the gate is opened. During a sweep the gate can be opened and closed several times. The synchronization mechanisms with *OPC, *OPC? and *WAI remain completely unaffected. The measurement ends when a particular number of measurement points has been recorded. (See [SENSe:]SWEep[:WINDow<n>]:POINts) . Performing gated measurements turns the squelch off. \n :return: state: ON | OFF | 0 | 1 OFF | 0 Switches the function off ON | 1 Switches the function on"""response=self._core.io.query_str(f'SENSe:SWEep:EGATe?')returnConversions.str_to_bool(response)
defclone(self)->'EgateCls':"""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=EgateCls(self._core,self._cmd_group.parent)self._cmd_group.synchronize_repcaps(new_group)returnnew_group