LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling subvi

Hi,
i had a sub-vi which consists of the codings to communicate with 2 instruments. I want to split up this sub vi into 2, such that my main vi will now have 2 sub vi, each for one instrument. i tried to duplicate the sub-vi and save the 2 new codings under differnet names. However, my main vi do not register these new codings as sub-vi. Is it possible for me to import them into this main vi? or do i really have to write out the coding for one instument again?
Thanks,
adeline
0 Kudos
Message 1 of 2
(2,425 Views)
Adeline,

You have done half of what you need to do. Go to the diagram of the main VI. On the functions palette go to "Select a VI..." This will bring up a file dialog. In that dialog select your renamed sub-VI and place it onto the main VI diagram. Wire its inputs and outputs appropriately and it should work.

Lynn
0 Kudos
Message 2 of 2
(2,425 Views)