03-19-2012 02:03 AM
My main and sub VI's are attatched.
Solved! Go to Solution.
03-19-2012 02:15 AM
03-19-2012 02:29 AM
@danil33 wrote:
Re: sub VI not executing with the main VI.
When you start your main program, the subVI is called and the main VI must wait for the subVI to complete before it can continue. However, the subVI is not set to open the front panel, so most likely it will run in the background for 100 seconds (1000 iteration at 100ms), because nobody can press the stop button early to terminate the subVI. Once the subVI completes, the last value is handed over to the main VI via the output connector and the main VI can process and display that last value. At this point, the main VI stops because it is done (I hope you are not using "continuous run" mode).
Obviously, you have some beginners misconceptions about dataflow. Please tell us exactly what you expect the program to do and we might be able to point you in the right direction.
03-19-2012 02:55 AM
Actually, independently sub VI is working properly.But with the main VI there showing an error that is NOT EXECUTING.Please give me a solution.
03-19-2012 03:02 AM
My aim is to give continuous input to the thermometer.And I would like my thermometer to gradually increase the mercury level.But no movement in the mercury level.While running in the highlight execution mode I came to know that multiplier is not getting any inputs from the sub VI.
03-19-2012 03:08 AM
Why would you use a subVI for this. Place all code inside a single while loop, all in one VI.
03-19-2012 03:11 AM
@danil33 wrote:
Actually, independently sub VI is working properly.But with the main VI there showing an error that is NOT EXECUTING.Please give me a solution.
If the subVI is already running, you can no longer start the main VI. For the main VI to be able to use the subVI, the subVI cannot be already running..
03-19-2012 06:10 AM
Thanks
01-13-2025 12:22 PM
You can use Function globals or Globals to get the data from SubVi,But you must run both vI's Together.
01-13-2025 05:00 PM
@Sriee wrote:
You can use Function globals or Globals to get the data from SubVi,But you must run both vI's Together.
How does this relate to the topic of this 12+ year old thread that is already marked as solved?