If all of the channels are to be configured the same (range and input configuration) and the channels are continous, then all you have to do is create the list for DAQmx Create Channel. For channels 0 through 3, the channel name would be Dev1/ai0:3. The syntax for non-continous channels (i.e. channel 1 and channel 4) would be Dev1/ai1,Dev1/ai4. I;m assuming that you're not using the DAQ Assistant for this. You have to use the actual DAQmx functions in order to change channels.