LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

growing case structures

I am using labview 8.2.1 and when using the state diagram editor when ever I add a new state or a new transistion it causes the case structure on my block diagram to grow very large in every case.  please let me know what I might be doing wrong and how to keep this from happening.
0 Kudos
Message 1 of 12
(4,450 Views)

Can you show us a screen shot (image) of your case structure?  or upload the code?

Thanks

0 Kudos
Message 2 of 12
(4,431 Views)
I can not up the code.  What we think has happend is that I have resized smaller and moved the inner while loop transition to the left side of the case structure instead of the lower right.  This was done to increase space.  When we go back to the state machine editor and add new states and transitions the case structures grow.
0 Kudos
Message 3 of 12
(4,416 Views)

I have seen this and not had time to pursue further.  You can recreate it by doing the following:

Use the State Diagram Editor to create a simple state machine with a couple of states. 

On the block diagram select a state using the case statement.  Grab the inner while loop that handles the next state decision and move to the upper right corner of the main case statement.

Now go back to the state editor and add a transition to the state you just modified on the block diagram.  Check your block diagram.  You should see that the inner while loop has grown in size.

Message 4 of 12
(4,415 Views)
This appears to be the same issue in this topic, which discusses a work around:

http://forums.ni.com/ni/board/message?board.id=170&message.id=217549&requireLogin=False

Trey B
Applications Engineering
National Instruments
0 Kudos
Message 5 of 12
(4,377 Views)

Trey,

That was an issue with the state transition diagram growing NOT the block diagram.

I have always sized that decision loop down and to the right and have not seen that problem.

Maybe shutting off "Auto-Grow" may help.

Trey,

Could you try to duplicate the issue as per Centerbotls instructions?

This sounds lik a NEW bug.

Ben

PS: Judging by the new tool and the lack of bug-fixes for the SDE, the hand-writting on the wall reads "no bug fixes"

 

Message Edited by Ben on 09-10-2007 12:41 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 12
(4,372 Views)

When this first happened I had to go into each case satetment and resize by hand.  I then shut auto grow off in every case statement and while loop.  The problem still accured.

I am trying to up date my code by editing the state diagram adding new states and transitions.  When I am done I go to the block diagram and everything is blown out usualy up and down about 4 to 5 screens.

0 Kudos
Message 7 of 12
(4,362 Views)
One othe note,  when I had to drag everything back by hand I found it easyer to put the desision statement to the left side of the case statement not knowing that it would matter where it was.  I did this because the case statement would not resize if there was anything in the way.  I do not know if there is a switch I do not have set which will move your code as you resize your case statements.
0 Kudos
Message 8 of 12
(4,356 Views)
Ben is correct.  I've filed this issue internally (ID: 4DA9O3Z3).

I also noticed that auto-grow does not change the behavior.

Trey B
Applications Engineering
National Instruments
Message 9 of 12
(4,310 Views)
I think I have come up with a fix for the problem which seems to be working.  What I did was to disable auto grow on all case structures and while loops even the decision structures.  Then I went into tools/options/blockdiagram and disabled place structures with auto grow enabled. last I made sure that the decision case structure was in the bottom right section of all case structure. Now when I edit any of the state diagrams them seem to behave.  From now on I will not touch the decision structure and auto grow will be off.
 
Thank you to all who replied.
 
Paul
Message 10 of 12
(4,295 Views)