If you set the SC-2040 to have a gain of 10 with a 0.8 V signal, the DAQ device will be receiving an 8 V signal. If you set up the DAQ device to have a gain of 1, the input range will be between -5 V and 5 V and that is why you are seeing 5 V. The DAQ device isn't be able to receive a voltage outside the +/- 5 V range and is railing at 5 V.
You will want to use -1 for the gain parameter within the DAQ_Start function which will apply a 0.5 gain for the DAQ device. The corresponding input range for the device with a gain of 0.5 will be +/- 10 V. Therefore, with a gain of 0.5, the DAQ device will be able to read the 8 V signal. I hope this helps.
Regards,
Todd D.