LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

polymorphic VIs

Hello all,

I want to build a polymorphic VI with one string input and different outputs.

Building the VI works fine. I will find the (let's say) SubVIs within the list, and manual selection is possible. But with automated selection enabled I will only see broken wires, when wiring an indicator with different data type as at the default VI.

Question: Is it possible to build such a polymorphic VI, or is it strongly recommended to have one input for automated selection ?

Regards
Heinrich Eidloth
0 Kudos
Message 1 of 3
(2,695 Views)
Hello Heinrich,

as far as I know, Labview selects the "SubVIs" in a polymorphic VI by the inputs and not by the outputs.
So you have to select your "SubVI" manually...

Best regards,
Gerd Wieczorek
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,695 Views)
> I want to build a polymorphic VI with one string input and different
> outputs.
>

As mentioned in the other posting, LV determines the implementation VI
based upon inputs alone. The simple indicator case makes it look like
we could look downstream, but things quickly get out of hand when the
next node is also polymorphic or is a shift register.

Another tack is to build your subVI to return multiple types. Simply
wire the datatype(s) you need and the rest dont cost much.

Greg McKaskle
Message 3 of 3
(2,695 Views)