06-24-2009 05:24 PM
For example, let's say I created a VI with two loops...is there a function or way to allow only 1 of the loops to operate if a certain criteria is met?
So let's say if the number is greater than 10, loop 1 will execute but if the number is less than 10, loop 2 will execute.
I was thinking of something like a "if, else" kind of statement but I can't seem to find anything similiar to that in LabVIEW.
I didn't attach my VI because I haven't been able to figure out what functions to use yet. Any help would be greatly appreciated.
06-24-2009 05:43 PM - edited 06-24-2009 05:45 PM
06-24-2009 05:45 PM
Another way.
06-24-2009 06:55 PM
I think you are approaching this from the wrong end.
Why not use a single loop containing a case structure with the two code alternatives? That would make much more sense. 😄
06-24-2009 11:42 PM
If the requirement is to run both loops simultanously use two case structures with in a loop
otherwise you could use them in two different states with a statemachine architecture
Sundar.