(self, index)
Indexes a subset of devices on this device collection.

        Args:
            index: The value of the index. The following index types are
                supported:
                - str: Name of the device. You also can specify a string
                    that contains a list or range of names to this input.
                    If you have a list of names, use the DAQmx Flatten
                    Channel String function to convert the list to a
                    string.
                - int: Index/position of the device in the collection.
                - slice: Range of the indexes/positions of devices in the
                    collection.
        Returns:
            List[nidaqmx.system.device.Device]: 
            
            Indicates the subset of devices indexed.
Indexes a subset of devices on this device collection.
Indexes a subset of devices on this device collection .
def __getitem__(self, index):
        """
        Indexes a subset of devices on this device collection.

        Args:
            index: The value of the index. The following index types are
                supported:
                - str: Name of the device. You also can specify a string
                    that contains a list or range of names to this input.
                    If you have a list of names, use the DAQmx Flatten
                    Channel String function to convert the list to a
                    string.
                - int: Index/position of the device in the collection.
                - slice: Range of the indexes/positions of devices in the
                    collection.
        Returns:
            List[nidaqmx.system.device.Device]: 
            
            Indicates the subset of devices indexed.
        """
        if isinstance(index, six.integer_types):
            return Device(self.device_names[index])
        elif isinstance(index, slice):
            return [Device(name) for name in self.device_names[index]]
        elif isinstance(index, six.string_types):
            device_names = unflatten_channel_string(index)
            if len(device_names) == 1:
                return Device(device_names[0])
            return [Device(name) for name in device_names]
        else:
            raise DaqError(
                'Invalid index type "{0}" used to access collection.'
                .format(type(index)), DAQmxErrors.UNKNOWN.value)
def __getitem__ ( self , index ) : if isinstance ( index , six . integer_types ) : return Device ( self . device_names [ index ] ) elif isinstance ( index , slice ) : return [ Device ( name ) for name in self . device_names [ index ] ] elif isinstance ( index , six . string_types ) : device_names = unflatten_channel_string ( index ) if len ( device_names ) == 1 : return Device ( device_names [ 0 ] ) return [ Device ( name ) for name in device_names ] else : raise DaqError ( 'Invalid index type "{0}" used to access collection.' . format ( type ( index ) ) , DAQmxErrors . UNKNOWN . value )