LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic event registration tutorial

Solved!
Go to solution

Hi All,

 

I wanted to learn about the Dynamic Event registration ... i have tried to donwload so many examples and try to undertsand why thery r using this...??

unfortunatly i could not able to find one with a clear description... Can any please give some basic differences and uses between static and dynamic events ...

 

in some post they use so many property nodes and regsiter events and so on ...

 

Thanks in advance...

0 Kudos
Message 1 of 23
(4,699 Views)
Solution
Accepted by john_1011

Some events are precreated with e.g. controls, those are static events. All others must use Register events for the event structure to be able to connect and handle it. A good example for static is Value change event for controls, whereas User defined Event is a good dynamic event.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 23
(4,697 Views)

Take a look at Ton's Dynamic Event nugget.

 

It turned on the light-buld for me!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 23
(4,694 Views)

hi Ben ,, i have refered the site u have recommended me ..

The task should be clarified by a simple example and hen to the complex one but in that thred it was so...

 

but never the less i dont get the meaing of register events function and what it takes as a input and some times they use creae user event funtion ...

all information are avalaible but not in a clear manner ....

0 Kudos
Message 4 of 23
(4,664 Views)

static part is more clear for me .. but what do u mean by good dynmaic event ...

Suppose if i have a button ,or any control in front panel where the user interact i can use this in my evnet struct ,, but what exactly is these dynamic events ,,, in simple terms,.,, i hav eread some threads they meant this as ref for vi ,, so so ,.,but very unclear...

0 Kudos
Message 5 of 23
(4,662 Views)

In simple terms: It's an event you can register and unregister while the program is running. It's an event you can create and destroy while the program is running.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 23
(4,653 Views)

I am really trying to understand Events, event structures (understand this a lot better) and user events, static/dynamic events. Especially the last one.

 

I thought events generated as inherently dynamic, in that any event that happens when the program is running, is captured. So in what sense is the static/dynamic event differentiated in the context of event registration? I am relating it to static and dynamic memory. You allocate memory before running the program points to static memory and when you allocate memory on the fly, it is dynamic. Is my analogy flawed that I am obviously missing something? Or can they be related at all?

 

More light on this concept will be helpful. For a first time learner of the concept, the nuggets are not a good place to start because they use higher degree of explanation and lingo.

 

Thanks!


V

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

Static events are fully configured at edit time. They're the ones you know.

Dynamic events are also configured at edit time (because the event structure needs specific data types), but you can play with the event source and whether or not you actually get the event the event at run time.

 

For example, this decides at run time whether the event will be processed for numeric 1 or for numeric 2:

 

Dyn_Event.png

 

Look at the shipping examples in the example finder (Help>>Find Examples) for more.


___________________
Try to take over the world!
0 Kudos
Message 8 of 23
(4,513 Views)

Can you post that vi? I am unable to drag and drop it because I have LV2010.

 

 


@tst wrote:

Static events are fully configured at edit time. They're the ones you know.

Dynamic events are also configured at edit time (because the event structure needs specific data types), but you can play with the event source and whether or not you actually get the event the event at run time.



I am still finding it hard to understand. I get the configured part. THat's coz you have to set up the event structure. What I don't understand is how exactly it becomes dynamic? We still add event cases just like static events. My mind is hurting so much thinking about this 🙂

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

http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/using_events_in_labview/ 

 

It's not much of a tutorial but it might help clear things up.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 10 of 23
(4,491 Views)