(self, counter, name_to_assign_to_channel='')
return COChannel(self._handle, name)
Creates and returns a COChannel object.

        Args:
            counter (str): Specifies the names of the counters 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.co_channel.COChannel: 
            
            Specifies the newly created COChannel object.
Creates and returns a COChannel object.
Creates and returns a COChannel object .
def _create_chan(self, counter, name_to_assign_to_channel=''):
        """
        Creates and returns a COChannel object.

        Args:
            counter (str): Specifies the names of the counters 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.co_channel.COChannel: 
            
            Specifies the newly created COChannel object.
        """
        if name_to_assign_to_channel:
            num_counters = len(unflatten_channel_string(counter))

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

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