08-31-2006 05:34 PM
09-01-2006 09:05 AM
Sure you can. Here's a couple different ways to approach it:
1. Use LabVIEW's parallel multi-tasking. While the loop is executing and looking for user input, place other code above or below the loop without any wire connections to the loop. Voila! LabVIEW will run your new code in parallel with the example loop code.
2. Replace the While loop with your code. After calling DAQmx Start, the counter hardware will keep generating a pulse train until your code calls either DAQmx Stop or DAQmx Clear. It will also stop if your entire vi stops running because LabVIEW clears up "dangling" tasks when your vi completes.
-Kevin P.