(self, data, number_of_samples_per_channel,
                      is_many_chan, is_many_samp)
Verifies that the shape of the specified NumPy array can be used
        to read multiple samples from the current task which contains
        one or more channels, if the "verify_array_shape" property is
        set to True.

        Args:
            data (numpy.ndarray): Specifies the NumPy array to verify.
            number_of_samples_per_channel (int): Specifies the number of
                samples per channel requested.
            is_many_chan (bool): Specifies if the read method is a many
                channel version.
            is_many_samp (bool): Specifies if the read method is a many
                samples version.
Verifies that the shape of the specified NumPy array can be used
        to read multiple samples from the current task which contains
        one or more channels, if the "verify_array_shape" property is
        set to True.
Verifies that the shape of the specified NumPy array can be used to read multiple samples from the current task which contains one or more channels if the verify_array_shape property is set to True .
def _verify_array(self, data, number_of_samples_per_channel,
                      is_many_chan, is_many_samp):
        """
        Verifies that the shape of the specified NumPy array can be used
        to read multiple samples from the current task which contains
        one or more channels, if the "verify_array_shape" property is
        set to True.

        Args:
            data (numpy.ndarray): Specifies the NumPy array to verify.
            number_of_samples_per_channel (int): Specifies the number of
                samples per channel requested.
            is_many_chan (bool): Specifies if the read method is a many
                channel version.
            is_many_samp (bool): Specifies if the read method is a many
                samples version.
        """
        if not self._verify_array_shape:
            return

        channels_to_read = self._in_stream.channels_to_read
        number_of_channels = len(channels_to_read.channel_names)

        array_shape = None
        if is_many_chan:
            if is_many_samp:
                array_shape = (number_of_channels,
                               number_of_samples_per_channel)
            else:
                array_shape = (number_of_channels,)
        else:
            if is_many_samp:
                array_shape = (number_of_samples_per_channel,)

        if array_shape is not None and data.shape != array_shape:
            raise DaqError(
                'Read cannot be performed because the NumPy array passed into '
                'this function is not shaped correctly. You must pass in a '
                'NumPy array of the correct shape based on the number of '
                'channels in task and the number of samples per channel '
                'requested.\n\n'
                'Shape of NumPy Array provided: {0}\n'
                'Shape of NumPy Array required: {1}'
                .format(data.shape, array_shape),
                DAQmxErrors.UNKNOWN.value, task_name=self._task.name)
def _verify_array ( self , data , number_of_samples_per_channel , is_many_chan , is_many_samp ) : if not self . _verify_array_shape : return channels_to_read = self . _in_stream . channels_to_read number_of_channels = len ( channels_to_read . channel_names ) array_shape = None if is_many_chan : if is_many_samp : array_shape = ( number_of_channels , number_of_samples_per_channel ) else : array_shape = ( number_of_channels , ) else : if is_many_samp : array_shape = ( number_of_samples_per_channel , ) if array_shape is not None and data . shape != array_shape : raise DaqError ( 'Read cannot be performed because the NumPy array passed into ' 'this function is not shaped correctly. You must pass in a ' 'NumPy array of the correct shape based on the number of ' 'channels in task and the number of samples per channel ' 'requested.\n\n' 'Shape of NumPy Array provided: {0}\n' 'Shape of NumPy Array required: {1}' . format ( data . shape , array_shape ) , DAQmxErrors . UNKNOWN . value , task_name = self . _task . name )