ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dependent Sub-VIs

Hello,

 

I have downloaded a program, the ‘USB-6501 Interactive Control’ and I’m surprised because there is only one Sub-Vi, but it appears four times. If I change something in one Sub-VI, the rest of Sub-Vis will automatically be changed and that’s not what I need to do. In fact, I would like to use every Sub-VI independently and do different modifications. Does anybody know what I need to change to have four independent Sub-Vis? I guess it will be an option somewhere.

Thanks in advance.

Vicente

0 Kudos
Message 1 of 3
(2,929 Views)
Go to explorer and make 4 copies of the VI, then open the main VI and replace each instance with a different copy.

Since you only have 4 this should suffice.

André
Regards,
André (CLA, CLED)
Message 2 of 3
(2,920 Views)
Hi,

What André said is correct. When you call a sub VI, you refer to that sub VI like a function call. If you change the sub VI, the function you are calling (all four instances of it) is altered. Therefore by making 4 copies of the file on your hard drive, you are effectively calling 4 separate functions. You can then alter each function individually for use in your VI.
Tom

Applications Engineering, NI UK
0 Kudos
Message 3 of 3
(2,889 Views)