ni.com is currently experiencing slowness/issues due to ongoing maintenance.
Support teams are actively working on the soonest resolution.
ni.com is currently experiencing slowness/issues due to ongoing maintenance.
Support teams are actively working on the soonest resolution.
06-21-2022 02:41 PM
Usually when resizing a for loop structure or while loop structure, the iteration terminal will move together with the lower left corner of the structure's border.
This is true when:
The same is NOT true when:
This means that reszing via Ctrl-Alt-drag is limited in range until the point when the border of the structure touches the (invisible) terminal.
Affected Version: LV 2021 SP1
Steps to reproduce:
Try to shrink the structure by Ctrl-Alt-clicking into the center of the structure and dragging towards the top-right.
Expected behaviour:
Structure shrinks unhindered as long as there are no other objects interfering with its border.
Actual behaviour:
The structures border is blocked by the invisible terminal and can't be resized by more than a few pixels.
Loop after failed resize attempt with iteration terminal re-enabled:
This same behaviour can be observed with for loops and while loops.
Event structures with a hidden event data node do not seem to be affected by this bug.
06-22-2022 03:22 AM
06-22-2022 03:26 AM
But I agree that it is not what I expect. If the "Iteration terminal" setting would have been on the "Visible Items" sub-menu, then I could maybe accept that the terminal simply is not visible but still there, but with the menu-selection as it is now, I would expect the iteration terminal to be removed entirely and thus not affect resizing regardless of auto-grow settings.
06-22-2022 09:14 AM - edited 06-22-2022 09:16 AM
That's a good one. I guess I never noticed because the first thing I do is turn off auto-grow.
06-22-2022 08:25 PM
@thols wrote:
I think you have auto-grow turned on. Turn it off and try again. It works for me as expected when auto-grow is not enabled.
The bug is even weirder than that.
I was about to disagree with your statement because I did not see any change in behaviour after disabling "Auto Grow" on an existing loop.
Turns out, I have the option "Place structures with Auto Grow enabled" checked in the options menu.
If i disable this option and place a new structure, the problem almost goes away.
Why almost?
Because after shrinking the loop with Ctrl-Alt-drag and subsequently re-enabling the iteration terminal, it does not show up at all:
Only after resizing the loop by a few more pixels via grabbing at the border it becomes visible again.
Again, this bug is not present when resiszing by grabbing the border of the loop.
06-23-2022 12:23 AM
@maflAT wrote:
@thols wrote:
I think you have auto-grow turned on. Turn it off and try again. It works for me as expected when auto-grow is not enabled.
The bug is even weirder than that.
I was about to disagree with your statement because I did not see any change in behaviour after disabling "Auto Grow" on an existing loop.
Turns out, I have the option "Place structures with Auto Grow enabled" checked in the options menu.
If i disable this option and place a new structure, the problem almost goes away.
Why almost?
Because after shrinking the loop with Ctrl-Alt-drag and subsequently re-enabling the iteration terminal, it does not show up at all:
Only after resizing the loop by a few more pixels via grabbing at the border it becomes visible again.
Again, this bug is not present when resiszing by grabbing the border of the loop.
Thanks for the deep dive into the issue!
06-23-2022 12:34 AM
@maflAT wrote:
......
Because after shrinking the loop with Ctrl-Alt-drag and subsequently re-enabling the iteration terminal, it does not show up at all:
Only after resizing the loop by a few more pixels via grabbing at the border it becomes visible again.
Again, this bug is not present when resiszing by grabbing the border of the loop.
You can make the i-terminal move beyond the loop border even when it is visible this way. In fact, now there is a way to get it back without enlarging the loop and searching for the terminal. Now you only need to disable and then enable the terminal and resize the loop by a pixel. It would be better it resizing was not needed and the terminal was placed within the loop bounds directly when enabling the terminal though.
But I have always wondered why it is allowed to move stuff outside of the loop borders but still be in the loop, hidden beneath the outer diagram. I guess that was one of the things that auto-grow tried to solve.
06-23-2022 12:41 AM
I made an entry in the annual bug thread for this: https://forums.ni.com/t5/BreakPoint/Annual-bug-thread-for-2022/m-p/4201326/highlight/false#M32909
06-23-2022 03:26 AM
I've posted this before, but nobody seemed to care...
Note that showing or hiding the iteration terminal does not mark a VI as changed.
Steps to reproduce:
1) Using LV20 (haven't tried a more recent LV)
2) Create or open a VI with a loop.
3) Save it.
4) Show or hide the iteration terminal.
5) Notice there's no * to indicate that the VI has changed.
Save all won't save this VI. Next time the VI is loaded, the terminal is back to it's original state.
06-23-2022 09:06 AM
wiebe@CARYA wrote:
I've posted this before, but nobody seemed to care...
Note that showing or hiding the iteration terminal does not mark a VI as changed.
Steps to reproduce:
1) Using LV20 (haven't tried a more recent LV)
2) Create or open a VI with a loop.
3) Save it.
4) Show or hide the iteration terminal.
5) Notice there's no * to indicate that the VI has changed.
Save all won't save this VI. Next time the VI is loaded, the terminal is back to it's original state.
That sounds like a different problem than the rest of this thread.