LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster unit indicator refresh problem

LabView 7

Hi I have a cluster that contains one more cluster and a numceric control
with unit undicator. The Problem I have is that if I change the control of
the numeric control,
the Unit undicator does not change its Values (kilo, milli and so on)

Does anybody know how to force a refresh or how else to bypass this problem
?

Thanks in advance Sascha
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
0 Kudos
Message 1 of 3
(2,740 Views)
I assume you mean that you are showing the UNIT LABEL for a control.

I'm not an expert on the units display, but it's my understanding that when you choose units, you choose units, and that's what you get. The control (or indicator) does NOT interpret the number and decide that it's kilometers intstead of meters.

Such logic would be impractical in the general case, although you might have specific rules to apply.

What happens if the number is 990 meters, and I'm showing two decimal places? I might want to see 990.00 meters, and someone else might want to see 0.99 kilometers. There's no way to make that work in the general case, so it's not done at all.

What happens if the number is 1010 meters, and I'm showing two decimal places? I mi
ght want to see 1010.00 meters, and someone else might want to see 1.01 kilometers.

If you want such rules to apply, you'll have to implement the logic yourself.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 3
(2,740 Views)
> Hi I have a cluster that contains one more cluster and a numceric
> control with unit undicator. The Problem I have is that if I change the
> control of the numeric control,
> the Unit undicator does not change its Values (kilo, milli and so on)
>
> Does anybody know how to force a refresh or how else to bypass this
> problem ?
>

Units don't work that way. They do update, and as long as the base unit
is compatible you don't get broken wires. The deal is that each
indicator can view this a different way. If the units of the input wire
are distance, then the control can input miles, one indicator can show
feet, another meters, etc. Not only this, but the user or operator can
also change this at runtime as long if the unit label is visible.

Greg
McKaskle
0 Kudos
Message 3 of 3
(2,740 Views)