(
            self, device_name, power_up_states)
Sets the resistor level to pull up or pull down for lines when
        they are in tristate logic.

        Args:
            device_name (str): Specifies the name as configured in MAX
                of the device to which this operation applies.
            power_up_states (List[nidaqmx.types.DOResistorPowerUpState]):
                Contains the physical channels and power up states to
                set. Each element of the list contains a physical channel
                and the power up state to set for that physical channel.

                - physical_channel (str): Specifies the digital line or
                  port to modify.  You cannot modify dedicated digital
                  input lines.
                - power_up_state (:class:`nidaqmx.constants.ResistorState`):
                  Specifies the power up state to set for the physical
                  channel specified with the **physical_channel** input.
Sets the resistor level to pull up or pull down for lines when
        they are in tristate logic.
Sets the resistor level to pull up or pull down for lines when they are in tristate logic .
def set_digital_pull_up_pull_down_states(
            self, device_name, power_up_states):
        """
        Sets the resistor level to pull up or pull down for lines when
        they are in tristate logic.

        Args:
            device_name (str): Specifies the name as configured in MAX
                of the device to which this operation applies.
            power_up_states (List[nidaqmx.types.DOResistorPowerUpState]):
                Contains the physical channels and power up states to
                set. Each element of the list contains a physical channel
                and the power up state to set for that physical channel.

                - physical_channel (str): Specifies the digital line or
                  port to modify.  You cannot modify dedicated digital
                  input lines.
                - power_up_state (:class:`nidaqmx.constants.ResistorState`):
                  Specifies the power up state to set for the physical
                  channel specified with the **physical_channel** input.
        """
        args = [device_name]
        argtypes = [ctypes_byte_str]

        for p in power_up_states:
            args.append(p.physical_channel)
            argtypes.append(ctypes_byte_str)

            args.append(p.power_up_state.value)
            argtypes.append(ctypes.c_int)

        args.append(None)

        cfunc = lib_importer.cdll.DAQmxSetDigitalPullUpPullDownStates
        with cfunc.arglock:
            cfunc.argtypes = argtypes
            error_code = cfunc(*args)
        check_for_error(error_code)
def set_digital_pull_up_pull_down_states ( self , device_name , power_up_states ) : args = [ device_name ] argtypes = [ ctypes_byte_str ] for p in power_up_states : args . append ( p . physical_channel ) argtypes . append ( ctypes_byte_str ) args . append ( p . power_up_state . value ) argtypes . append ( ctypes . c_int ) args . append ( None ) cfunc = lib_importer . cdll . DAQmxSetDigitalPullUpPullDownStates with cfunc . arglock : cfunc . argtypes = argtypes error_code = cfunc ( * args ) check_for_error ( error_code )