02-17-2018 06:36 PM
Hello all,
I started searching if its possible to create a subVI capable of changing its own inputs/outputs based on
selector of its own. For example, the main input of this subVI is a CONTROL Selector (like an ENUM Constant)
and when I select one of its options, automatically the subVI enables and shows certain input/outputs that
corresponds to the option select. So, inputs/outputs of subVI will change when different option is selected.
Does anyone know if this is possible? If it is, can you share the knowledge of how to do it? I'm debugging and
a program, and this will come in handy.
Thanks to all, I appreciate your help!.
Solved! Go to Solution.
02-17-2018 06:51 PM
Look into polymorphic VIs. I think that will do what you need.
02-19-2018 04:15 PM
Hi JLuna,
Can you provide a little bit more information about the application you are trying to implement?
Look into this link, it explains how to modify a conector pane programatically:
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/scripting_configuring_connector_panes/
Also in the "Labview examples" (Labview>>examples>>VI Scripting) you can find:
Those may help.
Regards,
02-19-2018 11:25 PM
Hope you need to go with Polymorphic VI as suggested by Bilko
If You are not aware of polymorphic VI creation, please find the steps
1. Create 2 VI of your choice as required with controls and indicators as you expect.
2.Create New and select Polymorphic VI from LabVIEW Main Window and Add the VI's you developed in step 1
02-22-2018 07:39 PM
Ok, I'll check this topic and I will post further news. Thanks.