Is There a Limit to the Number of Event Specifiers for a Single Event Case in LabVIEW?

Updated Aug 30, 2023

Reported In

Software

  • LabVIEW

Issue Details

I currently have over 15 Event Sources for a single event case in LabVIEW. Is this too many? Is there any recommendation or limitation about handling this many events?

Solution

There is no limit to the number of events specifiers you can use.

You may want to investigate using dynamic events, where you would wire an array of control references into a Register For Events node. Then you would have an event case with just one event specifier. This results in easier code to maintain as you don't have to deal with a huge list of controls in the event dialog. You would instead see on the diagram by how the array of references is constructed, which controls you're interested in.

Additional Information

If this is a situation where you want to register for value change on all controls on the Front Panel, you can just traverse the panel for controls (usingĀ Traverse For GObjects VI) and wire the array of controls to the Register For Events node. That way, if you add controls to the panel, the Block Diagram code doesn't have to change.