From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

static verse dynamic dispatch call

I'm just getting started with creating my own lab view classes using the class object but I'm having trouble with some of the basic concepts. Are there any good tutorials or knowledge base articles which talk about how to create and use LabVIEW classes? I'm getting hung on static verses dynamic dispatch calls specifically.
 
Any help would be appreciated!
 
Thank you,
Craig
0 Kudos
Message 1 of 3
(9,857 Views)
Here and here are a couple of links you can start with. Also, Tomi's blog has some tutorials. Here's an example video.

___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(9,840 Views)

I'm still getting a handle on LVOOP myself.

Those two different methods control which VI actually gets called when your app is running.

THe static method is very similar to calling a normal sub-VI in LV except you are passing LVOOP data.

The dynamic comes into play when you have more than one class and one is a child of the other. In that case you can create a VI for the child that has the same name as a VI in the parent, but because it has different data, the data it accepts and return is different. This OTHER VI in the child will under the right condition be called instead of the VI in the parent. I understand this to be concidered over-riding. Which versino will be called? It is dicated by the data you pass to the sub_VI call. If you pass the parent data, the parent versino will be called and vise versa.

So the VI to call is determined at run-time depending on the data.

I hope I got that right!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 3
(9,829 Views)