Loop ends abruptly

Hello. I’m trying to fill 32 tubes by doing the following:

  1. aspirate 160 uL
  2. dispence 16 x 10uL iterating through the sequence of the tubes
  3. repeat 1+2 once

If I programm this as 16x loop inside 2x loop (see screens) , then it’s executed only once filling only 16 tubes. There is no error message.

I can only fill all 32 tubes if I copy+paste the same code twice. This works but … feel lame? I’d like to understand what I’m doing wrong with the loop-inside-anotehr loop approach, if anyone could help ?




Hi Nikolay,
this is just a wild guess, but maybe the loop counter variables, that are named the same, might be the root of your problem.
HTH,
Sorro

3 Likes

thank you @Sorro - indeed this seems to be the rootcause. After updating variable name to loopCounter2 in the second look it works as expected. I didn’t realize the implication of this variable - thought the number of cycles explicitly determines the number of repeats, but it all makes sense now