LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a control's units

Is there any method by which a control's units attribute cam be set
programatically?
Randall Miller
0 Kudos
Message 1 of 4
(2,630 Views)
No. Obviously you can't change dynamically feet for millibars; you must stay
consistent and stay with the base units.

What you can do is to use controls and indicators with no units and use
different "Convert units" functions in a case structure to convert the
displayed number to required units. For example, you may have a boolean on
the front panel to select US or SI units. Before wiring a length display,
you pass the wire(length units) to a convert to "m" or convert to "ft"
functions. The same after reading a control.


--
Jean-Pierre Drolet
Scientech R&D inc
Trois-Rivieres-Ouest (Quebec)
CANADA G8Z 4H1

Randall Miller a écrit dans le message :
20000419221459.26268.00001344@ng-fa1.aol.com...
> Is there any method by which a control
's units attribute cam be set
> programatically?
> Randall Miller
0 Kudos
Message 2 of 4
(2,630 Views)
Right mouse click in the diagram window on the control "create attribute
node", after that you can select your attribute.

Markus

Randall Miller wrote:

> Is there any method by which a control's units attribute cam be set
> programatically?
> Randall Miller
0 Kudos
Message 3 of 4
(2,630 Views)
>Right mouse click in the diagram window on the control "create attribute
>node", after that you can select your attribute.
>
>

I'm using BridgeView 2.1 and do not find an attribute for units, only the
caption.
Randall Miller
0 Kudos
Message 4 of 4
(2,630 Views)