LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in adding Structures (Sequence, While loop, Case, etc.) in VI

I have developed an application using the LabVIEW Professional Development System 6.1. To fix some of my programing bugs I need to edit the VI. But when I add any Sructures, like Sequence, Case, while loop etc. the VI does not SAVE. The VI goes to an endless loop & it has to be forcefully END TASKED. Please any Clue !!!
0 Kudos
Message 1 of 6
(3,169 Views)
Hi Ravinder,

still using LV6.1 !? Smiley Wink

What do you mean by "endless loop"? While running or while saving? Does it show any "insane object error" before? What about deleting some (smaller parts) of the code and saving the vi then (under a different name)?

Can you attach your vi here?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,158 Views)

I was running ne of my VI's and was able to save it while it was running..  Not that I usually do that 😉

I would suspect that you have a loop that does not have any wait inside it.  SImply add a delay, as small as 1ms so that the CPU can process interface items.  You can verify this by the fact that the CPU reaches 100% on a single core CPU and probably 50% or greater or dual-core.

You should also make sure there is a way to stop loops, even adding a STOP button to a while loop (ORing it); especially when developing code.

RayR

0 Kudos
Message 3 of 6
(3,137 Views)
The way I understand the question is that the VI can no longer be saved after editing, but gets in an endless hourglass instead.
 
This can have many reasons. It could be LabVIEW or some OS problem.
  • Are your VIs on a network location that is very slow or read-only?
  • Is your disk highly fragmented?
  • How full are your disks. Is there room in the temp folder location?
  • Do you have errors on the disk (run a full "scandisk")
  • Does the same happen if you add a structure to a new VI and try to save?

Anyway, 6.1 is ancient. Have you considered upgrading? 😉

 

0 Kudos
Message 4 of 6
(3,128 Views)
Also, what is your OS?
0 Kudos
Message 5 of 6
(3,122 Views)

We all need the definition of "endless loop" 😉

Is it while running or when inserting a structure?

0 Kudos
Message 6 of 6
(3,101 Views)