LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling SUB VI.....

Hello,i am now making a VI that i would use the sub VI to run it.
however, when i press run in the "mother VI", instead of showing
results in the "mother VI", its the sub VI show me the results and
run, the "mother VI" didnt run....

the sub VI, its made by myself, and store it on desktop and call it by
using the FUNCTION==> select VI...

is it correct?
0 Kudos
Message 1 of 5
(2,943 Views)
The sub-vi must be placed in the diagram pane of the 'mother' vi. If you want the results from the sub-vi to be displayed in the mother vi, you must pass the data from the sub-vi using the connector on the sub-vi. (Right click on the icon, and connect the indicators to the appropriate terminals.)
>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 5
(2,943 Views)
thanks a lot...
I have made the connector terminal, also copy the indicator from the
mother vi to the sub vi...and also i have tried to create the
indicator on the mother vi by right clicking the sub vi,
but still, the indicator of the mother vi is not working, will there
be any possible errors that i have made?
0 Kudos
Message 4 of 5
(2,943 Views)
oh..i have just discovered that, my mother vi. actually is working,
but it only shows me the results at the end of the running, but not
like the indicators of the sub vi. , showing me the results throughout
the running.

What can i do to make the indicators i create in the mother vi, just
the same as those of the sub vi, keeping on showing and updating the
results from the beginning to the end?

thanks a lot! it would be great if u can help me!~~~
0 Kudos
Message 5 of 5
(2,943 Views)
Hi Crystal,
A more precise explanation about the application might help get a better understanding of the issue. Do you have anything on the main VI "mother vi", like a indicator or something that's connected to the subvi or is the subvi just sitting there without any connections to controls or indicators on the main vi?

A good place to start would be chapter 7 of the LabVIEW user's manual.
http://digital.ni.com/manuals.nsf/websearch/41D51FD466ECE0CB86256AD500622746?OpenDocument&node=132100_US

You can also use the Application Control VIs and functions located on the Functions»Application Control palette to control how VIs behave when called as
subVIs or run by the user.

Hope this helps.
Regards,
Pravin
0 Kudos
Message 3 of 5
(2,943 Views)