From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re-triggering event structures after queue purged

I have a vi built with an event structure that allows the user to stop the tests.  I am using the flush queue subvi in the producer loop to remove the remaining elements.  Then the user may fix the problem and again press start, starting the tests all over. 

About 50% of the time, the event structure will not restart, and the vi will need to be stopped and re-started. 

There must be something I am missing that is not allowing the event structure to re-start. 

Is the position of the flush queue correct in my snippet?  

What could cause the event structure to not respond and how can I troubleshoot it?

 

Thanks.




metzler CLAD
0 Kudos
Message 1 of 3
(2,184 Views)

Can you attach a working snippet. This one does not have any events assigned, for example.

0 Kudos
Message 2 of 3
(2,180 Views)

You should take more care about your error handling. Propably you just miss the errors that cause this behavior.

* At the while loop, use shift-registers for the error wire.

* I also recommend you to place a case around the event structure that catches errors and stop the loop.

 

Felix

0 Kudos
Message 3 of 3
(2,154 Views)