04-05-2009 07:35 PM
Solved! Go to Solution.
04-05-2009 07:48 PM
The easiest way to do this is to connect the output of the temperature (your formula 3) to the second loop. The second loop won't start until it has that input, even if it doesn't use it.
See attached file.
04-06-2009 07:55 AM - edited 04-06-2009 07:58 AM
04-07-2009 08:13 PM
thanks jim, the occurrence worked out perfectly. im having another problem now though, i added one more while loop (on the bottom) to the mix and i want it to pass the boolean signal to the loop on the right that controls the pumps. the bottom loop acts as a timer that will switch off the pumps (loop on the right) after a certain amount of time has elapsed. i tried passing the boolean signal, but now the loop on the right doesn't start at all. do you have any ideas as to why this might be and have any solutions?
thanks in advance...
04-07-2009 09:29 PM - edited 04-07-2009 09:31 PM
tompkinhall wrote:now the loop on the right doesn't start at all. do you have any ideas as to why this might be...?
This is because you've got a data dependancy between the bottom and right loops; the right loop won't start at all until the bottom loop is finished.
tompkinhall wrote:do you have [...] any solutions?
You could use a Notifier between these loops. Notifiers are useful in the same way an Occurance is, with the addeded function of passing data.
A quick way would be to use a Local Variable from your Open/Closed Boolean indicator in the right loop. This is a quick way, but VERY UGLY. A good rule-of-thumb is to only use Local variables when you've given up on style!
04-08-2009 07:12 AM - edited 04-08-2009 07:15 AM
The last code capture had a mistake. This takes into account the possibility that the bottom loop won't send a notification when the right loop is ready.
11-07-2023 04:45 AM
Hello Mr. Jim
I am trying to apply your scheme on Labview NXG 3.0.2 but it seems some of the function symbols are different. In the left upper, it is "generate occurance", and in the lower part it is "wait on occurance". did I do the same to you? but why the lower loop doesnt start immediately after the iteration becomes 10?
thank you in advance
11-07-2023 05:04 AM
Hi nadhira,
@nadhira wrote:
I am trying to apply your scheme on Labview NXG 3.0.2 but it seems some of the function symbols are different.
Two problems:
11-07-2023 07:39 PM
Thank you Mr. Gerd for your answer