Hi Xiangjun Rong,
Thanks for testing that.
Your results got me thinking and the actual BUG in the PE compile is due to the way it is handling the Number of A/D Channels versus the Number of A/D Samples as follows:
There should be no relationship between A/D Channels and A/D Samples exept that the A/D Samples 'Channel' field cannot contain a Channel Number that is greater than the 'Number of Channels - 1'.
PE is forcing you to add an A/D Channel for each A/D Sample and that is not a requirement of the ADC Module. You should be able have just 1 A/D Channel and 16 A/D Samples and all those samples have 0 as the channel number. The Samples can be set up to any combination of channel numbers, could have 3 channels and 6 samples and repeat the 3 channels twice in the samples.
This is a PE Bug that I hope you can report and get fixed for future users.
For a temporary work-around for others, you can add the number of channels for the number of samples that you want and just set the excess channels to some used or unused input. Then you can set the samples to any combination that you need.
Pete