02-06-2019 10:53 AM
@ssingh1 wrote:Thanks for your reply. I could not exactly understand your words "origin is way off center".
Did you meant to say that some stray block diagram object may be lying far away that the rest of the Block Diagram's center? I checked on that and center seems to be ok to me.
I am wildly guessing here. What are the coordinates of the top left element, for example. If it would be near the bottom right edge of the valid coordinate system, you might run into issues too. Not sure. What is the history of the block diagram? For example did you do a lot of diagram cleanup operations?
Did you try to do a ctrl+a (select all) followed by pasting the diagram into a fresh VI to see if the problem remains?
02-07-2019 02:49 AM - edited 02-07-2019 02:51 AM
@altenbach wrote:
@ssingh1 wrote:Thanks for your reply. I could not exactly understand your words "origin is way off center".
Did you meant to say that some stray block diagram object may be lying far away that the rest of the Block Diagram's center? I checked on that and center seems to be ok to me.
I am wildly guessing here. What are the coordinates of the top left element, for example. If it would be near the bottom right edge of the valid coordinate system, you might run into issues too. Not sure. What is the history of the block diagram? For example did you do a lot of diagram cleanup operations?
Did you try to do a ctrl+a (select all) followed by pasting the diagram into a fresh VI to see if the problem remains?
Dear Altenbach and All Friends,
Thanks for your reply. I am attaching Demo VI with only two states remaining of my Full VI but it is still able to replicate problem.
On the Block Diagram try to move using keyboard any item and see. Though in this Demo VI problem (of VI Block Diagram expansion) is self corrected after moving any item for few steps and in the main VI it keeps on moving and is slow too.
Thanks
02-07-2019 02:58 AM
02-07-2019 10:48 AM
I tried opening your Demo1 in LabVIEW 2017. I don't have the JKI State Machine installed, nor the ADO Toolkit, so I "ignored all errors" when loading. If I tried to move the multi-line String Constant in the center of the (too-large) Block Diagram using the keyboard's up and down arrows, I saw some left-right shifts of the whole Block Diagram for the first 13 upward movements, then it stopped. Too bad I couldn't (simultaneously on my Laptop Screen) see what was happening anywhere else on the Block Diagram (fortunately the Case Selector and some "broken wires" were visible on the otherwise uniformly light grey screen so that I could notice the shift).
I have no idea why/how you did this. However, a "cure" (in my case) is just to move 13 times and "get it over with". I bet (a beer/glass of wine) reducing the size of the Block Diagram would also help ...
Bob Schor
02-07-2019 12:20 PM
I wonder if this has to do with the graphics card overall quality and/or computer overall quality? e.g., Video card memory capacity and architecture, as well as CPU and amount of system memory, among other things.
02-07-2019 11:43 PM
Dear Friends,
Thanks for your valuable suggestions and tips. I think I have been able able to identify the problem . This problem seems to occur when an Block diagram Object is having Large Label which is visible and gets half-hidden/overlapped behind another object in a case structure (probably with Auto Grow Enabled) or by the case structure itself at it's border. Then when we try to move any other object in the case structure or outside of case structure the whole VI starts to expand towards Left or Right or Both sides.
I had this problem at three places (images attached) in my Main VI. As soon as I hid the Label at all three places or made them to un-overlap or deleted those objects the problem was gone and Block Diagram became as smooth as in a new Blank VI.
Is this a Bug in LabView or some intended Behavior?
With regards
Thanks
02-08-2019 01:00 AM
Hi ssingh,
Is this a Bug in LabView or some intended Behavior?
It's certainly NOT a bug when LabVIEW tries to obey your block diagram settings regarding AutoGrow!
It's intended behaviour when LabVIEWauto-grows structures to show (partially) hidden labels/comments/objects…
The question is: why don't you follow the LabVIEW style guide?
02-12-2019 11:38 PM
Dear GerdW and Everyone Else,
Thanks for your Suggestions and Help. I am writing this for anyone else having this problem in Future.
As suggested by GregW the "LabVIEW style guide" should be followed when using LabVIEW. But if any one runs in this type of problem there is a tool available to "Turn Off Auto Grow Using LabVIEW" given below :-
https://forums.ni.com/t5/Example-Programs/Turn-Off-Auto-Grow-Using-LabVIEW/ta-p/3497485
Seeing the comments it looks like that I am not the only one having this problem
Regards
Shourya
02-10-2020 09:34 AM
I ran into this same issue. Thanks to this post, I was able to also trace the problem to some block diagram objects and labels being behind other objects.
The strange thing was that the previous time that I had the same VI open, there were no instances of objects/labels behind others, and moving and displaying was fine. The objects were mysteriously moved around the next time that I opened the VI - a few days later.
Upon further investigation: In between using LabVIEW, I had changed the Display Settings in Windows to make all text larger (my eyesight isn't what it used to be). So, the next time I opened a VI in LabVIEW, the text for block diagram labels was larger, forcing several items/labels behind others or against a structure border.
Rather than going through everything and moving things back where they belonged, I just closed all opened VI's and LabVIEW (without saving), then changed my Windows display settings back to default, then opened the same VI again - and all is back to the way it was and working fine (I'll just go back to wearing glasses while I work 🤓)