06-03-2016 11:00 AM
I want to be able to turn on a led when a for loop has finished, I wired an array to the for loop, so I don't know how many times it will iterate, because I wired an array, which comes from all files in the recursive file list. Can someone please help me figure this out?
Solved! Go to Solution.
06-03-2016 11:25 AM
Think dataflow, simply have your LED write depend on data passed from the loop (an error wire for instance).
06-03-2016 11:26 AM
06-03-2016 11:34 AM
Don't worry about the last function, it's just a placeholder. The idea is that it won't execute until the for loop has finished because it is waiting on information from the error wire.
06-06-2016 09:46 AM
Hello nando
I attached you a pic, we are comparing the iteration terminal, and if it becomes greater than 0, we will have a True as output
06-06-2016 10:15 AM
@KIKEV89 wrote:Hello nando
I attached you a pic, we are comparing the iteration terminal, and if it becomes greater than 0, we will have a True as output
And suppose the loop runs exactly 1 time? Then the i value will be finished at 0, it is not greater than 0. The boolean won't light even though the loop is done running.