From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

LabVIEW program hang after starting

Solved!
Go to solution

When i click run once/continuously, my program will cause my laptop to hang and had to force restart the pc.

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

You must be doing something very wrong if you actually need to restart the laptop instead of just aborting run.

 

Could you save your VI for older version (2018 or 2019) please?

0 Kudos
Message 2 of 6
(1,091 Views)

I can't look at the code, but do you have some greedy loops? That can cause the computer to be very sluggish, but you should be able to use ctrl+alt+delete to get the task manager and abort it.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(1,079 Views)
Solution
Accepted by topic author Ziheng

You have a while loop that is functionning at maximum velocity ==> meaning your computer CPU capacity.

You need to add a waiting time (even a small one) to minimize your CPU usage.

slow_down.png

 

Message 4 of 6
(1,078 Views)

thank you! my problem is solved after implementing a Wait 

0 Kudos
Message 5 of 6
(1,075 Views)

@Defaphe wrote:

You have a while loop that is functionning at maximum velocity ==> meaning your computer CPU capacity.

You need to add a waiting time (even a small one) to minimize your CPU usage

 


So it was a Greedy loop? Good guess from me. 🙂

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(1,063 Views)