Stewart;
The best way for you to achieve that would be by modifing the Continuous Acquisition and Chart(buffered).vi (shipped with Labview) to stop the while loop after the number of points which will represent the 20 seconds of acquisition is reached. As you know the sample rate, and the time you need the acquisition to run, you can figure out the number of point to be acquired by multipling the sample rate by the 20 seconds.
Hope this helps.
Filipe Altoe
Applications Engineer
National Instruments