LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select automatically refnum

Solved!
Go to solution

Hi all,

 

I am working with TabControl and on each page I have a ring control with the name "Ring01" for the page 1, "Ring02" for the page 2, etc..

When I am starting the main VI, I have to initialize these ring controls by including the array of the string. I have written a subvi shown here. It is working but I would like to have your opinion

  about it if for example you have a better idea how to do it.

Specially in this subvi, I have to select the right refnum control which is here the page control. I would like to have the same subvi with a generic refnum control and the subvi should find itself what refnum it is. Do you know how to do it.

Thanks by advance

 

regards

0 Kudos
Message 1 of 2
(2,363 Views)
Solution
Accepted by topic author mnemo15

Hi mnemo15,

 

thank you for using NI Discussion Forums!

 

Your sub-VI looks fine, but I do not understand your last question: VI server is object oriented, so you should specify a class to use property and method of this class.

If you just want to use the default control refnum, perhaps could you use the "To more specific class" VI to choose Tab class, as in the 'Using To More Specific Function' VI of this example:

https://decibel.ni.com/content/docs/DOC-2236

 

I hope this can help you!

Regards

0 Kudos
Message 2 of 2
(2,271 Views)