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: 

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,094 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,089 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,077 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,076 Views)

thank you! my problem is solved after implementing a Wait 

0 Kudos
Message 5 of 6
(1,073 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,061 Views)