LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Universal array processing subVI

Hello everybody! I want to make a subVI that handles arrays the same way no matter of their type (like Replace Array Subset for example). The problem is that I have to put a terminal with particular type and when I wire it with a different type it doesn't work. Is it possible to be made? Thank you in advance!

0 Kudos
Message 1 of 3
(2,656 Views)

What you are asking for is 'generics' (if you search around on the ideas exchange and the LAVA forums you'll find lots of discussions) - unfortunately it isn't really possible in LabVIEW. The closest thing you can get (which is supported by LabVIEW) is Polymorphic VIs - you can create a series of VIs, where the most appropriate one is selected depending on the input wired (or manually selected from a drop-down).


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 3
(2,654 Views)

Thank you for the answer! I hope there will be another solution in the future versions for now I will use the polymorphic VIs.

0 Kudos
Message 3 of 3
(2,639 Views)