The only way I have found to do this is to use a counter as your clock source for you analog input lines. You can vary the frequency of this while the program is running. Take a look at the attached program. I have an E-series card, so that is what this is based on.
Hopefully it will be useful.
Randall Pursley