qcodes/instrument_drivers/Keysight/keysightb1500/message_builder.py
def av(self,
           number: int,
           mode: Optional[Union[constants.AV.Mode, int]] = None
           ) -> 'MessageBuilder':
        """
        This command sets the number of averaging samples of the high-speed
        ADC (A/D converter). This command is not effective for the
        high-resolution ADC. This command is not effective for the
        measurements using pulse.

        Args:
            number: 1 to 1023, or -1 to -100.
                Initial setting is 1.

                For positive number input, this value specifies the number of
                samples depended on the mode value. See below.

                For negative number input, this parameter specifies the
                number of power line cycles (PLC) for one point
                measurement. The KeysightB1500 gets 128 samples in 1 PLC.
                Ignore the mode parameter.

            mode: Averaging mode.
                Integer expression. This parameter is meaningless for
                negative number.

                    - 0: Auto mode (default).
                        ``Number of samples = number * initial number``
                    - 1: Manual mode. Number of samples = number where
                        initial number means the number of samples the B1500
                        automatically sets and you cannot change. For voltage
                        measurement, initial number=1. For current measurement,
                        see Table 4-22. If you select the manual mode, number
                        must be initial number or more to satisfy the
                        specifications.

        """
        cmd = f'AV {number}'

        if mode is not None:
            cmd += f',{mode}'

        self._msg.append(cmd)
        return self

        This command sets the number of averaging samples of the high-speed
        ADC (A/D converter). This command is not effective for the
        high-resolution ADC. This command is not effective for the
        measurements using pulse.

        Args:
            number: 1 to 1023, or -1 to -100.
                Initial setting is 1.

                For positive number input, this value specifies the number of
                samples depended on the mode value. See below.

                For negative number input, this parameter specifies the
                number of power line cycles (PLC) for one point
                measurement. The KeysightB1500 gets 128 samples in 1 PLC.
                Ignore the mode parameter.

            mode: Averaging mode.
                Integer expression. This parameter is meaningless for
                negative number.

                    - 0: Auto mode (default).
                        ``Number of samples = number * initial number``
                    - 1: Manual mode. Number of samples = number where
                        initial number means the number of samples the B1500
                        automatically sets and you cannot change. For voltage
                        measurement, initial number=1. For current measurement,
                        see Table 4-22. If you select the manual mode, number
                        must be initial number or more to satisfy the
                        specifications.

        
This command sets the number of averaging samples of the high-speed
ADC (A/D converter). This command is not effective for the
high-resolution ADC. This command is not effective for the
measurements using pulse.
This command sets the number of averaging samples of the high - speed ADC ( A / D converter ) . This command is not effective for the high - resolution ADC . This command is not effective for the measurements using pulse .
def av(self,
           number: int,
           mode: Optional[Union[constants.AV.Mode, int]] = None
           ) -> 'MessageBuilder':
        cmd = f'AV {number}'
        if mode is not None:
            cmd += f',{mode}'
        self._msg.append(cmd)
        return self
def av ( self , number : int , mode : Optional [ Union [ constants . AV . Mode , int ] ] = None ) -> 'MessageBuilder' : cmd = f'AV {number}' if mode is not None : cmd += f',{mode}' self . _msg . append ( cmd ) return self
This command sets the number of averaging samples of the high-speed
ADC (A/D converter).
This command sets the number of averaging samples of the high - speed ADC ( A / D converter ) .
"""
        This command sets the number of averaging samples of the high-speed
        ADC (A/D converter). This command is not effective for the
        high-resolution ADC. This command is not effective for the
        measurements using pulse.

        Args:
            number: 1 to 1023, or -1 to -100.
                Initial setting is 1.

                For positive number input, this value specifies the number of
                samples depended on the mode value. See below.

                For negative number input, this parameter specifies the
                number of power line cycles (PLC) for one point
                measurement. The KeysightB1500 gets 128 samples in 1 PLC.
                Ignore the mode parameter.

            mode: Averaging mode.
                Integer expression. This parameter is meaningless for
                negative number.

                    - 0: Auto mode (default).
                        ``Number of samples = number * initial number``
                    - 1: Manual mode. Number of samples = number where
                        initial number means the number of samples the B1500
                        automatically sets and you cannot change. For voltage
                        measurement, initial number=1. For current measurement,
                        see Table 4-22. If you select the manual mode, number
                        must be initial number or more to satisfy the
                        specifications.

        """
self
number
int


For positive number input, this value specifies the number of
samples depended on the mode value. See below.

For negative number input, this parameter specifies the
number of power line cycles (PLC) for one point
measurement. The KeysightB1500 gets 128 samples in 1 PLC.
Ignore the mode parameter.
For positive number input this value specifies the number of samples depended on the mode value . See below . For negative number input this parameter specifies the number of power line cycles ( PLC ) for one point measurement . The KeysightB1500 gets 128 samples in 1 PLC . Ignore the mode parameter .
mode
Optional[Union[constants.AV.Mode, int]]
Averaging mode.
Integer expression. This parameter is meaningless for
negative number.

Auto mode (default).
``Number of samples = number * initial number``
1: Manual mode. Number of samples = number where
initial number means the number of samples the B1500
automatically sets and you cannot change. For voltage
measurement, initial number=1. For current measurement,
see Table 4-22. If you select the manual mode, number
must be initial number or more to satisfy the
specifications.
Averaging mode . Integer expression . This parameter is meaningless for negative number . Auto mode ( default ) . ` ` Number of samples = number * initial number ` ` 1 : Manual mode . Number of samples = number where initial number means the number of samples the B1500 automatically sets and you cannot change . For voltage measurement initial number = 1 . For current measurement see Table 4 - 22 . If you select the manual mode number must be initial number or more to satisfy the specifications .