Currently, I am facing the problem that once i call a sub-vi, the control goes into the sub-vi.
How can i program it that once i call a sub-vi, the control goes into the sub-vi, complete the necessary task and comeback to the original vi and same can be done again in the loop?
Your help would be highly appreciated.
Thanks in advance.
Solved! Go to Solution.
make an indicator in the subVI and connect it to the connector pane too...
There is an Error Out indicator there in the VI. But, still the problem exists.
So, will this work? Or shall i create one specific indicator?
I don't know how the error out will help you (apart from controlling dataflow).
In the subVI: right-click the control's terminal, create indicator, connect control's terminal and newly created indicator, wire indicator to connector pane.
Now the control, that is wired to the subVI, will be forwarded "through" the subVI... Isn't it what you need?
And, please, type my name correctly...
Yeah, i have used the while loop inside the sub-vi and not showing the front panel of sub-vi.
Here with this I have attached the vi that i am using for sub-vi, can you suggest me modification in that?
Thanks for the help.
But that would not do as the open window will be called continuously and it will return the error.
That makes no sense to me. Each time you call the subVI, you would presumably be passing a new project path, library path, and variable array. Your subVI should have the Close Window method in it. The while loop does not serve any purpose. It would add the variable names and then return.