LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving objects

Hi to All, I have a generic inquiry referred to a fastidious item during diagram and panel editing: when I design a diagram with some controls and/or indicators in the front panel and I work on it, and consequently I save, close LV, open it again many times, I see that both objects in the front panel and relative items in the diagram move slightly each time (right, down, ...). Is it possible to automatically keep fixed the position of each object when I position it ?

Many thanks

Giuseppe

0 Kudos
Message 1 of 5
(3,439 Views)

hi johnhug, i have no idea why your FP items move by themselves,

but you can set positions for your FP items programmatically with property nodes (Bounds, Position).

 

regards jwscs


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 2 of 5
(3,413 Views)

I've read other forum posts where things like this happened because the block diagram was too large.  What is the size of your block diagram?  Tools -> Profile -> VI Metrics

aputman
0 Kudos
Message 3 of 5
(3,372 Views)

I could see this happening theoretically if your front panel is huge and drastically scaled.  Since front panel object locations are described in integers, maybe the scaling involves some kind of fraction that makes it shift by a pixel each time... Just a guess.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 5
(3,347 Views)

Many thanks for your replies. Both the front panel and diagram are huge with hundreds of elements in many tab controls some of which are hidden for developing purposes and not visible to the users. I have no scaling active on objects when windows resizes. At start up I read the monitor resolution and I calculate the optimal dimension of tabs, graphs, ... and I position all items of interest consequently (starting from 0,0): it works fine. The point is that I don't want to define the position of all other elements (a lot) that I use for control purposes and that are part of algorithms calculation and so on . The most frustrating part is the diagram with wires, structures, numeric (add, sub, ...), ... that each time move: if I can periodically get a block of elements that moved in one panel and reposition all together, this job is not so easy to perform in the diagram where the starting cleanliness and tidiness of wire connection is lost every time. In any case I made now a simple test just to try to understand and quantify a little bit, adding a numeric indicator connected to anything with a property node reporting it's position displayed on the screen: depending on the place where I put the indicator, each time I restart the software, I can see always the same position in some cases or I can see this numeric indicator "moving" with a difference each time of 5 pixels in horizontal (from left to right) and 1 pixel in vertical (from top to bottom) even if I put this element in a tab control which position is fixed at start up !

0 Kudos
Message 5 of 5
(3,324 Views)