From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why These two while-loop can not run parallelly ?

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 7
(2,628 Views)

Hi,

 

Can you repost your VI in some older LabVIEW versions, So everyone can have a look.

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 2 of 7
(2,617 Views)

thank you for responce

 

 

0 Kudos
Message 3 of 7
(2,614 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(2,592 Views)
Solution
Accepted by topic author shiiuen

Hi,

 

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

0 Kudos
Message 5 of 7
(2,582 Views)

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.

_____________________________
- Cheers, Ed
0 Kudos
Message 6 of 7
(2,567 Views)

Oh, I see, that explains the matter.

 

Thank you very much.

 

 

0 Kudos
Message 7 of 7
(2,555 Views)