LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic event registration tutorial

Solved!
Go to solution

Well, you could have used a static event for the boolean (since that doesn't change), but you got the point. As for uses, go read the nugget for some.


___________________
Try to take over the world!
0 Kudos
Message 21 of 23
(649 Views)

Gotcha! Haha, I have been thinking of Dynamic registration so much that I coded it that way 🙂 But, I get the point now. In summary for today, If I have 20 controls all numeric, instead of having 20 static events for each control, I can dynamically just register 1 event for numeric type, and go to the corresponding action for whatever numeric control was changed. Assuming the actions are similar. Otherwise, there is no significant benefit of using dynamic registration if  each control has it's own  event.

I may not be perfect, but I'm all I got!
0 Kudos
Message 22 of 23
(647 Views)

You shouldn't think of dynamic events as replacements for static events. They are usually used for other situations, where you can't use static events or where using a dynamic event is simpler. If you can use a static event for something, there's no good reason not to.

 

I don't want to get into specific use cases, because that's only bound by imagination and because some of them have already been covered elsewhere.


___________________
Try to take over the world!
0 Kudos
Message 23 of 23
(641 Views)