12-10-2014 02:47 PM
Right now it would be my understanding, through experience, that labview won't less you pass a boolean between loop. For example, a while loop contains some code that produces and true boolean, and this while loop also contains a case structure with a for loop inside of it, so the for loop is nested in the case structure which is nested in the while loop. Is it correct that in labview you can't pass this true boolean to the case structure to execute the for loop? Or am I doing this wrong or in a way that harder than it needs to be? I'm new to labview, more similar with Java.
12-10-2014 03:13 PM - edited 12-10-2014 03:14 PM
You are probably doing it wrong because of misconceptions about dataflow.
I recommend to post a simplified version of your code (VI or at least a picture).
We are not good at reading and understanding long text description. Too ambiguous! 😄
12-10-2014 03:21 PM
Yes, sorry for not posting code, I know how much more helpful it is. Right now I am unable to though, hopefully I can post some fairly soon. It is fairly simple code though but I definitly understand
12-10-2014 04:39 PM
This is what you describe. Anywhere close to your example?
12-10-2014 04:46 PM
Yes thats exactly it, thank you for replicating it. The true value doesn't seem to trigger the for loop however, is that normal? Or do I have some logic wrong?
12-10-2014 04:57 PM
Is your for loop in the TRUE case or the FALSE case?
12-10-2014 06:11 PM - edited 12-10-2014 06:12 PM
@Hawkme wrote:
Yes thats exactly it, thank you for replicating it. The true value doesn't seem to trigger the for loop however, is that normal? Or do I have some logic wrong?
This cannot be "exactly it". Please show your actual code.
How long does the FOR loop take to complete?
12-10-2014 07:49 PM
I would like my FOR loop to run when the boolean value returns a true to the case strucuture.
12-10-2014 07:52 PM
I am unable post my code now, but will try to in the near future. If you mean how many iterations the FOR loop will run, it's really undecided at the moment, most likely about 5 or 6 iterations.
12-10-2014 07:53 PM
The actual time is of course just dependent on the iterations chosen