LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

freezing labview

I’m encountering an issue with LabVIEW 2024 where the application freezes during editing. When I open LabVIEW, the interface appears fine, but as soon as I try to make modifications to my VIs, it freezes without any error messages. I’ve tried restarting my PC, but the problem persists. I’ve also tested it with LabVIEW 2020, but the issue remains. CPU and SSD activity seem normal, I'm obliged every time to close the programe frome Task Manager. Has anyone else experienced this, and if so, how did you resolve it? Any insights would be greatly appreciated!

0 Kudos
Message 1 of 13
(615 Views)

Ouch!  Sounds like a badly-installed version(s) of LabVIEW.  I see that an earlier post involved LabVIEW 2012 and possibly other versions of LabVIEW, which makes installation-related issues more likely.  LabVIEW installation can be somewhat tricky.

 

Can you provide some history for us?  Please list the versions (Version number, including SPx, and whether 32 or 64-bit) are installed, along with who installed them.

 

Have you ever tried to remove NI software from your computer?  This is a potentially "more dangerous" step, especially if combined with "cleaning the Registry".

 

Bob Schor

0 Kudos
Message 2 of 13
(593 Views)

Over time, I had accumulated various versions of LabVIEW, including 2012, 2017, 2020, 2022, 2023, and 2024. Some of these were 32-bit editions, while others were 64-bit. Additionally, there were both professional and community versions in the mix.

However, last month, I decided to streamline my setup. As a result, I removed all LabVIEW versions except for the following two:

  1. LabVIEW 2024 Professional Q1 (64-bit)
  2. LabVIEW 2020 Professional (64-bit)

Ps: i was working with 2024 community edition until i got the professional version so i deleted the first one and installed the pro one 

0 Kudos
Message 3 of 13
(578 Views)

Have you tried doing a "repair" of all installed components using NI package manager?  It might not help, but probably won't hurt.

 

When you say "as soon as I try to make modifications to my VIs", do you mean "when I modify literally anything at all" or are there some things you can do and some things you can't?

 

The reason I'm asking is because some actions in the LabVIEW editor run differently than others.  Some may scan some of the LabVIEW user directories, and some might run some LabVIEW code in the background.

 

There was a post a few months ago where a guy had a lock-up occur whenever he right-clicked on a class constant or wire and at no other times.  It ended up being a problem with one of the "right-click" plugins, because whenever you right-click on something in LabVIEW, a bunch of plugins run to see if they need to add something to the right-click menu that comes up, and one of them was failing so badly it rendered his LabVIEW unusable until he deleted it.  It was one of the premade plugins that ships with LabVIEW, so it's not like it was an extra feature he installed.  I don't think we ever got details on why it failed specifically.

 

If you can do some things but not right-clicking, you can remove all the plugin code that runs when you right-click by moving everything in this folder to a separate location (so you can put it back if that's not the problem):

<your LabVIEW folder>\resource\plugins\PopupMenus\edit time panel and diagram

 

However, even if it's not that, if there are consistently some things you can do and some things you can't, then the problem can be narrowed down.

0 Kudos
Message 4 of 13
(564 Views)

I’ve encountered this issue in one of my LabVIEW VIs, specifically the main VI. Here are the symptoms:

  1. Front Panel Behavior:

    • I can make modifications on the front panel.
    • However, after a certain point, the program freezes.
  2. Block Diagram Behavior:

    • In the block diagram, I’m unable to perform any actions.
    • Even a simple left-click or scrolling results in freezing.

It’s important to note that this issue is isolated to this specific VI. Other VIs within the same project or different projects run normally without any freezing problems.

0 Kudos
Message 5 of 13
(553 Views)

@ABDENACER wrote:

I’ve encountered this issue in one of my LabVIEW VIs, specifically the main VI. Here are the symptoms:

  1. Block Diagram Behavior:

    • In the block diagram, I’m unable to perform any actions.
    • Even a simple left-click or scrolling results in freezing.

It’s important to note that this issue is isolated to this specific VI. Other VIs within the same project or different projects run normally without any freezing problems.


OK, this is potentially important information.

 

Is there a chance this VI has an exceptionally large block diagram?  When block diagrams get over a certain size (32k pixels) they develop problems:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LqySAE&l=en-US

 

To view the current size of your diagram, go to Tools » Profile » VI Metrics and select the check box named Diagram. You'll probably need to stretch the metrics panel horizontally a bit to see the block diagram dimensions.  VI Metrics is only available in the LabVIEW Professional Development System, so it won't work if you're on Base or Full.

 

Adding most things to the front panel means that the terminals for these are being added to the block diagram, so you're still changing the block diagram by doing this.

0 Kudos
Message 6 of 13
(546 Views)

@Kyle97330 wrote:

@ABDENACER wrote:

I’ve encountered this issue in one of my LabVIEW VIs, specifically the main VI. Here are the symptoms:

  1. Block Diagram Behavior:

    • In the block diagram, I’m unable to perform any actions.
    • Even a simple left-click or scrolling results in freezing.

It’s important to note that this issue is isolated to this specific VI. Other VIs within the same project or different projects run normally without any freezing problems.


OK, this is potentially important information.

 

Is there a chance this VI has an exceptionally large block diagram?  When block diagrams get over a certain size (32k pixels) they develop problems:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LqySAE&l=en-US

 

To view the current size of your diagram, go to Tools » Profile » VI Metrics and select the check box named Diagram. You'll probably need to stretch the metrics panel horizontally a bit to see the block diagram dimensions.  VI Metrics is only available in the LabVIEW Professional Development System, so it won't work if you're on Base or Full.

 

Adding most things to the front panel means that the terminals for these are being added to the block diagram, so you're still changing the block diagram by doing this.


In addition, this can be caused by having the amount of undo steps too high.  (It is recommended for this value to set to 15 or so.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 13
(530 Views)

When I attempt to open th VI Metrics, I encounter an endless loading circle—it doesn’t allow me to check any boxes or click on anything except for the “Quit” button.

0 Kudos
Message 8 of 13
(479 Views)

Can you copy everything from the diagram and paste onto a new VI?

 

George Zou
0 Kudos
Message 9 of 13
(455 Views)

@ABDENACER wrote:

When I attempt to open th VI Metrics, I encounter an endless loading circle—it doesn’t allow me to check any boxes or click on anything except for the “Quit” button.


How long did you let it go?  It is not only looking at that VI but also all its subVIs, so it can take a while for VIs at the top level as it probes all of the dependencies.

 

If this is a main VI that's part of a large project, maybe if you isolate it by temporarily copying all the other members of the project it's in to a temporary directory somewhere that LabVIEW doesn't search then you can load it and check it's stats quickly.

0 Kudos
Message 10 of 13
(449 Views)