Hello chip007,
I looked at your code and you will have to have a seperate while loop that continuously acquires data. The reason why you have to do is because if you change your while loop in the 2nd frame to run continuously, then the LabVIEW compiler would not reach the 3rd frame unless the while loop stops.
So, in the current code, once labview reaches the 2nd frame, it will move only move onto the next sequence when the while loops stops, i.e. voltage reaches 2V.
Also, I noticed that you have put the DAQmx Create Task inside the while loop. You would need to have this outside the while loop and only have to DAQmx Read inside the while loop. Also its a good practice to stop or clear a task once you are done with it. Refer to some examples available through the Example finder (Help >> Find Examples) for more information on using the DAQmx VIs. Also
this, is a good source of information.
Regards,
Chetan K.
Application Engineering
NI