You can associate physical units of measure, such as degrees Fahrenheit or kilometers/second, with any numeric control or indicator that has floating-point representation.
Complete the following steps to associate units with a numeric control or indicator.
Note National Instruments recommends you do not use units with a numeric object formatted for absolute time. |
Note When you create a unit label of any type, LabVIEW automatically converts all data on the block diagram to SI units. |
To change units, use the Operating tool or the Labeling tool to click inside the unit label and change the unit string. Complete the following steps to change units and avoid unit syntax errors.
Note To associate units with a graph or chart, wire an object that has an associated unit to the graph or chart. Right-click the graph or chart and select Visible Items»Unit Label from the shortcut menu to display the unit acquired through the connection. By default, LabVIEW associates an SI unit with the graph or chart based on the unit associated with the object you wire to the graph or chart. You can change the unit only to a compatible unit that measures the same phenomenon. For example, if an input to a chart has a unit of mi, for miles, you can edit the chart unit to ft, in, or m but not to N, Hz, min, acre, or A because they are not length units. |
You also can use the Text property to change units programmatically. The Unit Label property creates a reference that you can use with the Text properties.