LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Meter's scale color

Hi anyone who can programtically change the property of the meter, Scale.MarkerVals? 
I could not find ways to pass the values to control the colour range properly..  I have attached it for you.
That's how it works. After the colour ranges for the meter has been set. The again the colour range
has to adjusted with the new numbers, using the replace array subset function, on these index elements 2 and 3.
 
Clement
0 Kudos
Message 1 of 6
(3,020 Views)
Hi astroboy
 
I'm not sure about your problem - could you describe it a little bit more?
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 6
(3,015 Views)
I just want to adjust the meter's colour range by values thru programmatically.
Say the Green area on the meter is initally in this place, but the I woulkd like to widen narrow or shift the green area,
 
Hope u understood me by then.
 
clement
0 Kudos
Message 3 of 6
(3,014 Views)
Ok - let's try..
 
Each color range has a left and a right border. So you have to specify these - for each color range two elements in an array.
 
I modified your vi and activated the "Interpolate colors" flag.
 
Just have a look at it.
 
Hope it helps.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 6
(3,010 Views)

Thanks. But ithis is not what I want. What i mean is that:-

After the meter has been set with colours and values initially, (simple of course!)  but when it is run,

and it will turn out correctly as it has been set initally, then I would like to see that the colour range set by new values while  still running.

That's why you saw my 2 sets of values in my vi . On the left side, the values has already been set as the dataflow starts from left to right.

Then at the right side, there should be changes  for Number 2 and 3 . Pls see my vi again. I have added the delay so that you san see it

Using Labview 7.0

Clement

0 Kudos
Message 5 of 6
(3,005 Views)
Every time you want to change the ranges, you have to write an array of clusters to the property.
Just make the setting of the colors a subvi and you can change it when ever you want.
 
Here's an example
 
 
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 6
(3,001 Views)