10-21-2011 01:29 AM - edited 10-21-2011 01:31 AM
I place two same while-loop in the block diagram and then use highligt and single step executing function to observe their parallel running.
But I discover that this two loop run alternatively, and can not run simultaneously.
Anyone can help me to understand this ?
My software enviorment:
OS: Windows XP SP3
Labview: 2011 Student Editions
CPU: intel P8400
Solved! Go to Solution.
10-21-2011 01:59 AM
Hi,
Can you repost your VI in some older LabVIEW versions, So everyone can have a look.
10-21-2011 02:05 AM
thank you for responce
10-21-2011 03:16 AM - edited 10-21-2011 03:17 AM
Hi shiiuen,
those two loops run in parallel...
But you explicitly "use highligt and single step executing function"! What do you expect with single step execution? And highlighting will always show step-by-step execution, so what do you expect here?
10-21-2011 04:15 AM
Hi, GerdW
Thanks for reply
I post a video to illustrate my question.
While I press a highligh and run, I find that these two loops do not start at the same time.
While a loop run, the border of other one became dark.
It seems that while loop 1 run one iteration, the loop2 keep waiting. and then the loop2 run one iteration while loop1 keep waiting.
I do not know why that happens
Sincerely
10-21-2011 04:26 AM
As GerdW said, selecting highlight and/or single step shows one step at a time. It is a debugging environment.
Turn off highlight and the loops will run in parallel during runtime.
10-21-2011 04:32 AM
Oh, I see, that explains the matter.
Thank you very much.