08-09-2013 01:52 PM
Hello,
I have a VI that has two loops. I have an LED indicator in one loop and when that LED is true I want it to trigger the second loop. How should I go about doing this? I tried using a local variable but the second loop just wouldn't trigger.
Thanks in advance,
Cassidee
Solved! Go to Solution.
08-09-2013 01:55 PM
Please post your VI.
It would be a lot easier to understand what it is you are trying to do and figure out why it isn't working if we can see some code. Your written explanation just can't do it justice.
08-09-2013 01:58 PM
My VI is actually doing tons of things and is huge and would be confusing to someone who isn't familiar with it. In short, there are two large loops. An indicator is in one. I want that indicator to trigger the second loop. Hopefully what I'm asking is clear.
08-09-2013 02:06 PM
Here. I made a simplified version. The second loop condition is unwired because I do not know how to trigger it. The indicator I want to trigger the second loop is titled System is Draining Valves are Open.
08-09-2013 02:28 PM
What exactly do you mean by "trigger a loop"?
You don't trigger loops. You can trigger event structures. You can "trigger" actions within other structures like causing particular cases of a case structure to execute instead of others.
08-09-2013 02:55 PM
Ok so I put a case structure around the loop, but now I need to set a condition for the case structure. The condition for the loop is governed by an indicator in the first loop...
08-09-2013 04:57 PM
Why not use a producer consumer loop..
Quick example attached..
Shane.