LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl Inheritance

I've found XControls of greate use. Thank you NI development team. Smiley Happy

Is it possible to inherit some or all of the properties (and methods) of the Facade panel objects to the XControl itself. It's very very frustrating to create a
better version of let's say XY graph and then have none of the properties of the XY graph inhereted to this modified version. I'm working on a XY graph which allows text labels instead of numbers on scales and would like to have it behave exactly like XY graph otherwise.

p.s. NI folks, I'd very much like to see real object oriented programming build in labview with inheritance, interfaces and event registration.

Tomi
--
Tomi Maila
Message 1 of 4
(3,063 Views)
Similarly, I would like to "inherit" some of the other properties of "real" LV controls, such as ....
 
  • changing the data-type dynamically (VI's do this now)
  • having the "export simplified image" drop-down menu item available
      - and -
  • being able to make arrays of my xControls

I don't mind having to re-make some of the other properties of the controls, if I have to.

0 Kudos
Message 2 of 4
(2,996 Views)

Hi, 

 

Great post - I'm also wondering the exact same thing. I'm new to xcontrols and  I want to modify a waveform graph as well as chart control, by changing its display panel to another version of a tree control (for the graph) and to show a simplified display panel for x-, y- axis manipulation (for both graph and chart). Any help or guidance for this would be appreciated! Having inheritance of the original graph control and chart control would be extremely helpful!

 

0 Kudos
Message 3 of 4
(2,452 Views)

The basic answer is that XControls don't inherit, because they don't necessarily have a single control on the FP. There's an idea here to create such a link - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/XControls-Inherit-the-properties-methods-of-a-base-con...

 

If you look at the comments there, you will find a link to a tool which can script this inheritance today by creating the properties automatically.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,438 Views)