LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Malleable VIs with parameters

Solved!
Go to solution

Hi All,

I have a need of parametrizing the malleable VI, or to be more generic any inlined SubVI.
The basic question is: is it possible to access the BD constants of the malleable (inlined) SubVI (with scripting for example) and store there different data for each instantiated malleable VI (like with the express VI)?

Are there any other methods of achieving what I need?
The example use case would be (it is not my use case, it is just an example 🙂 😞 instead of connecting constant to the Stall Data Flow.vim double click it and set the desired delay.

0 Kudos
Message 1 of 5
(2,905 Views)

Dear community,

I think I have found the solution myself 🙂
I have to test the approach before sharing but it looks promising until now.

Expected result is in the attached zip.

After running the magic.vi you should get out=1, out 2=14.

0 Kudos
Message 2 of 5
(2,877 Views)

You did not include the VIM in your zip file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(2,866 Views)

With that User icon your should spell your user name as gPIotr. 😄

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(2,854 Views)
Solution
Accepted by topic author graPI

ahhhh those damn attachments 🙂

A small update as well.
Now the values are numeric with out=0 and out=1 - but it does not matter.

What does is that it remains like that when the application is distributed as a shared library for example (I suppose that it should hold as well for exe and any other type of distribution).

Download All
0 Kudos
Message 5 of 5
(2,833 Views)