LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

merging FP of children class

Solved!
Go to solution
Hello, i just discovered lvoop an trying to use it I wonder to know how to share vi front panel of mother with children ie: i have a form from instrument mother class : Manufacturer, Serial , calibration date ... children can add for example, coeff correction , array of correction on their proper form i would like to merge both form and using method of both without making copy / paste what is the solution : vi serveur with sub panel ? is it the one ? Best regards Tinnitus
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 26
(4,745 Views)

Sub-panels?

 

Load the config of the child into a sub-panel of the parent...

 

Just thinking out loud and not sure if that will work.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 26
(4,742 Views)
Hello Ben, i thought the opposite, no. The sub panel of parent in children .. it is more than loading it is also reusing method of insertion in form set date ... set coeff, open , save ... You never had to do such a thing ? Regards Tinnitus
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 3 of 26
(4,730 Views)

THe dialogs of the children were always so different from the parent that I never had a need to show both rather one of the other.

 

I came close in another project where I had classes that agregated others and the agregates wheer shown in their own sub-panel inside the Agregating class screen... but the customer was not comfortable with LVOOP so that app was tossed...

 

LVOOP is still new to many of us so don't be suprised if you attempt to do something nobody else has attempted.

 

Maybe the LAVA-ites have ideas.

 

If you do come up with an idea, could you please post about your solution?

 

I would appreciate it greatly!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 26
(4,725 Views)
Lvoop and object is new to me but seems to be very interesting i had a 'tilt' just on month ago . I don't master the entire theorie so i try to build with bricks i encounter i saw an article there but i also have to translate before really understanding the core if i solve, sure i will tell you regards Tinnitus http://decibel.ni.com/content/docs/DOC-2875
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 5 of 26
(4,716 Views)

My idea for this (which I haven't finished implementing yet) is to have a single listbox with a line for each class which supports this. Selecting the line would show the VI from the relevant class in a single subpanel, similar to what the LV options dialog has. This would allow you to add N classes, although the framework code for this would be a bit complicated, since the listbox would have to be dynamically updated as you select classes.

 

So, if your inheritence is Device->exfabulator->xFabber2000->Serial, you would have four lines in the listbox.


___________________
Try to take over the world!
0 Kudos
Message 6 of 26
(4,710 Views)

Thank you advance!

 

Ben

 

PS: Your avatar has always caught my eye. I was born with a sub-mucus clef palette back in the late fifties (before they figured out to fix it) that destroyed my left ear and did a lot of damge to the right ear. Seems like I spent most of my childhood in waiting rooms with pic

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 26
(4,706 Views)

Forgive me if I misunderstand or over simplify, but...

 

If it's just the data you need and no fancy front panel graphics, you can call the read methods on the parent, and make an indicator or control of it on the front panel. This is what I do, and consequently, a lot of my child classes have very similar code (which is obviously what I'm trying to avoid by using OOP in teh first place)  I'm trying to figure this out as well, so if there are other more elegant solutions I'd love to hear them.

 

 

 

As an aside, is it possible to read parent data from within a child without calling a Get method?  It seems to me it should be part of the cluster..

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 8 of 26
(4,700 Views)

@elset191 wrote:

Forgive me if I misunderstand or over simplify, but...

 

If it's just the data you need and no fancy front panel graphics, you can call the read methods on the parent, and make an indicator or control of it on the front panel. This is what I do, and consequently, a lot of my child classes have very similar code (which is obviously what I'm trying to avoid by using OOP in teh first place)  I'm trying to figure this out as well, so if there are other more elegant solutions I'd love to hear them.

 

 

 

As an aside, is it possible to read parent data from within a child without calling a Get method?  It seems to me it should be part of the cluster..


Well maybe it was me that mis-read the question.

 

I was thinking about a GUI associated with the Class and a desire to use the Parents version but add the Child data to the parents version.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 26
(4,697 Views)

I use what I described for providing a GUI to the class...kinda.

 

On my front panel I have a button to press that opens up what I'm talking about, and the user can set values.  Here is one example22935iEEA7B616C6FD8773

 

These pop ups  get the data from the object (parent and self), populate the controls for user interaction, and when the user presses close, writes the new values of the controls back to the object.  So, it's not actually the object gui, it's just an interface to the objects data.

 

My end game is to not need popups and have this information right on the main vi, but I can't figure out a good way to do it.  Subpanels crossed my mind, but I can't get (or don't' know how) to get the data out as the user changes it.  I also considered having an XControl for the class that had the data in it...but got tripped up on the implementation.  Perhaps this is closer to the OP's question, because then I would need to possibly merge two xcontrols for a child class...

 

</ramble>

 

 

--
Tim Elsey
Certified LabVIEW Architect
Message 10 of 26
(4,690 Views)