It looks to me like you may just be reading from the wrong channel with your C program. You say that you are trying to read from channel 16 on a module that is in slot 4; however, I don't see this in the code you attached. It looks like you are reading from the SCXI-1520 in slot 1. Even when I look at your code under DAQ_PROGRAM == 3, which appears to discus the SCXI-1102 module, you still aren't referening slot 4 channel 16.
You will need to change the MainDlg.cpp file you attached, or a simple example such as SCXI_AIOnePoint, to reference the correct module and channel number. The example you attached points to slot 1 channel 0, which if nothing is connected, will show a floating voltage.
Regards,
Justin Britten
Applications Engineer
National
Instruments