FMM,
The task that you are looking to accomplish should be a relatively easy task to accomplish by modifying some of the examples that ship with LabVIEW.
I have modified one of LabVIEW's shipping examples to stop when the input rises above 4.0 volts, and annotated the changes that I made on the block diagram. I believe that this should help you see one way of accomplishing the task that you are looking at.
I note that you did not mention the version of LabVIEW that you are using. I saved this example in LabVIEW 6.1, as it is the oldest version that I have on my computer.
I wish you the best of luck with your application.
Regards,
Jed R.
Applications Engineer
National Instruments