LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic scales and custom gauges

Solved!
Go to solution

Hi,

I have some simple code for a gauge I need that changes the Min & Max Scales based on the current input value.  For example, my Min/Max is 0 to 180, but when my input exceeds a value of 70, I want my Min/Max to be 60 to 180.  However, I want to use a custom gauge (pictures) so I need the picture of my gauge to flip from one showing 0/180 Min/Max to one showing 60/180 Min/Max.  I am not sure how to do that.  Any ideas?  Thanks in advance.

0 Kudos
Message 1 of 3
(2,677 Views)
Solution
Accepted by topic author jcgrcya

My initial suggestion would be to make the gauge housing transparent and put it on top of a picture ring control.  Use the picture ring to toggle the picture and use the gauge to give you the needle/scale/etc.

 

If you need to reuse it and want to keep the block diagram clean then this might be a good time to wrap it up as an XControl.

 

~Simon

Message 2 of 3
(2,673 Views)

Simon,

 

Thanks.  Works like a charm.

 

JC

0 Kudos
Message 3 of 3
(2,666 Views)