LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[LabVIEW Bug/Feature Report] Classic Color Ramp

The Classic Color Ramp is a unique object:

 

Screen Shot 2016-08-17 at 09.56.06.png

It appears like this on the BD: 

 

Screen Shot 2016-08-17 at 10.00.10.png

 

It can be used to mimic the color ramp displayed with Intensity Chart or Graphs, or anywhere where you want to display a correspondance between numeric values and color (for instance with the Vision Toolkit, which suprisingly doesn't have such a feature associated with its Image Display control).

The problem is, this is a VERY OLD control and probably for this reason doesn't behave very well.

For instance, try to format the numeric range display of this color ramp to SI:

 

Color Ramp Format Problem.png

 

which looks like this on the BD:

 

Screen Shot 2016-08-17 at 10.10.03.png

 

To do this, you would go to the Properties page for this control (or right-click on it and select Display Format) and choose something like SI notation:

Screen Shot 2016-08-17 at 10.12.17.png

 

The result is disapointingly, nothing.

Old objects such as the Classic Slide react perfectly fine to this request:

 

Screen Shot 2016-08-17 at 10.13.44.png

 

In fact, you have to use a BD property node to achieve that effect with the Color Ramp:

 

Screen Shot 2016-08-17 at 10.15.18.png

 

leading to:

 

Screen Shot 2016-08-17 at 10.15.09.png

 

If you try to only show the color ramp but not the ticks and their numeric values, the natural choice would be to choose the following option:

 

Screen Shot 2016-08-17 at 10.18.42.png

 

Yet, the result is as follows:

 

Screen Shot 2016-08-17 at 10.20.19.png

 

in other words, the color ramp is gone with the scale... Not very useful.

Of course, you can customize the control and paint the ticks transparent so that this choice:

Screen Shot 2016-08-17 at 10.21.50.png

 

gives this after some manipulations (BTW, the big color box to the right can only be hidden while customizing the control and shrinking it to a single pixel):

 

Screen Shot 2016-08-17 at 10.25.36.png

 

What about the tiny "out of range" boxes above and below the ramp? Well, I did not find anyway to resize them in the customization window.

The only option seems to replace them by color boxes:

 

Screen Shot 2016-08-17 at 10.29.57.png

 

In conclusion, there appears to be quite a few quirks with this control.

I guess my favorite is the Data Type property page:

 

Screen Shot 2016-08-17 at 10.32.08.png

 

Not very helpful. Luckily, the type can be changed on the diagram:

 

Screen Shot 2016-08-17 at 10.32.57.png

 

resulting in:

 

Screen Shot 2016-08-17 at 10.33.09.png

 

Of course all this is no news for many old timers, but maybe it is time to fix these features/bugs?

Message 1 of 13
(5,790 Views)

You might want to post this to the NI LabVIEW Idea Exchange?

It is a good fit for that forum, and I think more likely to be seen by R&D there.

 

And then after posting, I see who posted it, and not like I'm letting a new user know that. Smiley Tongue

 

Jon D
Certified LabVIEW Developer.
0 Kudos
Message 2 of 13
(5,762 Views)

Hi Xavier,

 

In more modern version of LV it is sometimes possible to replace elements of a control IF the data type is an exact match.

 

Example:

An index control can be replaced by a scroll bar provided the scroll bar is the same data type.

 

Not that this information will nulify anything you said above. Just trying to share knowlege.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 13
(5,753 Views)

@Mythilt wrote:

You might want to post this to the NI LabVIEW Idea Exchange?

It is a good fit for that forum, and I think more likely to be seen by R&D there.

 

And then after posting, I see who posted it, and not like I'm letting a new user know that. Smiley Tongue

 


Once I have enough feedback, I will contact NI support and redirect them to this thread. They might issue a CAR, in which case I will post it.

No need to pollute the IE with bug reports if they are acknowledged by NI. Now if they claim these are intended features of the color ramp, I may go to the IE...

0 Kudos
Message 4 of 13
(5,731 Views)

@Ben wrote:

 

In more modern version of LV it is sometimes possible to replace elements of a control IF the data type is an exact match.

 

Example:

An index control can be replaced by a scroll bar provided the scroll bar is the same data type.

 

 


That's what I illustrated with the color box replacement above, I believe. This would be a nice nugget to write, if you had time for it, with a few examples of the kind you give above.

0 Kudos
Message 5 of 13
(5,730 Views)

Another couple of really annoying features of the Color Ramp are:

- the context menu doesn't have the standard "Copy Data", "Description & Tips", "Reinitalize to Default" items which most other objects in LabVIEW offer.

- as a side effect, it is impossible to copy the color ramp at run time (e.g. to paste it as an image in a Word document).

0 Kudos
Message 6 of 13
(5,694 Views)

Is it possible that the Color Ramp (which, as you mention, is found only on the Classic Front Panel, and is "very old") is a form of "NI Abandonware", something that seemed like a good idea at the time, but had flaws that seemed either difficult to fix or not useful enough to fix?  I know NI is very reluctant to "drop" less-useful ideas, so coming up with a "more useful" idea for a Color Ramp and its implementation might be a useful project, particularly if there were a reasonable path from "Color Ramp 1" to "Color Ramp 2" (I'm thinking of the sudden appearance of AVI2 functions in the Vision palettes, and the Delimited Spreadsheet functions replacing Spreadsheet File function in LabVIEW 2015).

 

Bob Schor

0 Kudos
Message 7 of 13
(5,682 Views)

The Color Ramp is definitely in need of some revamping, be it only to give it an horizontal equivalent.

 

Another feature of the context menu is that you cannot "replace" this Control by anything. That menu item is just not available, like many standard others (Visible Items, etc):

 

Screen Shot 2016-08-20 at 13.57.07.png

 

Compare this to the Numeric context menu (which is pretty characteristic of a lot of other controls):

 

Screen Shot 2016-08-20 at 13.58.03.png

0 Kudos
Message 8 of 13
(5,639 Views)

Yet another example of something that could be improved in the Color Ramp.

Most people will want to use the "Interpolate Color" option, which does exactly what it says.

 

Provide this color array to the ramp:

Screen Shot 2016-08-26 at 10.51.24.png

 

and it will display this:

 

Screen Shot 2016-08-26 at 10.52.25.png

 

Notice that the 3 colors are present, albeit only at the extreme values for the first and last color.

 

Now, uncheck the "Interpolate Color" option and observe this:

 

Screen Shot 2016-08-26 at 10.53.42.png

 

The first color of the array is used, but the last is not.

I would argue that the desired behavior would be this:

 

Screen Shot 2016-08-26 at 10.54.44.png

 

I have illustrated these features in the attached VI.

 

Message 9 of 13
(5,571 Views)

Can you attach it as LV 15 or older.

 

LV 16 just came out a few weeks ago, not everyone has gotten their discs or downloaded it yet.

 

I'm wondering if you add a 4th color to the ramp if your non-interpolate color one would show as 3 colors between 0 and 2.

0 Kudos
Message 10 of 13
(5,557 Views)