Yes you did. The pin numbers of the connector block do not match the channel numbers. Refer to the M series manual (help)for pin assignement. (or for Max, Help----DaqMx help---device terminals
Also, the ground to use depends on the channel setup.
For NRSE, the ground is the AI SENSE pin
for RSE, the ground is the AI GND pin
for differential,
for channel 0, use channel 8 for ground
for channel 1, use channel 1 for ground, etc