(self, device_name)
return power_up_states
Gets the resistor level 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.
        Returns:
            List[nidaqmx.types.DOResistorPowerUpState]:

            Contains the physical channels and power up states set. Each
            element of the list contains a physical channel and the power
            up state set for that physical channel.

            - physical_channel (str): Indicates the physical channel that
              was modified.
            - power_up_state (:class:`nidaqmx.constants.ResistorState`):
              Indicates the power up state set for the physical channel
              specified with the **physical_channel** output.
Gets the resistor level for lines when they are in tristate
        logic.
Gets the resistor level for lines when they are in tristate logic .
def get_digital_pull_up_pull_down_states(self, device_name):
        """
        Gets the resistor level 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.
        Returns:
            List[nidaqmx.types.DOResistorPowerUpState]:

            Contains the physical channels and power up states set. Each
            element of the list contains a physical channel and the power
            up state set for that physical channel.

            - physical_channel (str): Indicates the physical channel that
              was modified.
            - power_up_state (:class:`nidaqmx.constants.ResistorState`):
              Indicates the power up state set for the physical channel
              specified with the **physical_channel** output.
        """
        states = []

        device = Device(device_name)
        args = [device_name]
        argtypes = [ctypes_byte_str]

        for do_line in device.do_lines:
            state = ctypes.c_int()
            states.append(state)

            args.append(do_line.name)
            argtypes.append(ctypes_byte_str)

            args.append(ctypes.byref(state))
            argtypes.append(ctypes.POINTER(ctypes.c_int))

        args.append(None)

        cfunc = lib_importer.cdll.DAQmxGetDigitalPullUpPullDownStates
        with cfunc.arglock:
            cfunc.argtypes = argtypes
            error_code = cfunc(*args)
        check_for_error(error_code)

        power_up_states = []
        for d, p in zip(device.do_lines, states):
            power_up_states.append(
                DOResistorPowerUpState(
                    physical_channel=d.name,
                    power_up_state=ResistorState(p.value)))

        return power_up_states
def get_digital_pull_up_pull_down_states ( self , device_name ) : states = [ ] device = Device ( device_name ) args = [ device_name ] argtypes = [ ctypes_byte_str ] for do_line in device . do_lines : state = ctypes . c_int ( ) states . append ( state ) args . append ( do_line . name ) argtypes . append ( ctypes_byte_str ) args . append ( ctypes . byref ( state ) ) argtypes . append ( ctypes . POINTER ( ctypes . c_int ) ) args . append ( None ) cfunc = lib_importer . cdll . DAQmxGetDigitalPullUpPullDownStates with cfunc . arglock : cfunc . argtypes = argtypes error_code = cfunc ( * args ) check_for_error ( error_code ) power_up_states = [ ] for d , p in zip ( device . do_lines , states ) : power_up_states . append ( DOResistorPowerUpState ( physical_channel = d . name , power_up_state = ResistorState ( p . value ) ) ) return power_up_states