LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview freezes when opening specific VI

Solved!
Go to solution

Labview crashes when opening a specific VI.

Windows 10 labview professional.

Error occured in labview 2019 also in labview 2020. (no other versions tested)

Front panel still visible but labview freezes when opening the block diagram.

Only occurs in the VI attached below. Backup of the VI has the same issue.

This file has been opened successfully a few hours ago.

Can someone please decrypt this file and recover the contents.

Download All
0 Kudos
Message 1 of 2
(1,238 Views)
Solution
Accepted by topic author User555

Hi 555,

 

whoever created that VI did not learn much about LabVIEW!

You should recreate this VI from scratch:

  • Don't use local variables when you can use a wire. Use shift registers in loops!
  • Typedefine enums and clusters.
  • You can do calculations with (numeric) clusters, no need to unbundle first!
  • Sequence frames almost never are needed.
  • Don't use QuitLabVIEW inside the loop.
  • Why do you need HighResolutionPollingWait to wait for one second???
  • NEVER (never ever!) delete the label of a control or indicator!
  • Even the connector pane is setup in the wrong way!

 

It looks like this:

 


@User555 wrote:

Backup of the VI has the same issue.

This file has been opened successfully a few hours ago.


Get an even older version of this VI from your SCC system (Source Code Control).

Implement a SCC system when you don't use it so far!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Download All
Message 2 of 2
(1,235 Views)