07-22-2024 10:12 AM
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!
07-22-2024 10:48 AM
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
07-22-2024 11:08 AM
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:
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
07-22-2024 11:23 AM
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.
07-22-2024 11:39 AM
I’ve encountered this issue in one of my LabVIEW VIs, specifically the main VI. Here are the symptoms:
Front Panel Behavior:
Block Diagram Behavior:
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.
07-22-2024 12:43 PM - edited 07-22-2024 12:47 PM
@ABDENACER wrote:
I’ve encountered this issue in one of my LabVIEW VIs, specifically the main VI. Here are the symptoms:
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.
07-22-2024 04:42 PM
@Kyle97330 wrote:
@ABDENACER wrote:
I’ve encountered this issue in one of my LabVIEW VIs, specifically the main VI. Here are the symptoms:
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.)
07-23-2024 03:51 AM
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.
07-23-2024 09:44 AM
Can you copy everything from the diagram and paste onto a new VI?
07-23-2024 11:13 AM
@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.