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.
I am not sure what exactly are you trying to do. Attaching a piece of your code would give us a better idea. By the way, a state machine with an event structure would do these kind of works perfectly.