02-28-2011 02:05 PM
I was wondering what is the purpose of this loop tunnel
and this unwired loop tunnel in the program.
I need to know because I´m adding some basic features to this labview program.
Thanks in advance.
02-28-2011 02:24 PM - edited 02-28-2011 02:27 PM
...
02-28-2011 02:25 PM
The first one can be used as a way to determine execution flow as the While loop must finish before the For loop start, although it'd be better to wire an error wire to the for loop, or move '1' inside the while loop instead.
The 2nd one has no function.
From the picture i'd say keep the function 'Anal Enter' and start over with the rest. 😄
/Y
02-28-2011 02:27 PM
The upper one forces the for loop to run after the while loop by data flow. The data need not be used but the connection forces the order of execution. Of course there may be other connections not shown in your image.
Lynn
02-28-2011 02:48 PM
Given the state of the code it is quite possible the 'a' is wired to something in the second loop and the wire is "hidden". I agree with the early statement that this is a prime example of code in need of a re-write. I can't imagine how bad the entire block diagram would be.
02-28-2011 03:16 PM
Silly, but fun. 😄
/Y
02-28-2011 06:41 PM
I'd recommend not trying to re-write this program unless it doesn't work or you have a really compelling reason.
03-01-2011 01:28 AM
Well i agree, rewriting is often costly, but some cleaning up and modularizing is quite helpful for future modifications.
/Y