LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unexpected loop expansion

Hi

I have a problem with loops automaticly expanding when I save the VI.
This is very annoying because i have to drag all the loops back in place and that can take some time.. 😕
Anyone know what the problem is?






..
Download All
0 Kudos
Message 1 of 7
(3,663 Views)

There is no reason it should do that. What is your LabVIEW version?

So are you saying the only thing you do is save it? Does it expand in realtime if you just do a "save", or is it expanded only after you open it later.

Have you tried to copy the entire code to a new VI? Does that fix it?

Can you attach an example? (well, it seems you cannot "save" the contracted version, so simply attach the expanded version and tell is how you resize. Maybe we can reproduce it.)

0 Kudos
Message 2 of 7
(3,612 Views)

I don't know if they have the same cause, but this seems very similar to the timed loop inside a while loop bug

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=288999&query.id=144630#M288999

0 Kudos
Message 3 of 7
(3,598 Views)
Just a guess here, since I can't actually see what's happening on your screen:

It could be that you had a number of objects close to the borders of your structure.  I've seen this happen with my VIs in the past.  I also noticed that adding "code" to States in the State Chart Toolkit will also often cause them to increase in size.  

If Autosizing is not to your liking however, just right-click on the border of your structure and turn Auto Grow off.   (This is what I do, otherwise my main VIs end up getting messy)
---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 4 of 7
(3,567 Views)

I suspect that it's not directly related to structure autosizing, else it would happen immediately, and not later when the VI is saved.

I always suspected that there is an obscure "diagram grow" bug, because once in a while I was running across a VI (e.g. posted here) that is so expanded that it is hard to imagine that anyone in his right mind would actually code like that. 😮 OTOH, I have not seen this in quite a while, so maybe this was something that has been improved in more recent version.

Thus my question about LabVIEW version.

0 Kudos
Message 5 of 7
(3,561 Views)
im using 8.5.

I have not tried to copy the code into another VI.. i'll try that..
The problem doesnt occurr every time i save, but just once in a while.. 😕 and it also happens if i edit some code and run it without saving..
One thing that i've noticed is that this problem occurred after I implementet a tab control..:/ but I dont know if thats the problem

Dont think it has something to do with autogrow in loops.. I've tried with and without and it still happens..


thank you for helping 🙂

Bjornar



0 Kudos
Message 6 of 7
(3,544 Views)
Hi again

Here's a simplified version of the project. Here you can see how the loop is expanding...
Please take a look and see if you can find something wrong.
Its impossible to work with the project when its expanding like this every time I save or try to run!! 😞


You need the Simulation Module to run the project.


Thanks in advance
Bjornar
0 Kudos
Message 7 of 7
(3,515 Views)