Use Only One Event Structure whenever Possible

You can use multiple Event structures in the same VI, especially if you register events dynamically. However, events that you register statically rarely require multiple Event structures, so use one Event structure to handle events whenever possible.

When you use multiple Event structures in the same VI, observe the following guidelines:

  • Place each Event structure in its own While Loop.
  • Ensure that the Event structures execute simultaneously.
  • Ensure that the Event structures stop handling events simultaneously.