LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question : Color ramp with overlapping markers

Hi, I am using a color ramp and would like to understand why, when 2 markers are overlapping, the colors are sometimes switched. In my project, the user is able to create overlapping markers. The problem is that I never know if the ramp will switch the overlapping colors or not. I made a small VI that illustrates this. The markers colors go: red-green-blue. But, on the right ramp, where 2 markers overlapped at 80, the green and red have be exchanged. I can't find the reason why and I need to understand this in order to have my ramp working properly in my project! Thank you for your help!
0 Kudos
Message 1 of 4
(2,893 Views)
Here is an other "funny" example of the problem, when feeding the read(Scale.MarkerVals[]) to the write(Scale.MarkerVals[]).
 
The overlapping red and green markers switch after each iteration.
This is exactly the problem I get in my program: every time I write the MarkersVals of a previous reading, the colors are switched.
 
Thanks for helping.
0 Kudos
Message 2 of 4
(2,890 Views)
Hi tito_nicolas,
 
I have been looking at the VIs and I agree with you. It seems that there is some unexpected behavior with this property node. The weird thing is that it only seems to occur with the red and green color markers on your VI and not any of the other ones. I'm going to do a bit more research into this and I will let you know what I find out. Sorry I don't have any more information about this yet but I will keep you posted on any new updates that I have.
National Instruments
Applications Engineer
0 Kudos
Message 3 of 4
(2,857 Views)

Hi tito_nicolas,

I have gone ahead and filed a corrective action request for the color ramp overlapping marker issue (#104925). With this request, R&D will look at for further investigation. As far as a work-around, the easiest thing to implement would be to programmatically check for contents of the Marker Values Set Cluster and changing the values by a small amount if they match (like 80 to 80.1 or so). I hope this helps! 

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(2,825 Views)