LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Block Diagram Alignment Question

I have an annoying problem with my block diagram screen.Smiley Mad I center my diagram such that
all of the diagram fits into my viewable window.  When I then save then open it again the entire diagram
has shifted up and to the left, almost completely out of view.  Every time I reopen the vi I have to align the window
again.  I am sure there is something simple to correct this problem but I am not sure what to do.
 
Any help is appreciated.
 
Thanks,Smiley Happy
 
price1
0 Kudos
Message 1 of 25
(4,438 Views)
Position your block diagram where you want it, then go to Edit then select Make Current Values Default then save your VI
Brian
Message 2 of 25
(4,414 Views)

brainlach,

I tried this exactly as you prescribed but still the same problem.

Thanks,

price1

0 Kudos
Message 3 of 25
(4,400 Views)
Are you making any changes to the VI other than the scrollbars?  If not, LabVIEW does not recognize that anything changed.  The editor has changed, not the diagram, so it does not save any changes even though you tell it to change.  In order to make it change the scrollbar settings, you need to make some change to the VI before you tell it to save those changes.

If you have already made changes to the VI and saved, I am not sure I have ever seen this problem before.

Hope that this helps,
Bob Young

0 Kudos
Message 4 of 25
(4,391 Views)

Bob,

I tried to make some changes to the editor and saved but still the same problem.  I tried an experiment and placed text labels in the block diagram editor to mark where the lower left and lower right positions would be after I saved the vi.  After I save the vi and close it and open it again the screen shifts over to the right.  I know labview has a grid pattern option in LabVIEW 8 and I wonder if this is having an effect on the positioning.  I was previously using version 6.0 and never had this problem.

Thanks,

Peter

0 Kudos
Message 5 of 25
(4,370 Views)
If you simply save it with the new position, it should open in the new position. That has always be my experience.
 
(Diagram position has nothing to do with making current values the default).
 
Something is seriously messed up. Maybe you can send your VI to NI.
 
In the meantime, I would try the following:
  1. Instead of moving the diagram with the scrollbars, select all items and move them so they are visible (ctrl+a selects all items in LabVIEW 8.0). Now save the VI.
  2. How big is your Diagram? Use the navigation window. Is there e.g. a stray object miles off to the left or right?

Message Edited by altenbach on 07-10-2006 06:47 AM

0 Kudos
Message 6 of 25
(4,365 Views)

altenbach,

I have tried this with creating a new vi with only text objects on the diagram to observe how they align on the screen.  I though this would be a simple fix but I guess not.

Thanks,

price1

0 Kudos
Message 7 of 25
(4,344 Views)
A ususl trick to solve some of LV's "funny" behaviour.....

Select the entire block diagram, paste to a new VI and then save under a new name.

If the problem no longer occurs, you had a slightly corrupted VI.

If it still happens, then contact NI.

Does it only happen with this single VI?

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 8 of 25
(4,340 Views)


@price1 wrote:
I have tried this with creating a new vi with only text objects on the diagram to observe how they align on the screen.  I though this would be a simple fix but I guess not.

Well, since I made several suggestions it is not quite clear which of the "this" you mean. Since you talk about alignment, you must not be using LabVIEW 8.0, but and earlier version. (In earlier versions ctrl+a aligns selected objects, in 8.0, ctrl+a selects all objects).
0 Kudos
Message 9 of 25
(4,333 Views)
Shane.
 
This happens on all my vi's and as I mentioned even if I create a new one with only text objects.
 
Price1
0 Kudos
Message 10 of 25
(4,333 Views)