I sometimes wish to surround a group of VIs with a 'comment box' that explains that particular code section, for example to explain how the VIs interact with each other or why they were placed in a certain order.
To simulate this, I use Flat Sequence Structures, Flat Frames or Diagram Disable Structures with empty 'Disabled' cases (screenshot below).
All methods are workarounds. It would be useful if there was a 'Comment Structure' or 'Comment Box' that was essentially a Flat Frame with an attached sub-label diagram.
- The Comment Structure should be compiled-out and have no effect on the compiled code (unlike the Flat Sequence Structure)
- The Comment Structure would not have any 'Disabled' cases behind it
- The border of the Comment Structure should be as thin as possible. For example, the border of the Flat Frame seems too thick when I use that workaround.
- I'd be happy if the Comment Structure consists of a single box and there was no option to 'Add Frame' like there is with the FSS, even though I sometimes use a multi-frame FSS to simulate back-to-back Comment Structures (like in the screenshot above).
A similar question was posted in the following thread: "Is there a way to put a comment box around a piece of code..." https://forums.ni.com/t5/LabVIEW/Comment-code/td-p/40568
Thanks!