LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'd like to dynamically change the scale of a gauge indicator

I'm running a program through three sequences, measuring speeds of a motor under three control voltages. I'd like to have one gauge indicator on the screen (think of a tachometer) showing the speed as measured. Easy enough. The challenge comes when I want to use the same indicator for three different speed ranges. Example: stage 1 for the motor is 0 to 100 RPM -- the max on the gauge would be 100. In stage 2 the max is 500 RPM, so I want to make the max on the gauge 500. Then in stage 3 the motor may run as high as 4500 RPM, so I'd want the same gauge to show a 0 to 4500 scale. Does LabVIEW allow me to dynamically change the max reading on a gauge?

Thanks so much for your help,

-Dan
0 Kudos
Message 1 of 5
(6,278 Views)
Hi Dan,

On the block diagram, right click on the gauge and create a property node. Select Scale -> Range -> Scale.Maximum
0 Kudos
Message 2 of 5
(6,267 Views)
Use a property node to change dynamicaly the max of the gauge.
Connect a constant array to the "Scale.maximum", and use an "index array" function to select the max value.
See the vi below.

CC
Chilly Charly    (aka CC)
Message 3 of 5
(6,259 Views)
Wow, I think that's exactly what I needed. I can put a numeric constant in each of the three sequences used for running the motor, and wire that to the "index" terminal on the index array block (taking place of the example voltage_stage slider, and then the tach scale will change according to motor setting. Thanks, guys!
-Dan
0 Kudos
Message 4 of 5
(6,224 Views)

Guys,

 

Thank you, for asking the question, for the answers, and Google for finding this thread.

It has been an annoyance of mine, not being able to select ranges on a gauge, until now. 

See ya,

Mike Petro
http://pcsw.me
0 Kudos
Message 5 of 5
(5,552 Views)