LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel while loops

Solved!
Go to solution

Hi 

I'm currently studying Mechatronics and I am pretty new to Labview.

So sorry if this sounds very basic.

I have project to where I have to detect Temperture and Humidity concurrently, and adjust them.

In my VI the Temperture While loop is working as hoped, but the Humidity While loop wont even start/Initialize. Any ideas to help. Any help would be greatly appreciated.

Thanks in advance.

0 Kudos
Message 1 of 6
(1,210 Views)

I'm running LV2019 and can't open your VI, could you do a screenshot for me, please?

Message 2 of 6
(1,203 Views)
Solution
Accepted by topic author Bandit1234

Hi Bandit,

 


@Bandit1234 wrote:

In my VI the Temperture While loop is working as hoped, but the Humidity While loop wont even start/Initialize. Any ideas to help. Any help would be greatly appreciated.


The answer is quite simple: THINK DATAFLOW!

 

You did not follow that basic LabVIEW mantra, and so the loops will not run in parallel!

This becomes easily visible once you use the AutoCleanup button!

 

Why do you need two loops at all? Why not place all into just one loop?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 6
(1,195 Views)

Humidifier VI.PNG

Temp VI.PNG

0 Kudos
Message 4 of 6
(1,190 Views)

Hi Bandit.

 

your images look different than the block diagram of the attached VI, so you edited it in the mean time!?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(1,184 Views)

I never used auto clean before. Very very useful tool.

I can see the problem with the stop button now. 

Thanks very much. Much appreciated.

0 Kudos
Message 6 of 6
(1,168 Views)