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: 

XControl Captions

I'm trying to set the Caption.Text property of an XControl.  I get an error that says:
 
"In run mode, LV cannot get or set a property for a control that has not been created."
 
The control is on the front panel.  What does this mean?
 
TIA,
Bill F
 
0 Kudos
Message 1 of 6
(3,293 Views)
Bill,

You need to go the front panel and select "Visible Items: Caption." This "creates" the caption. After that it can be manipulated by the property node.

Lynn
0 Kudos
Message 2 of 6
(3,291 Views)
Doh!  Ok got that.  Now a follow up.  Can I set the XControl caption inside the XControl itself?  I can get a "this" ref to the XControl. but it is a VI ref, and hence does not have a caption property.  I know I could fake it by using a transparent string control, or the caption of another control that is not otherwise being used, but that doesn't meet my needs totally as I would like the caption be be located at different places relative to the XControl
 
Thanks,
Bill F
0 Kudos
Message 3 of 6
(3,285 Views)
Bill,

I have not worked with Xcontrols enough to answer that one.

Lynn
0 Kudos
Message 4 of 6
(3,281 Views)
Inside the Facade VI, the Container State control contains a reference to the actual XControl.

To read a little bit more on XControl see here.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 6
(3,259 Views)

TonP,

Thanks.  I've got it doing what I want now.

Bill F

0 Kudos
Message 6 of 6
(3,237 Views)