LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Reference vs. Sub-VIs

I wanted to hear from the users in this forum about the pro/cons of Opening VI as a reference, as opposed of simply calling it as a sub-VI. I am interested in performance and best cases to used one over the other.

 

Thanks in advance,

 

Santiago

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

You can call up multiple copies/clones of a VI using vi server. This is a good solution if I don't know beforehand just how many times I'll need a particular piece of code or if it might change during normal operation of the application.

PaulG.
Retired
0 Kudos
Message 2 of 3
(2,440 Views)

FightOnSCTrojan wrote:

I wanted to hear from the users in this forum about the pro/cons of Opening VI as a reference, as opposed of simply calling it as a sub-VI. I am interested in performance and best cases to used one over the other.

 

Thanks in advance,

 

Santiago


Provided you open the refs once ahead of time the performance differences are so small it would be hard to measure.

 

Suprising?

 

That is exactly (well sorta) what LVOOP does with dynamic dispatching.

 

I have to tip my hat to those LabVIEW R&D people. It makes my head spin thinking about "How did they do that?"

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,433 Views)