LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Nested Classes in Labview 8.2

hello everyone,

I am a 'measurement studio' convert to labview, so I have been getting my head around the 'object oriented programming' features of labview 8.2. There seems to be many things lacking in this implementation, like Java/C# style interfaces, and abstract classes.

Also I haven't found a way to create a nested class (so a class within a class). Is this possible in Labview 8.2 or 8.5?

Thanks,
paul

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

Hi

 

Nested classes are not supported by the lvclass. Since you are interested in OO in LabVIEW I would recommend that you check out the LAVA forums and especially the GOOP (Graphical Object Oriented Design) forum:

http://forums.lavag.org/GOOP-f68.html

 

Thanks,

Jan

0 Kudos
Message 2 of 5
(3,333 Views)
Thanks for that, will check them out.

paul
0 Kudos
Message 3 of 5
(3,329 Views)
I just stumbled across this post looking for other information......

Is it true that nested classes are not supported?

I just tried this out and it seemed to work for me.  Can we add a class as a data member of another class?  I think I recall this even being propagated in an article, but I can't remember which.

I think it was about an object referencing itself in it's own data field to create a recursive object call.....

Can someone please confirm that nested classes are supported and working?  Which caveats need to be observed?  I'm just starting working on something which kind of relies on the ability to nest classes, so I'm quite interested as to whether it's feasible or not.

I'm using LV 8.2.1.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 4 of 5
(3,240 Views)

Hmm. Reading your post I hope I didn't missinterprete the original question. I thougth it was about having a class like Container having a data field of the (class) type Container. When using this together with dynamic dispatch it leads to recursion which is not allowed in LV8.2.1. However !!! Now when LV 8.5 is released you can have these recursive structures which are very common in object oriented design.

If the questions was about having the class A having a data field of (class) type B. That is allowed and was already allowed in LV8.20.

 

Jan

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