LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Identical VIs for different processes

Hi everybody!


I have a project to monitor three identical processes (i.ex., A, B and C) which have the same VI.
To run this project I created three identical VIs and I placed its respective controls.
I'll increase this project in the future repeating the same process (D,E, F and G) but I wouldn't like to need to recreate 4 new VIs.

 

Is there any way to use just only one VI and just change the controls?

 

Thank you very much!!

0 Kudos
Message 1 of 4
(2,496 Views)

If I understand you write, you need to create clones of a single VI to have multiple running at once.

 

Check these links for dynamically cloning VIs from a VI template (vit) file.

 

http://digital.ni.com/public.nsf/allkb/49334E1013800E4886257A6800782495

 

https://decibel.ni.com/content/docs/DOC-21616

 

https://decibel.ni.com/content/docs/DOC-7721

 

The last one also deals with subpanels which may be of use to you as well.

Wire Warrior

Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!
0 Kudos
Message 2 of 4
(2,492 Views)

What exactly do you mean by "change the controls"?  Can you more details about what exactly is different between these VIs?  If done correctly, you could probably just create a single VI and set the reentrancy to preallocate for each instance.


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 4
(2,482 Views)

Hello, Wire_Warrior!

 

Thank you for the quick answer.

I have a HMI that has a Main VI with 3 buttons (process A, process B and process C). Each button call the process (process_A.vi, i.ex.) one at a time.

Each process VI has many controls like numeric controls, numeric indicators, gauges, and inputs and outputs of my cRIO.

What I'd like to do is build a VI where each process button loading its respective controls.

Is that possible?

 

Thank you again!

0 Kudos
Message 4 of 4
(2,480 Views)