LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

meter color scale

Solved!
Go to solution

OK, I decided to try using meters instead of using a numeric indicator.  But I have run into a problem with the color scale.  If I only adjust the scale marker values[] to color range is correct.  But if I start adjusting the min and max scale range for the meter it messes up the color range, so it seems they are interactive for some reason.  I have no idea why the meter range would have anything to do with the color range.  And I believe I am using the correct properties.

 

This meter shows the outlet pressure at the start of a test, so it has to be below a certain value.  But I also have a configuration file so that different units can have different minimum values.  So I need to make sure that the color scale is going to be shown correctly for more than a single range.  If the outlet pressure limit is set at 4.5 and then run, the scale is actually set to 4.2.  But if you set the limit to an even number like 4, the scale limit gets set to 4.  So there is something funny going on with non even numbers.

 

Any ideas on a good fix or work around?

 

 

LV2011 sp1

 

 

0 Kudos
Message 1 of 5
(3,803 Views)

I tried your VI in LV 2014.  I don't see any problems with it.

 

Try a newer version if you can.

 

Maybe someone can try your VI in LV2011.  (I can't because I don't have it installed anymore.)

0 Kudos
Message 2 of 5
(3,787 Views)

@RavensFan wrote:

I tried your VI in LV 2014.  I don't see any problems with it.

 

Try a newer version if you can.

 

Maybe someone can try your VI in LV2011.  (I can't because I don't have it installed anymore.)


That is strange, I also have 2014 sp1 and see the same problem.  I attached a screen shot of what I am seeing.  With the output press limint set at 4.5 I am expecting to see the scale marker value[] be 4.5 as well, but it reads 4.2.  And you can see on the meter how the red/green limits are showing the 4.2 not 4.5.

0 Kudos
Message 3 of 5
(3,781 Views)

I see a little better what you are talking about.

 

The secret was using some decimal values to make it jump out some more.

 

Try moving the MarkerVals property to the bottom of the property node block.  Those blocks operate in order from top to bottom.

 

It seems like there is an interaction and the Marker Value colors are based on the current scale.  Changing the Min Max values of the scale after that upsets the meter.

Message 4 of 5
(3,772 Views)
Solution
Accepted by topic author _Bryan

I found that by moving the round toward - infinity everything cleared up and works fine.  I am guessing that LabVIEW does not like the color highest range greater than the scale max.  So for some reason they influence each other.  Then that would also change the scale increment to strange values even with a constant (not in the vi I posted).

 

Anyway, thanks for the help.

Message 5 of 5
(3,758 Views)