Got it. Found my mistake. The program is working fine now. Just realized that, it can't be aliases but need to be channel number at the ADCIN.