LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why have my 'while loop' subdiagram labels changed style?

Since upgrading to LabVIEW 2013 a couple of weeks ago, the subdiagram labels for my 'while' loops has changed to be bold white text on a grey background. All the others are as they used to be; application font black on a pale yellow background. I can't find an option to control this but I think it only started happening a couple of days ago. (I can't be certain because I have been editing files from LV 2012 too).

 

Is this a new change in 2013 or is it an option I can modify? I know I can use the paintbrush to put it back but that's tedious. I don't actually mind the new look that much but I'm just interested.

 

 

Thanks.

0 Kudos
Message 1 of 17
(4,427 Views)

Have you checked , Tools - options - environment

0 Kudos
Message 2 of 17
(4,417 Views)

Yes Neos. I can't see anything relevant in there (and 'default colors' is ticked - not that I think that would make any difference). I would have expected any appropriate option to be in Options > Block Diagram.

0 Kudos
Message 3 of 17
(4,410 Views)

In environment you can select fonts, size and color.

so that was my point

0 Kudos
Message 4 of 17
(4,406 Views)

Thanks. I understand what you are saying but these options are for Application font, Dialog font and System font (at least in my version) - the 'Use default font' box is checked for all three.

 

I have just found a comment in this plugin page (https://decibel.ni.com/content/docs/DOC-24903) suggesting that it's a new default style for while loops in LV 2013 although I haven't found it in any LabVIEW documentation.

 

 

0 Kudos
Message 5 of 17
(4,400 Views)

Hmmm, okSmiley Happy

0 Kudos
Message 6 of 17
(4,394 Views)

Hi Magicbean,

 

Yes, the subdiagram label default colour has been changed to grey in LabVIEW 2013 and I am afraid there isn’t a direct way for you to change this default setting. The reason you cannot change it easily is because the selective use of colour will hurt the readability of diagrams. This has been explained by a NI engineer in the forum thread shown below: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Ability-to-change-default-color-style-of-block-diagram...

 

However there is a systematic way for you to “change” the background colour of the subdiagram and the steps are listed below:

 

  1. Create a new VI in LabVIEW 2013;
  2. Drop down a while loop and make the subdiagram label visible.
  3. Use the paintbrush to change the subdiagram colour to any colour you want the default colour to be.
  4. Save this VI to a place you want it to be and give it a name for example “My While Loop”.
  5. Close down My While Loop.vi and open a new empty VI.
  6. Creating a Subpalette

1)      Create an icon for each new object you want to add to the palette set.

2)      Select Tools»Advanced»Edit Palette Set to display the "Edit Controls and Functions Palette Set" dialog box.

3)      Right-click the palette and select Insert»Subpalette from the shortcut menu to display the “Insert Subpalette” dialog box.

4)      Select Create a new palette file to insert a new, empty subpalette and click the OK button.

5)      In the file dialog box that appears, enter the name to use for the .mnu file. Add a .mnu extension to the filename to indicate that it is a palette. You must store each subpalette you create in a separate .mnu file.

6)      Click the OK button. 

7)      Enter the name of the new subpalette for example “My Palette” and click the OK button. The new, empty subpalette appears on the palette.

7. Adding My While Loop.vi to My Palette

1)      Select Tools»Advanced»Edit Palette Set to display the “Edit Controls and Functions Palette Set”dialog box

2)      Click the My Palette icon to display the subpalette.

3)      Right-click the subpalette and select Insert»VI(s) from the shortcut menu.

4)      In the file dialog box that appears, navigate to the location where you stored My While Loop.vi and click the OK button. The new function appears on the My Palette subpalette.

8. Drop the My While Loop.vi  as code (instead of as an icon):

1)      Right-click on My While Loop.vi>> Place VI Content.

 

 

Now whenever you want a while loop with a different “default” colour, you can drop down My While Loop.vi.

 

I hope this helps your query.

 

Thank you.

 

Regards,

 

Lanxi

Message 7 of 17
(4,354 Views)

Yes, we did change the default subdiagram label formatting of the While Loop in LabVIEW 2013. When you first show the subdiagram label of a While Loop, it will have a background color matching the current loop border color, and it will have white bolded text. We found that, when showing subdiagram labels of structures, developers tended to make the loop label color match the border color of While Loops specifically because of the matching aesthetic uniform color of the loop border. Contrast this with all other structures, whose borders are not a single color, and therefore don't look quite as good when attempting to match the label color with the borders.

 

I just scanned the LabVIEW 2013 Upgrade Notes, and you're right...we should have mentioned this change in there, but it doesn't look like we did.

 

 

 

0 Kudos
Message 8 of 17
(4,332 Views)

Darren,

 

If the only structure labelled is a while loop, this is nice. But for consistency in documenting code we chould have the option to make it like the others.

 

Lynn

 

Subdiagram labels.png

0 Kudos
Message 9 of 17
(4,307 Views)

@johnsold wrote:

 

If the only structure labelled is a while loop, this is nice. But for consistency in documenting code we chould have the option to make it like the others.


Thanks for the feedback. This is the first time I've heard the request for a different default appearance for the While Loop subdiagram label in 2013...if we continue to get more feedback like this, we'll consider other possibilities, like adding a configuration option.

0 Kudos
Message 10 of 17
(4,289 Views)