ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get XControl label name from within XControl

Solved!
Go to solution

Hi all,

 

Is it possible to get at  the label name of an XControl placed on a front panel from inside the XControl?

 

I want to set some labels in the XControl facade to the name that the XControl is given on a front panel.

 

Thanks

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

Hey Toad,

 

I'm a little unsure of what you're trying to do. Getting at the label of the XControl in LabVIEW is easy enough, it's just a property node.

 

Are you saying that you want the XControl labels on the facade to take the name of the XControl?

 

Chris

National Instruments - Tech Support
0 Kudos
Message 2 of 5
(3,130 Views)

Hi Chris,

 

Thanks for the reply.

 

I'm trying to get at the name the XControl is given when it is placed on a front panel vi.

 

I'm not sure what this term is called: the variable name? the instance name?

 

I'm hoping to access that value from inside the XControl so that a label inside the XControl will display in its facade what the variable/instance name for the XControl is on the front panel.

 

Phill

0 Kudos
Message 3 of 5
(3,128 Views)
Solution
Accepted by topic author tadders

So you want a self-aware XControl?

 

This will do it.  Take the refnum in your "Container State" and do the following

 

Selfaware XControl.png

 

Shane.

Message 4 of 5
(3,120 Views)

Hi Intaris,

 

Perfect!

 

Thank you very much.

 

P

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