03-03-2021 09:23 AM
Hi,
I want to create a subvi with a terminal that can be used to define a data type. In a similar way, for example, as the Create Network Stream Writer Endpoint has a data type input.
The only thing I found so far that seems related are malleable vi's, is this a use case for that?
Could anybody point me in the right direction on how to implement this?
thx.
Solved! Go to Solution.
03-03-2021 11:25 AM
03-03-2021 11:37 AM
@sopapo wrote:
The only thing I found so far that seems related are malleable vi's, is this a use case for that?
Yes.
Altenbach's link is one way to go, but if you prefer a video there's this presentation from NI week that does a pretty good job too. It's a bit blurry on the screen but all of the code examples used are in the LabVIEW "examples" folder that installs with anything from LabVIEW 2017 and later, so if you just open them and follow along it should be fine.
03-03-2021 11:55 AM
Just for completeness, your other option is a polymorphic VI.
Malleable VI:
Polymorphic VI:
I actually have one setup where I have a Malleable VI that is used as the core for several instances of a Polymorphic VI. Don't try to think about it too much.