LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controls on Tab pages do not show up in VI Properties\Controls\Panel

I am trying to get names of all controls in a VI. The VI property Panel/Controls[] does not return controls which I have placed on a Tab control. Surprisingly the Set Control Value works but querrying VI for those controls is a problem.

The way around it in LV6 was to group the controls on each Tab page. In LV7 this does not work.

Anyone has run into the same problem?
0 Kudos
Message 1 of 6
(3,375 Views)
I just developed some code in LV7. The first vi (vi A)has a tab control with two pages. Each page has a boolean and a path with different names. I saved this and then created another vi(vi B) and opened a reference to vi A. Using that reference I then got the front panel property to vi A. After then I used another property to get all controls of vi A. At this point you will have an array of control references from vi A. Because vi A only had 1 control (tab control) I know that the array of control references coming out of the controls property will only contain 1 reference (index 0). You can use an index array to peel it off. So I take that first reference and then using the "to more specific class" function I connected a tab control refnum, you can get this b
y right clicking on the top terminal and creating a control. This will then allow me to use another property node to access the pages of the tab control of vi A. This will come out as an array of references to each page. Once you have the reference to a page you can then use another property node to access the controls on a page. This will give you references of each control on a designated page. Finally.... you can then use a property node to get the label text of each control. You will have to work with arrays and converting to scalars, etc. But the key is using the "to more specific class" function. Hopefully this helped.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 6
(3,374 Views)
Thank you, I arrived at similar solution yesterday. It just seems strange that writing to VI controls finds them without specifying that they are on tab page. I think NI should fix their method to be more investigative 8-)
0 Kudos
Message 3 of 6
(3,374 Views)
I had the same problem and i had make this VI
0 Kudos
Message 4 of 6
(3,376 Views)
Traxx,

Can you save your code into LV7.0 or below format? I can't open LV7.1. Thanks!
0 Kudos
Message 5 of 6
(3,332 Views)
This was done for terp in this thread (to prevent anyone from duplicating the effort).
Message 6 of 6
(3,320 Views)