How are you connecting your signals?
As they are written, the examples set up the analog input channels in differential mode. So, to read 0V on ai0, you should short ai0 to ai8 (connect pin 68 to pin 34 with a wire). To read a voltage source, connect ai0 to V+ and ai8 to V-.
-Alan A.