ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Meter Colors different when compiled

I have an app I put together for a dog and pony show that works fine until I compile it.  It has a meter movement and the colors are a gradient from one side(red) to the other (green) with the red running half way across the meter. The meter indicator has been saved as default, but when I compile, it shows all red.

 

I struggled to get the colors the way we wanted them and found that using the Scale.MarkerVals[] with the codes for the colors stored in the array of structures works fine in the runtime and I can set the colors any way I want, but this technique is ignored once the program is compiled.

 

Structure Content

 

0  -  0,16711680

1  -  700,16711680

2  -  1400,6618880

 

With the full scale range being 1500

 

Meter.jpg

0 Kudos
Message 1 of 2
(2,803 Views)

LabVIEW is always compiled. (Do you possibly mean after building a standalone executable?)

 

 

Can you attach a simple VI that shows the problem? What is your LabVIEW version?

 

(I also don't understand your "structure content", Are these the "Scale.MarkerVals[] "? Are these commas? Decimal points? The property should be a 1D array of clusters, each with a DBL for the value and a U32 for the color.)

0 Kudos
Message 2 of 2
(2,794 Views)