05-04-2017 03:35 AM
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
05-04-2017 04:28 AM
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
05-04-2017 09:22 AM
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
05-04-2017 02:57 PM
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.
05-05-2017 04:10 AM
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 !