Hi PetrB
I tested your vi. Results are unexpected.
Upper loop runs to 10 and stops.Down loop keeps running and it should not, because the inputs to AND gate are TRUE.
I deleted down loop and copied upper loop ant Now they stop at 10.
I don´t know your DLL, so try to make it reentrant to avoid side efects.
Hope this helps.
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------