02-10-2010 10:23 AM
Hello All,
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.
Regards,
Nishant
Solved! Go to Solution.
02-10-2010 10:29 AM
02-10-2010 10:36 AM
Hello Gred,
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?
Regards,
Nishant
02-10-2010 10:39 AM - edited 02-10-2010 10:40 AM
Hi Nishant,
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...
02-10-2010 10:42 AM
02-10-2010 10:48 AM
02-10-2010 11:56 AM
Hello Dennis,
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.
Regards,
Nishant
02-10-2010 12:02 PM
02-10-2010 12:14 PM
Hello Dennis,
But that would not do as the open window will be called continuously and it will return the error.
Regards,
Nishant
02-10-2010 12:34 PM
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.