Gain is set automatically by setting range. When you set the limits properly the NI-DAQ software automatically chooses the gain that would be most accurate since the range of the ADC is set. For example, if you ADC range is 10 Volts and you set your range limits from 0 to 1, then a gain of 10 will be used.
It sounds like you may be trying to gain the signal to much which would leave the functional range of the ADC. For example if the gain was 10 and the signal range was 0 to 5, the ADC would need to handle a 50V range.
Just set the signal limits as accurately as possible and the NI-DAQ software will use the best gain available.
Best Regards,
Chris Matthews
National Instruments