Yes, you are right. I mistakenly thought that you had two analog in DAQ Assistants and not one analog in and one counter. What you can do is right click on the assistant and select Generate DAQmx Code. This will create a piece of code with a while loop. Remove the while loop and drag the setup subVI and the Start Task outside your main loop to the left, and drag the Stop Taks out of your while loop to the right.