Hi km22,
Besides starting and stopping the task every time you need to change the sampling rate, there are some other ways you can vary the analog input sampling rate. These options, however, will require a little more work to setup.
1. The first option is to always sample at the fastest sample rate needed for all the processes, and discard the unwanted data in software to get the equivalent of the slower rate.Thank you, Hani and Kevin, for your suggestions. It's working well for me to simply discard the data I don't need.
Ken