LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is is possible for an XControl to inherit properties of a control on its fascade

I am trying to create an XControl that is based on an XYGraph control.  The fascade includes an XYGraph control to display data and some buttons to control scaling of the X axis.  I want the XControl properties to include most or all of the properties of the XYGraph control.  Is there a relative easy way to "inherit" the properties from the XYGraph control?
0 Kudos
Message 1 of 4
(3,328 Views)


@cbfsystems wrote:
Is there a relative easy way to "inherit" the properties from the XYGraph control?



The easy answer: NO

But I've written a tool that allows you to select the items you want to inherit.
Have a look here.

Notice:
You need the OpenG toolkit to use this tool

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 2 of 4
(3,317 Views)

I was surpised to read that an XControl doesn't inherit the properties of controls on its facade.   Have more recent LabVIEW versions changed this behavior?  I couldn't find anything in 8.5.1.  Is the LabVIEW team planning on adding this capability?  It sure seems like a must-have to me.

 

Thanks,

Alan

 

--------------------

Alan Blankman, Software Engineer
Teledyne LeCroy
800-425-2000
http://www.teledynelecroy.com
alan.blankman@teledyne.com
0 Kudos
Message 3 of 4
(3,063 Views)

It is probably not as straight-forwards as you might think to do the inheiritance, since an xcontrol will generally be composed of multiple controls.  For instance, I drop a horizontal and vertical slider on my xcontrol...which control should the slider scale property be linked to?

That said, it would be nice to be able to click on a control and tell it to auto-create the property node directories in the xcontrol library that aren't already created.  ie.  You right click on a numeric control on the facade and select autopopulate properties, and the xcontrol has the correct directories created automatically, including empty default VI's.  you just delete the ones you don't need.

Another nice addition would be a pass-through property node, where you define a property node that is a direct connection to the control on the facade.  But the programmer would have to specifically define it in some manner.  (This would be similar to passing a reference to the control via the xcontrol State typedef and using a property node in the property subVI to do the update.  Difference would be you wouldn't need to create the property subVI, it would be automatically created in essence.)

Jon D
Certified LabVIEW Developer.
0 Kudos
Message 4 of 4
(3,034 Views)