LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
ClaudioH

Front panel reuse from sub-VI

Status: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.

HI,

 

We are working hard to reuse as many code as possible in ours projects. 

 

I believe that would be handy instead set manually in the sub-panel in the front panel, I could set a property indicating this and LabVIEW does the work importing the panel of the sub-VI as it is, into main VI front panel.

 

Doing this we will be able to reuse the sub-VI front panel layout and spend less time cloning it or creating its controls and indicators in the main front panel.

 

Let the sub-panel for VIs that are open using references.

 

Cheers.

CHCastro
6 Comments
tst
Knight of NI Knight of NI
Knight of NI

You might wish to look into XControls, as they allow you to do something which is basically equivalent. Be aware that they are relatively complicated to develop, though.


___________________
Try to take over the world!
ClaudioH
Member

Hi tst,

 

I did listen about XControl and my NI contact told me that it is a complex matter. With this in mind, I am avoiding chase it.

 

Cheers.

CHCastro
Mark_Yedinak
Trusted Enthusiast

I would also recommend that you take a look at using X-Controls. WHile they can be a challenge to get working they are extremely powerful.

 

With respect to this particular idea I would suggest that you look at your problem a bit differently. I applaud you for your efforts to increase reuse but would recommend that your focus on the subVIs (reusable components) not be concerned with the UI. Your application architecture should decouple the processing tasks from the UI as much as possible. UIs tend are the things that change most and may different even though the applications are essentially the same. However, the underlying processing is generally shared. If you reuse the front panels from the processing tasks it limits your ability to customize the UI.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
codemonkey1
Member

I agree that being able to reuse subVI panels on the front panel would be incredibly useful!

ClaudioH
Member

Hi, I like to develop the application feature by feature and have a code to test them individualy and integrated.

 

With this approach, many times, I have a test function that can be used as is in the application after the integration with fetures.

 

Ok, I will produce a lot of simple UI that will go to the trash but after a requirement change I can  test the feature in a simple way.

 

If I could reuse the test code UI (I don't like sub-panels) to compose a main application I would test the feature with its test code and, if required, correct the main app UI at the same time.

 

Cheers.

CHCastro
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.