LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darren's Occasional Nugget 11/07/2013

The default style for While Loop subdiagram labels changed between LabVIEW 2012 and LabVIEW 2013:

 

subdiagramlabels1.png

 

If you want your While Loop subdiagram label appearance to be consistent across your LabVIEW versions, here are two utilities you can use:

 

  1. Quick Drop Keyboard Shortcut - While Loop Subdiagram Label - Download this shortcut from the Quick Drop Enthusiasts group to use in LabVIEW 2012. It will create subdiagram labels on While Loops that match the default appearance of labels created in LabVIEW 2013. Note that this plugin will create a left-justified label...you can change the plugin code if you prefer center or right-justified.

  2. Convert While Loop Subdiagram Labels Utility VI - Attached below, you can point this VI (saved in LabVIEW 2013) to a folder of VIs and it will bulk-convert all the While Loop subdiagram labels in those VIs to the default LabVIEW 2013 appearance. This utility VI will not change the existing text justification of the labels. Make sure to back up the folder of VIs before running this utility, as it will make changes to your VIs and save them in LabVIEW 2013.
Message 1 of 9
(6,213 Views)

Hi Darren,

 

I have seen many While loops in other people's code that have white on grey subdiagram labels. Yet whenever I try to show the subdiagram label on a while loop I get white on white by default. This occurs in both LabVIEW 2013 SP1 and Labview 2015. And no, I haven't changed the default colours in Tools >> Options.

 

Any ideas why this is so (example attached)?

 

Thanks

 

Malcolm Myers

CLA

Certified LabVIEW Architect and LabVIEW Champion specialising in Noise, Vibration and Harshness
0 Kudos
Message 2 of 9
(4,796 Views)

Quit LabVIEW, rename your LabVIEW.ini file to be LabVIEW.bak and restart LabVIEW. If the subdiagram labels act normal, then there is an errant key in your LabVIEW.ini file that is causing this behavior. If that doesn't fix it, I have no idea what would cause this problem.

0 Kudos
Message 3 of 9
(4,756 Views)

I found the problem!

 

I had a quick look through LabVIEW.ini and saw

 

transparentBDLabels=False

 

as I prefer labels with frames around them.  I went to Tools>>Options>>Block Diagram and checked 'Use transparent name labels' and the While Loop label now has a grey background. So at least I know why it is happening and can fix it if I want to.

 

Many thanks 🙂

 

Malcolm Myers

CLA

Certified LabVIEW Architect and LabVIEW Champion specialising in Noise, Vibration and Harshness
Message 4 of 9
(4,735 Views)

I am using the same settings as Malcom_Myers and I am annoyed by the white on white subdiagram labels. I would suggest this is a VERY undesirable feature and should be filed as a CAR.

0 Kudos
Message 5 of 9
(4,722 Views)

This issue was discussed here.  Weird connection "background color of subdiagram label" & "use transparent name labels"

 According to that thread, a CAR was filed, but there is no follow up as to what that CAR # is.

0 Kudos
Message 6 of 9
(4,696 Views)

Which is why I tried to raise the attention of someone who usually cares providing feedback to users.

I have pinged the moderator on this other thread to get that CAR posted.

0 Kudos
Message 7 of 9
(4,670 Views)

Colors Colors Colors.

 

Hmmmm. there are only so many "User Colors" in LabVIEW- 18 to be exact.  

Capture.PNG

"Warn" and "DAQ" are MyLabVIEW  I would like a few more! NI has predefined more and more of them over the years.  Not always poorly but, that means that MyColors have shrunken to two.  MyColors for "Skipped", "Error", "Aborted", "Cancled"...... have all gone away.Smiley Sad


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 9
(4,648 Views)

@X. wrote:

Which is why I tried to raise the attention of someone who usually cares providing feedback to users.

I have pinged the moderator on this other thread to get that CAR posted.


After a quick search, it would appear to be CAR #494832: Disabling "use transparent names labels" influences color of subdiagram labels

 

I'll post the CAR# on the other thread as well.

Matt J | National Instruments | CLA
Message 9 of 9
(4,608 Views)