LabVIEW Idea Exchange

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

Provide a better way to implement a polymorphic VI

Status: Completed

Available in LabVIEW 2017. Use Malleable VIs (.vim files) to define a generic implementation for a single subVI that will adapt to multiple wired input data types.

Let’s take the Value Changed from OpenG, This polymorphic as 30+ VIs to support all data type and array size up to 2D. But basically it’s the same VI for all data type.

 PolymorphicVI.pngI think it could be a “.vip” and when you define the connector pane you select constraint of the possible data type that can be accepted.
LabVIEW ChampionArchitect
36 Comments
bean123
Member

It probably should say "In Progress".  With 2016 a new unofficial structure was introduced called a Type Enabled Structure.  See conversation here:

 

https://lavag.org/topic/19163-vi-macros/?do=findComment&comment=119393

Darren
Proven Zealot
Status changed to: In Development
 
Tomi_Maila
Active Participant

I posted a related idea on type parameters and parametrized which would allow extending the reusable nature of type independence from VIs to custom types (classes). 

 

Type Parameters & Parametrized Generic Types

--
Tomi Maila
WG-
Member
Member

Good to hear that this is finally getting some priority.

Darren
Proven Zealot
Status changed to: Completed

Available in LabVIEW 2017. Use Malleable VIs (.vim files) to define a generic implementation for a single subVI that will adapt to multiple wired input data types.

DanyAllard
Active Participant

Great addition to LabVIEW.

 

Thank you to have completed this idea Smiley Happy

LabVIEW ChampionArchitect