LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what's different between event create and register

Solved!
Go to solution

I don't understand the detail position of the event create and register, I want to know the theory behine the functions.Someone give info?  Thanks!

0 Kudos
Message 1 of 5
(3,983 Views)

If you are asking position and how to use check this link: https://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/creating_user_events/

-Event structure has tw types of registering events static and dynamic.

-In static event registration is performed automatcially when a VI with event structure is run for all the user interface events.

-Whereas Dynamic event registration is custom user based and without user interaction you can create an event based on predefined condition.

-Create user event is used to define the event type and the cluster input name is what becomes event name.

Thanks
uday
Message 2 of 5
(3,966 Views)

Thanks udka!

Sorry for my out of focus question!

I found that I can just use event register function to to define the event,so I don't know the necessary of the create function? so as to destroy function.

 

Best regards,

 

Alex

0 Kudos
Message 3 of 5
(3,958 Views)
Solution
Accepted by topic author Alexleung
You can define the listening part to an event in register for events.
-Create and destroy functions are required for user events.
-if you are still talking about front panel events registration, yes you can do dynamically register for events and you don't need create and destroy user event: https://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/dynamic_register_event/
-If you can post vi/snippet it might explain a bit better of what you are asking.
Thanks
uday
Message 4 of 5
(3,951 Views)

I got it,Thanks! udka!

Best regards

 

Alex

0 Kudos
Message 5 of 5
(3,941 Views)