07-25-2025 05:01 PM
Hello,
I have an instrumentation system using an NI USB-6349. I have 4 while loops, which are stopped using a notifier on a stop button, which works fine. I added a 2nd enable/disable button to turn-on TDMS data collection on/off. This has nothing to do with the stop button but it seems to pause my data collection while loop and it locks the DC while loop, pausing it, so then the VI cannot cycle for the stop button notifier for the VI to stop.
Here are some quick detail:
- 4 While loops: (1) event driven while for UI button event, (2) DAQmx Producer Loop, (3) Consumer Loop for data visualization using a queue, (4) Consumer Loop for data collection to disk using TDMS w/ a queue
- I attached the main VI, but there are a lot of subVIs so it will not be able to run.
The while loop in the image is a data collection product loop. Once I press a the enable (on/off level button), this loops runs the code inside of the true/false case structure. However, if I then turn off the button, the loop stops running.
I have put an indicator on the DC while loop incrementor, and I can see the enable/disable notifier pauses the while loop, when it is inside of the loop and not attached to it's stop input.
The loop is stopped with a stop button + notifier (different than the enable), how can the loop stop if the notifier has nothing to do with stopping that for loop? It seems like my notifier are getting mixed up? I triple checked to make sure the notifiers were grabbing the correct notifier reference.
Sorry if I am not explaining this, sort of difficult to explain. I will follow the post often to make sure I can follow up with people's questions quickly.
Thanks,
-Peter
07-26-2025 09:46 AM
Please do a "save for previous" (e.g. 2019). Many here cannot open VIs saved in LabVIEW 2025.