(self, physical_channel, name_to_assign_to_channel='')
return AIChannel(self._handle, name)
Creates and returns an AIChannel object.

        Args:
            physical_channel (str): Specifies the names of the physical
                channels to use to create virtual channels.
            name_to_assign_to_channel (Optional[str]): Specifies a name to
                assign to the virtual channel this method creates.
        Returns:
            nidaqmx._task_modules.channels.ai_channel.AIChannel: 
            
            Specifies the newly created AIChannel object.
Creates and returns an AIChannel object.
Creates and returns an AIChannel object .
def _create_chan(self, physical_channel, name_to_assign_to_channel=''):
        """
        Creates and returns an AIChannel object.

        Args:
            physical_channel (str): Specifies the names of the physical
                channels to use to create virtual channels.
            name_to_assign_to_channel (Optional[str]): Specifies a name to
                assign to the virtual channel this method creates.
        Returns:
            nidaqmx._task_modules.channels.ai_channel.AIChannel: 
            
            Specifies the newly created AIChannel object.
        """
        if name_to_assign_to_channel:
            num_channels = len(unflatten_channel_string(physical_channel))

            if num_channels > 1:
                name = '{0}0:{1}'.format(
                    name_to_assign_to_channel, num_channels-1)
            else:
                name = name_to_assign_to_channel
        else:
            name = physical_channel

        return AIChannel(self._handle, name)
def _create_chan ( self , physical_channel , name_to_assign_to_channel = '' ) : if name_to_assign_to_channel : num_channels = len ( unflatten_channel_string ( physical_channel ) ) if num_channels > 1 : name = '{0}0:{1}' . format ( name_to_assign_to_channel , num_channels - 1 ) else : name = name_to_assign_to_channel else : name = physical_channel return AIChannel ( self . _handle , name )